DynaPDF Manual - Page 741

Previous Page 740   Index   Next Page 742

Function Reference
Page 741 of 777
SetUseSwapFileEx (obsolete)
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
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
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:
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
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
modified. In this case, the application should call ClearHostFonts() before calling SetFont() the next
time so that the list of available system fonts can be updated.

Previous topic: SetUseSwapFile (obsolete)

Next topic: SetUseTransparency, SetUseVisibleCoords