DynaPDF Manual - Page 801

Previous Page 800   Index   Next Page 802

Function Reference
Page 801 of 839
SetUseStdFonts
Syntax:
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, if 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)
Syntax:
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.
Remarks:
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() instead.
 

Previous topic: SetUseImageInterpolationEx, SetUserUnit

Next topic: SetUseSwapFileEx (obsolete), SetUseSystemFonts