Xojo Conferences

DynaPDF Manual - Page 714

Previous Page 713   Index   Next Page 715

Function Reference
Page 714 of 750
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
LBOOL pdfSetUseStdFonts(
const PPDF* IPDF, // Instance pointer
LBOOL Value)
// If false, the 14 standard fonts are disabled
The function can be used to disable the 14 standard fonts temporarily. PDF viewer applications
support 14 standard fonts, these fonts are not embedded by default, also if the parameter Embed of
the function SetFont() is true.
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.

Previous topic: SetUserUnit

Next topic: SetUseSystemFonts