Opait PDF Library
|
Classes | |
class | CieHelper |
class | ColorUtil |
Utility class for color conversion. | |
class | ExtGState |
Class defines extended graphics state parameters dictionary. Some of these, like line width and line cap, can also be set by regular graphics state operators. The only operations for which we use extended graphics state are: /CA - The alpha constant for stroking operations [0 - 1] => [transparent-opaque]. /ca - The alpha constant for non-stroking operations [0 - 1] => [transparent-opaque]. /BM - The current blend mode to be used in the transparent imaging model. | |
class | GdiUtil |
Utility functions using GDI classes More... | |
interface | IPdfConverter |
An interface for converting to/from PDF implemented by optional plugins. More... | |
class | PdfAxialShading |
Type 2 (axial) shadings define a color blend that varies along a linear axis between two endpoints and extends indefinitely perpendicular to that axis. | |
class | PdfBezier |
Represents a double precision cubic PdfBezier spline curve. More... | |
class | PdfBlend |
class | PdfColor |
Class defines a PDF color value. More... | |
class | PdfColorSpace |
4.5.2 Color Space Families: Color spaces can be classified into color space families. Spaces within a family share the same general characteristics; they are distinguished by parameter values supplied at the time the space is specified. The families fall into three broad categories: | |
class | PdfColorSpaceCalGray |
A CalGray color space (PDF 1.1) is a special case of a single-component CIE-based color space, known as a CIE-based A color space. This type of space is the one-dimensional (and usually achromatic) analog of CIE-based ABC spaces. Color values in a CIE-based A space have a single component, arbitrarily named A. | |
class | PdfColorSpaceCalRgb |
A CalRGB color space is a CIE-based ABC color space with only one transformation stage instead of two. In this type of space, A, B, and C represent calibrated red, green, and blue color values. These three color components must be in the range 0.0 to 1.0. | |
class | PdfColorSpaceDeviceCmyk |
DeviceCMYK controls the concentrations of cyan, magenta, yellow, and black inks, the four subtractive process colors used in printing. Each component is specified by a number in the range 0.0 to 1.0, where 0.0 denotes the complete absence of a process colorant (absorbs none of the corresponding additive primary) and 1.0 denotes maximum concentration (absorbs as much as possible of the additive primary). Note that the sense of these numbers is opposite to that of RGB color components. | |
class | PdfColorSpaceDeviceGray |
DeviceGray controls the intensity of achromatic light, on a scale from black to white. Black, white, and intermediate shades of gray are special cases of full color. A grayscale value is represented by a single number in the range 0.0 to 1.0, where 0.0 corresponds to black, 1.0 to white, and intermediate values to different gray levels. | |
class | PdfColorSpaceDeviceN |
DeviceN color spaces (PDF 1.3) can contain an arbitrary number of color components. They can represent high fidelity or multitone colors such as PANTONE. | |
class | PdfColorSpaceDeviceRgb |
DeviceRGB controls the intensities of red, green, and blue light, the three additive primary colors used in displays. Each component is specified by a number in the range 0.0 to 1.0, where 0.0 denotes the complete absence of a primary component and 1.0 denotes maximum intensity. | |
class | PdfColorSpaceIccBased |
ICCBased color spaces (PDF 1.3) are based on a cross-platform color profile as defined by the International Color Consortium (ICC). Unlike the CalGray, CalRGB, and Lab color spaces, which are characterized by entries in the color space dictionary, an ICCBased color space is characterized by a sequence of bytes in a standard format. | |
class | PdfColorSpaceIndexed |
An Indexed color space allows a PDF content stream to use small integers as indices into a color map or color table of arbitrary colors in some other space. A PDF consumer application treats each sample value as an index into the color table and uses the color value it finds there. An Indexed color space is defined by a four-element array: [ /Indexed base hival lookup ] | |
class | PdfColorSpaceLab |
A Lab color space is a CIE-based ABC color space with two transformation stages. In this type of space, A, B, and C represent the L*, a*, and b* components of a CIE 1976 L*a*b* space. The range of the first (L*)component is always 0 to 100; the ranges of the second and third (a* and b*)components are defined by the Range entry in the color space dictionary. | |
class | PdfColorSpacePattern |
A Pattern color space (PDF 1.2) enables a PDF content stream to paint an area with a pattern rather than a single color. The pattern may be either a tiling pattern(type 1) or a shading pattern (type 2). | |
class | PdfColorSpaceSeparation |
A Separation color space (PDF 1.2) provides a means for specifying the use of additional colorants or for isolating the control of individual color components of a device color space for a subtractive device. When such a space is the current color space, the current color is a single- component value, called a tint, that controls the application of the given colorant or color components only. | |
class | PdfCoonsShading |
Type 6 shadings (Coons patch meshes) are constructed from one or more color patches, each bounded by four cubic Bézier curves. | |
class | PdfDate |
Utility class to handle PDF formatted dates. More... | |
class | PdfExponentialFunction |
Exponential (type 2) functions (PDF 1.3) include a set of parameters that define an exponential interpolation of one input value and n output values. | |
class | PdfForm |
A form XObject is a PDF content stream that is a self-contained description of any sequence of graphics objects (including path objects, text objects, and sampled images). More... | |
class | PdfFunction |
PDF provides several types of function objects (PDF 1.2) that represent parameterized classes of functions, including mathematical formulas and sampled representations with arbitrary resolution. Functions are used in various ways in PDF, including device-dependent rasterization information for high-quality printing (halftone spot functions and transfer functions), color transform functions for certain color spaces, and specification of colors as a function of position for smooth shadings. | |
class | PdfFunctionShading |
In type 1 (function-based) shadings, the color at every point in the domain is defined by a specified mathematical function. The function need not be smooth or continuous. | |
class | PdfGouraudShading |
Type 4 shadings (free-form Gouraud-shaded triangle meshes) are commonly used to represent complex colored and shaded three-dimensional shapes. The area to be shaded is defined by a path composed entirely of triangles. | |
class | PdfIdentityFunction |
A do-nothing function that maps from input to output. | |
class | PdfImage |
Class represents a multi-page image for embedding in PDF documents. More... | |
class | PdfImagePage |
Class represents a single image used in PDF documents. More... | |
class | PdfLatticeShading |
Type 5 shadings (lattice-form Gouraud-shaded triangle meshes) are similar to type 4, but instead of using free-form geometry, their vertices are arranged in a pseudorectangular lattice, which is topologically equivalent to a rectangular grid. | |
class | PdfMatrix |
Represents a double precision 3x3 affine transformation matrix. An affine matrix can be represented by 6 numbers in the first two columns. [A, C, 0] [B, D, 0] [E, F, 1] More... | |
class | PdfOptions |
Defines various PDF options. More... | |
class | PdfPatchShading |
Base class form patch shading (types 4, 5, 6, 7). | |
class | PdfPattern |
When operators such as S (stroke), f (fill), and Tj (show text) paint an area of the page with the current color, they ordinarily apply a single color that covers the area uniformly. However, it is also possible to apply “paint” that consists of a repeating graphical figure or a smoothly varying color gradient instead of a simple color. Such a repeating figure or smooth gradient is called a pattern. Patterns come in two varieties: Tiling patterns and Shading patterns. | |
class | PdfPoint |
Represents an ordered pair of x and y coordinates that defines a point in a PDF two-dimensional plane. More... | |
class | PdfPostscriptFunction |
Postscript calculator (type 4) function (PDF 1.3), is represented as a stream containing code written in a small subset of the PostScript language. | |
class | PdfQuadPoints |
Class represents a quadrilateral shape in PDF world coordinates. More... | |
class | PdfRadialShading |
Type 3 (radial) shadings define a color blend that varies between two circles. Shadings of this type are commonly used to depict three- dimensional spheres and cones. | |
class | PdfRectangle |
Class represents a rectangular region in PDF world coordinates. The rectangle is kept normalized. More... | |
class | PdfSamplingFunction |
Sampled (type 0) functions use a sequence of sample values (contained in a stream) to provide an approximation for functions whose domains and ranges are bounded. The samples are organized as an m-dimensional table in which each entry has n-components. | |
class | PdfShading |
A shading dictionary specifies details of a particular gradient fill, including the type of shading to be used, the geometry of the area to be shaded, and the geometry of the gradient fill. | |
class | PdfShadingPattern |
Shading patterns define a gradient fill that produces a smooth transition between colors across the area. The color to use is specified as a function of position using any of a variety of methods. | |
class | PdfSize |
The class represents a size in PDF world coordinates. More... | |
class | PdfStitchingFunction |
Stitching (type 3) functions (PDF 1.3) define a stitching of the subdomains of several 1-input functions to produce a single new 1-input function. | |
class | PdfTensorShading |
Type 7 shadings (tensor-product patch meshes) are identical to type 6, except that they are based on a bicubic tensor-product patch defined by 16 control points instead of the 12 control points that define a Coons patch. | |
class | PdfTextOptions |
Class represents the set of options that control the conversion of text files to PDF documents. More... | |
class | PdfTilingPattern |
Tiling patterns consist of a small graphical figure (called a pattern cell) that is replicated at fixed horizontal and vertical intervals to fill the area to be painted. The graphics objects to use for tiling are described by a content stream. | |
Enumerations | |
enum | BinarizationMethod { FixedThreshold , StandardOtsu , AdaptiveOtsu } |
Binarization methods when converting images from grayscale to black-and-white. More... | |
enum | BlendMode { Unknown , Color , ColorBurn , ColorDodge , Darken , Difference , Exclusion , HardLight , Hue , Lighten , Luminosity , Multiply , Normal , Overlay , Saturation , Screen , SoftLight } |
Blend modes are named functions used in compositing formulas to control the blending operation. More... | |
enum | ImageCompression { None , Flate , Jpeg , CcittG3 , CcittG3F , CcittG3F2 , CcittG4 , Rle , Lzw , Jbig2 , Jpeg2000 , Default } |
Image compression methods. More... | |
enum | LayoutMode { SinglePage , OneColumn , TwoColumnLeft , TwoColumnRight , TwoPageLeft , TwoPageRight } |
Page layout mode to be used when the document is opened. More... | |
enum | PdfActionType { Unknown , GoTo , GoToR , GoToE , Launch , Thread , URI , Sound , Movie , Hide , Named , SubmitForm , ResetForm , ImportData , JavaScript , SetOCGState , Rendition , Trans , GoTo3DView } |
Standard PDF action types More... | |
enum | PdfAnnotAppearance { Normal , Rollover , Down } |
An annotation can define as many as three separate appearances. More... | |
enum | PdfAnnotBorder { Solid , Dashed , Beveled , Inset , Underline } |
Annotation border styles defined by the S entry in the border style (BS) dictionary. More... | |
enum | PdfAnnotFlags { None = 0x0000 , Invisible = 0x0001 , Hidden = 0x0002 , Print = 0x0004 , NoZoom = 0x0008 , NoRotate = 0x0010 , NoView = 0x0020 , ReadOnly = 0x0040 , Locked = 0x0080 , ToggleNoView = 0x0100 , LockedContents = 0x0200 } |
Annotation Flags: the value of the annotation dictionary’s F entry is an unsigned 32-bit integer containing flags specifying various characteristics of the annotation. More... | |
enum | PdfAnnotState { Marked , Unmarked , Accepted , Rejected , Canceled , Comleted , None } |
Annotations can have author-specific state associated with them. More... | |
enum | PdfAnnotType { Unknown , Text , Link , FreeText , Line , Square , Circle , Polygon , PolyLine , Highlight , Underline , Squiggly , Strikeout , Stamp , Caret , Ink , Popup , FileAttachment , Sound , Movie , Screen , Widget , PrinterMark , TrapNet , Watermark , ThreeD , Redact } |
The type of annotations that can appear on a PDF page. More... | |
enum | PdfBookmarkStyle { Regular = 0 , Italic = 1 , Bold = 2 , BoldItalic = 3 } |
Font display styles for bookmark (outline) text. More... | |
enum | PdfDestType { Xyz , Fit , FitH , FitV , FitR , FitB , FitBh , FitBv } |
PDF destinations may be associated with outline items, annotations, or actions. A destination defines a particular view of a document, consisting of the following items: • The page of the document to be displayed • The location of the document window on that page • The magnification (zoom) factor to use when displaying the page The following types of destinations are defined: More... | |
enum | PdfEncryptionAlgorithm { None , RC4 , AES } |
The following algorithms are used when encrypting data in a PDF file: More... | |
enum | PdfFilterType { None , AsciiHexDecode , Ascii85Decode , LzwDecode , FlateDecode , RunLengthDecode , CcittFaxDecode , Jbig2Decode , DctDecode , JpxDecode , Crypt } |
PDF stream and image compression filters. More... | |
enum | PdfFontStyle { Regular = 0 , Bold = 1 , Italic = 2 , Underline = 4 , Strikeout = 8 } |
Specifies style information applied to text. More... | |
enum | PdfFontType { Link , Subset , Embed , Base14 , Glyphless } |
Enumerates options for linking or embedding fonts when generating PDF files. More... | |
enum | PdfInfoField { Title , Author , Subject , Keywords , Creator , Producer , CreationDate , ModDate , Trapped } |
Entries in the document information dictionary. More... | |
enum | PdfLineCap { Flat = 0 , Round = 1 , Square = 2 } |
Line cap style in the graphics state (table 4.4) More... | |
enum | PdfLineJoin { Miter = 0 , Round = 1 , Bevel = 2 } |
Specifies how to join consecutive line or curve segments in a figure or subpath (table 4.5). More... | |
enum | PdfPageMode { UseNone = 0 , UseOutlines = 1 , UseThumbs = 2 , FullScreen = 3 , UseOC = 4 , UseAttachments = 5 } |
PDF page mode when the document is first displayed. More... | |
enum | PdfPageSize { A0 = (2380 << 16) + 3368 , A1 = (1684 << 16) + 2380 , A2 = (1190 << 16) + 1684 , A3 = (842 << 16) + 1190 , A4 = (595 << 16) + 842 , A5 = (421 << 16) + 595 , A6 = (297 << 16) + 421 , B5 = (501 << 16) + 709 , Letter = (612 << 16) + 792 , Legal = (612 << 16) + 1008 , Ledger = (1224 << 16) + 792 , Tabloid = (1224 << 16) + 792 } |
Common PDF page sizes. Page width/height are in the high/low word. More... | |
enum | PdfPixelFormat { Automatic , Color , Grayscale , Dithered , Threshold } |
Enumerates pixel formats when PDF pages are converted to images. More... | |
enum | PdfRendering { Fill , Stroke , FillStroke , Hide , FillClip , StrokeClip , FillStrokeClip , Clip } |
PDF text rendering modes. More... | |
enum | PdfSaveFormat { VectorPdf , RasterPdf , SearchablePdf , TextPdf , Tiff , Png , Jpeg , Text } |
Options used when a PDF document is saved as a new file. More... | |
enum | PdfVersion { Unknown = 0 , Version10 = 10 , Version11 = 11 , Version12 = 12 , Version13 = 13 , Version14 = 14 , Version15 = 15 , Version16 = 16 , Version17 = 17 } |
Supported PDF file versions: 14 for 1.4, 15 for 1.5, etc. More... | |
enum | TiffSaveFormat { CcittG4 , CcittDitheredG4 , GrayscalePng , ColorPng , ColorJpeg } |
Compression formats for TIFF or rasterized PDF pages. More... | |
Blend modes are named functions used in compositing formulas to control the blending operation.
Image compression methods.
Page layout mode to be used when the document is opened.
Standard PDF action types
An annotation can define as many as three separate appearances.
Annotation border styles defined by the S entry in the border style (BS) dictionary.
Annotation Flags: the value of the annotation dictionary’s F entry is an unsigned 32-bit integer containing flags specifying various characteristics of the annotation.
Annotations can have author-specific state associated with them.
The type of annotations that can appear on a PDF page.
PDF destinations may be associated with outline items, annotations, or actions. A destination defines a particular view of a document, consisting of the following items: • The page of the document to be displayed • The location of the document window on that page • The magnification (zoom) factor to use when displaying the page The following types of destinations are defined:
The following algorithms are used when encrypting data in a PDF file:
A proprietary encryption algorithm known as RC4. RC4 is a symmetric stream cipher: the same algorithm is used for both encryption and decryption, and the algorithm does not change the length of the data.
The AES (Advanced Encryption Standard) algorithm (beginning with PDF 1.6). AES is a symmetric block cipher: the same algorithm is used for both encryption and decryption, and the length of the data when encrypted is rounded up to a multiple of the block size, which is fixed in this implementation to always be 16 bytes.
Enumerator | |
---|---|
None | Do not encrypt, or let application perform custom encryption. |
RC4 | RC4 algorithm with 40-bit or 128-bit keys. |
AES | AES algorithm with a 128-bit or 256-bit keys. |
PDF stream and image compression filters.
Enumerates options for linking or embedding fonts when generating PDF files.
The PdfFontType.Link member specifies that all fonts should be linked. This option will produce the smallest PDF document because the font program required to render individual glyphs is not embedded in the PDF document.
The PdfFontType.Subset option will only copy the glyphs that are actually referenced in the PDF document. This option will ensure that a PDF document is rendered correctly on any system, but does incur a slight processing overhead to subset the font.
The PdfFontType.Embed option will copy the contents of the entire font program into the PDF document. This will guarantee correct rendering of the document on any system, however certain fonts - especially CJK fonts - are extremely large.
Enumerator | |
---|---|
Link | Link a TrueType font program. |
Subset | A subset of a CID font program is embedded. |
Embed | Entire CID font program is embedded. |
Base14 | Use a standard base 14 font. |
Glyphless | Use a compact glyph-less CID font for hidden text. |
Entries in the document information dictionary.
Line cap style in the graphics state (table 4.4)
Specifies how to join consecutive line or curve segments in a figure or subpath (table 4.5).
PDF page mode when the document is first displayed.
Common PDF page sizes. Page width/height are in the high/low word.
Enumerates pixel formats when PDF pages are converted to images.
PDF text rendering modes.
Options used when a PDF document is saved as a new file.
Supported PDF file versions: 14 for 1.4, 15 for 1.5, etc.