DynaPDF Manual - Page 627

Previous Page 626   Index   Next Page 628

Function Reference
Page 627 of 818
void*
OnInitDecoder;
// Not yet defined
void*
OnDecodeLine;
// Not yet defined
const void*
UserData;
// A pointer that should be passed to the callback function
UI32
UpdateOnPathCount;
// Optional -> Call OnUpdateWindow when the limit was reached. Clipping paths increment the
// number too. Only full paths are considered, independent of the number of vertices they
// contain. The value should be between 3000 and 10.000. Values between 3000 and 5000 produce
// best results. DynaPDF fires an update event when either 100.000 vertices were rendered or when
// the UpdateOnPathCount limit was reached, whatever occurs first.
float
UpdateOnImageCoverage;
// Optional -> UpdateOnImageCoverage specifies a factor that is multiplied with a master area
// of 1,000,000 pixels. So, when the factor is set to 1.0 then the update event is fired when
// 1,000,000 unscaled source pixels were processed.
// Statistics...
UI32
NumAnnots;
// Out
UI32
NumBezierCurves;
// Out
UI32
NumClipPaths;
// Out
UI32
NumFormFields;
// Out
UI32
NumGlyphs;
// Out
UI32
NumImages;
// Out
UI32
NumLineTo;
// Out
UI32
NumPaths;
// Out
UI32
NumPatterns;
// Out
UI32
NumRectangles;
// Out
UI32
NumRestoreGState;
// Out
UI32
NumSaveGState;
// Out
UI32
NumShadings;
// Out
UI32
NumSoftMasks;
// Out
UI32
NumTextRecords;
// Out
};
typedef enum
{
psFitWidth,
// Scale the page to the width of the image
psFitHeight, // Scale the page to the height of the image
psFitBest,
// Scale the page so that it fits fully into the image
psFitZoom
// Should be used when zooming into a page to avoid
// adjustments on the transformation matrix
}TPDFPageScale;
typedef enum
{
rfDefault
= 0x00000000,
rfScaleToMediaBox = 0x00000001,
rfIgnoreCropBox
= 0x00000002,
/*
The art, bleed, or trim box is first intersected with the media box
or crop box if present since these boxes represent the maximum extend
of the page. If the flag rfIgnoreCropBox is set, the boxes are
intersected with the media box. The page is scaled to the media or crop
box depending on the above flags. By default a page is scaled to the
crop box if present.
*/
rtClipToArtBox
= 0x00000004,
rtClipToBleedBox
= 0x00000008,
rtClipToTrimBox
= 0x00000010,
rtExclAnnotations = 0x00000020,
rtExclFormFields
= 0x00000040,
rfSkipUpdateBG
= 0x00000080, // Skip the update event after initializing the background
rfRotate90
= 0x00000100, // Rotate the page by 90 degress
rfRotate180
= 0x00000200, // Rotate the page by 180 degress
rfRotate270
= 0x00000400, // Rotate the page by 270 degress
rfInitBlack
= 0x00000800, // Initialize the image buffer to black
// before rendering. This flag is not
// meaningful if the pixel format has
 

Previous topic: RenderPage (Rendering Engine)

Next topic: Minimal initialization


Start Chat