DynaPDF Manual - Page 785

Previous Page 784   Index   Next Page 786

Function Reference
Page 785 of 821
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetUseSwapFileEx (obsolete)
Syntax:
LBOOL pdfSetUseSwapFileEx(
const PPDF* IPDF,
// Instance pointer
LBOOL SwapContents,
// If true, content streams are paged out too
UI32 SwapLimit,
// Memory limit in KB
const char* SwapDir) // Destination directory of the temp file
This function is obsolete and should no longer be used. Beginning with DynaPDF 3.0, more efficient
features are available to restrict the memory usage. See SetUseSwapFile() for further information.
Beginning with DynaPDF 3.0, the function writes only images into the temp file. The parameter
SwapContents is no longer considered.
The temp file will be created in the directory SwapDir. This directory must exist when the function is
called.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetUseSystemFonts
Syntax:
LBOOL pdfSetUseSystemFonts(
const PPDF* IPDF, // Instance pointer
LBOOL Value)
// see description
The property specifies whether the system fonts should be automatically loaded. On Windows all
fonts in the Windows/Fonts directory will be loaded as well as shared fonts listed in the Registry.
On Mac OS X the following font paths will be added to the list of font search paths:
/System/Library/Fonts
/Library/Fonts
~/Library/Fonts
Additional font paths can be added with AddFontSearchPath().
Default value = 1 (true)
The fonts are loaded when SetFont() is called the first time. The property is ignored on Linux or
UNIX.
Remarks:
Please note that the internal font list is not automatically updated when the system's font pool
changes. Windows operating systems send a WM_FONTCHANGE message if the font pool was
 

Previous topic: SetUseStdFonts, SetUseSwapFile (obsolete)

Next topic: SetUseTransparency, SetUseVisibleCoords


Start Chat