DynaPDF Manual - Page 127

Previous Page 126   Index   Next Page 128

Function Reference
Page 127 of 787
supported on Mac OS X. Note that the font file is not loaded into memory; it is just added to the list
of font files.
Remarks:
The list of search directories can be cleared at runtime with the function ClearHostFonts().
If system fonts are enabled (default) DynaPDF adds the default font directories of the operating
system automatically to the list of font search paths (Windows and Mac OSX only, see
SetUseSystemFonts() for further information). On Windows this is the %WINDIR%/Fonts directory
as well as fonts listed in the Registry and linked fonts.
On Mac OSX the following directories are added to the list of font search paths (in this order):
~/Library/Fonts
/Library/Fonts
/System/Library/Fonts
Return values:
If the function succeeds the function returns the number of found font files (this is maybe not the
number of available fonts, because the list is cleared each time all fonts in the list are processed
during font selection). If the function fails a negative error code is returned.
AddImage
Syntax:
LBOOL pdfAddImage(
const PPDF* IPDF,
// Instance pointer
TCompressionFilter Filter,
// See below
TImageConversionFlags Flags, // See below
struct TPDFImage* Image)
// Image structure
typedef enum
{
cfFlate
= 0,
// PDF or TIFF output
cfJPEG
= 1,
// PDF, JPEG, or TIFF output
cfCCITT3
= 2,
// PDF or TIFF output -> B&W CCITT Fax G3 compression
cfCCITT4
= 3,
// PDF or TIFF output -> B&W CCITT Fax G4 compression
cfLZW
= 4,
// TIFF or GIF output -> Much faster than flate
cfLZWBW
= 5,
// TIFF
cfFlateBW
= 6,
// TIFF, PNG, or BMP output -> Dithered black & white.
// The resulting image is compressed with Flate or left
// uncompressed if the output image format is a bitmap.
// If you want to use CCITT Fax 4 compression (TIFF
// only) then set the flag icUseCCITT4.
cfJP2K
= 7
// PDF or JPEG2000 output
cfNone
= 255, // TIFF output only
}TCompressionFilter;
typedef enum
{
icNone
= 0, // Default
icUseCCITT4 = 1
// Use CCITT Fax 4 for dithered images.
}TImageConversionFlags;
 

Previous topic: AddFileComment, AddFontSearchPath

Next topic: AddInkList

Start Chat