Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 596

Previous Page 595   Index   Next Page 597

Function Reference
Page 596 of 767
// ---------------------------------
rfScaleToBBox
= 0x00100000, // Meaningful only, if rfClipToArtBox, rfClipToBleedBox, or
// rfClipToTrimBox is set. If set, the picture size is set to the
// size of the wished bounding box.
rfDisableAAClipping
= 0x00200000, // Disable Anti-Aliasing for clipping paths. This flag is
// the most important one since clipping paths cause often
// visible artefacts in PDF files with flattened
// transparency.
rfDisableAAText
= 0x00400000, // Disable Anti-Aliasing for text.
rfDisableAAVector
= 0x00800000, // Disable Anti-Aliasing for vector graphics.
// Fully disable Anti-Aliasing.
rfDisableAntiAliasing
= rfDisableAAClipping | rfDisableAAText | rfDisableAAVector,
rfDisableBiLinearFilter = 0x01000000, // Disable the BiLevel filter for images. Sometetimes useful
// if sharp images are needed, e.g. for barcodes.
}TRasterFlags;
typedef enum
{
cfFlate
= 0, // TIFF output
cfJPEG
= 1, // TIFF or JPEG output
cfCCITT3
= 2, // TIFF output, see 1 Bit Rendering
cfCCITT4
= 3, // TIFF output, see 1 Bit Rendering
cfLZW
= 4, // TIFF output
cfLZWBW
= 5, // TIFF, see 1 Bit Rendering
cfFlateBW
= 6, // BMP, PNG, TIFF, see 1 Bit Rendering
cfJP2K
= 7
// JPEG 2000 output
// These flags can be combined with cfCCITT3/4, cfFlate, and cfLZW.
cfDitherFloydSteinberg = 0x00001000, // Floyd Steinberg dithering.
cfConvGrayToOtsu
= 0x00002000
// The Otsu filter is a special filter to produce black &
// white images. It is very useful if an OCR scan should be
// applied on the resulting 1 bit image. The flag will be
// considered if the pixel format was set to pxfGray.
}TCompressionFilter;
typedef enum
{
pxf1Bit,
// BMP, PNG, or TIFF output
pxfGray,
// BMP, PNG, JPEG, JPEG 2000, or TIFF output
pxfGrayA, // PNG or TIFF output
pxfRGB,
// PNG, JPEG, JPEG 2000, or TIFF output
pxfBGR,
// BMP
pxfRGBA,
// BMP, PNG, TIFF
pxfBGRA,
// BMP
pxfARGB,
// Unsupported
pxfABGR,
// Unsupported
pxfCMYK,
// TIFF, JPEG
pxfCMYKA
// TIFF, JPEG
}TPDFPixFormat;
typedef enum
{
ifmTIFF,
// 1 bit, gray, RGB, CMYK, CMYKA, CCITT 3/4, JPEG, Flate, LZW
ifmJPEG,
// Gray, RGB, CMYK, CMYKA, JPEG compression
ifmPNG,
// 1 bit, gray, RGB, Flate compression
ifmReserved, // Reserved for future extensions
ifmBMP,
// 1 bit, gray, RGB, uncompressed
ifmJPC
// 1 bit, gray, RGB, JPEG 2000 compression
}TImageFormat;
The function renders a PDF page to an image. The page that should be rendered must be closed
(Append() or EditPage() open a page and EndPage() closes a page).
If the parameter OutFile is set to NULL the image is created in memory. In this case call
GetImageBuffer() to get the image buffer and call finally FreeImageBuffer() to release it.
 

Previous topic: RenderPageToImage (Rendering Engine)

Next topic: RenderPDFFileEx