DynaPDF Manual - Page 751

Previous Page 750   Index   Next Page 752

Function Reference
Page 751 of 787
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.
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.
 

Previous topic: SetUserUnit, SetUseStdFonts

Next topic: SetUseSystemFonts, SetUseTransparency

Start Chat