Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 601

Previous Page 600   Index   Next Page 602

Function Reference
Page 601 of 770
The Otsu filter is useful if an OCR scan should be applied on the resulting 1 bit image. Most OCR
engines produce best results with this filter. The pixel format must be set to pxfGray and Anti-
Aliasing should be left enabled. The flag cfConvGrayToOtsu can be combined with CCITT Fax, Flate,
or LZW compression.
Note that Flate compression is no standard filter for TIFF images. If the image should be usable with
Adobe's Photoshop then use either CCITT Fax or LZW compression (cfLZWBW).
If the output format is Bitmap (BMP) the compression filter is only used to determine whether Floyd-
Steinberg Dithering should be used. The compression filter can be set to any of the above values.
Remarks:
This function is available in an Ansi and Unicode compatible version. Unicode file paths are
converted to UTF-8 on non-Windows operating systems.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
RenderPDFFile (obsolete)
Syntax:
LBOOL pdfRenderPDFFile(
const PPDF* IPDF,
// PDF Instance pointer
const char* OutFile,
// File name or directory
UI32 Resolution,
// Resolution in DPI
TRasterFlags Flags,
// Optional flags
TPDFPixFormat PixFmt,
// Output pixel format
TCompressionFilter Filter, // Compression filter for TIFF output
TImageFormat Format)
// Output image format
This function is obsolete and should no longer be used. New applications should use
RenderPDFFileEx() instead.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
RenderPDFFileEx
Syntax:
LBOOL pdfRenderPDFFileEx(
const PPDF* IPDF,
// PDF Instance pointer
const char* OutFile,
// File name or directory
UI32 Resolution,
// Resolution in DPI
SI32 Width,
// or output width
SI32 Height,
// or output height
TRasterFlags Flags,
// Optional flags
TPDFPixFormat PixFmt,
// Output pixel format
TCompressionFilter Filter, // Compression filter for TIFF output
 

Previous topic: 1 Bit Rendering

Next topic: ReplaceFont, ReOpenImportFile