Xojo Conferences

DynaPDF Manual - Page 734

Previous Page 733   Index   Next Page 735

Function Reference
Page 734 of 770
If certain standard fonts are available on the system, then they have typically a higher search priority
but it is still possible to select a standard font. This can occur, for example, when the font weight of
the system font does not exactly match the requested weight. If a standard font represents a better
match, then this font would be selected.
To avoid unwanted font selections it is possible to disable the standard fonts from font selection. The
value can be changed whenever necessary.
Default value = 1 (true)
SetUseSwapFile (obsolete)
LBOOL pdfSetUseSwapFile(
const PPDF* IPDF,
// Instance pointer
LBOOL SwapContents, // If true, content streams are paged out too
UI32 SwapLimit)
// Memory limit in KB
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.
When importing large PDF files, the flag if2UseProxy should be set to drastically reduce the memory
usage (see SetImportFlags2() for furhter information). When this flag is set, PDF files of arbitrary size
can be imported with minimal memory usage. The only restriction is that the imported PDF file(s)
cannot be deleted before CloseFile() or CloseFileEx() was called.
To enable the creation of large PDF files (up to 4 GB), it is possible to write finished pages into the
output file with FlushPages(). This is much more efficient and reduces the memory usage drastically.
Beginning with DynaPDF 3.0, this function writes only images into the temp file. The parameter
SwapContents is no longer considered.
The function tmpfile() creates the temp file usually in the system's root directory. If you want to use
your own directory into which the temp file can be created then use the function SetUseSwapFileEx()
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.

Previous topic: SetUseImageInterpolationEx, SetUserUnit, SetUseStdFonts

Next topic: SetUseSwapFileEx (obsolete), SetUseSystemFonts