DynaPDF Manual - Page 661
Previous Page 660 Index Next Page 662
Function Reference
Page 661 of 839
On Linux or Unix system fonts must be loaded with AddFontSearchPath() before this function can
be called. This should be done before the first PDF file is imported.
Return value:
If the function succeeds the return value is zero. If the function fails the return value is a negative
error code.
ReOpenImportFile
Syntax:
LBOOL pdfReOpenImportFile(
const PPDF* IPDF, // Instance pointer
UI32 Handle)
// File handle
The function re-opens a PDf file so that further contents can be imported from it. The parameter
Handle must be a valid file handle that OpenImportFile() or OpenImportBuffer() returned.
When the file is no longer needed close the parser instance with CloseImportFileEx().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ReplaceFontEx
Syntax:
SI32 pdfReplaceFontEx(
const PPDF* IPDF,
// Instance pointer
const PFNT* PDFFont,
// Parameter of the OnFontNotFount callback
const char* FontFile, // Path of the font file to be loaded
LBOOL Embed)
// Must be true when creating PDF/A files
The function replaces a PDF font with another one. The font file can be loaded directly. It is not
required to install the font on the system. The function can be called in the OnFontNotFound
callback function of the function CheckConformance(). The return value of the callback function
should be the return value of this function. The parameter PDFFont is a parameter of the callback
function. The pointer is required and must be passed unchanged to the function.
Return value:
If the function succeeds the return value is zero. If the function fails the return value is a negative
error code.
Previous topic: ReplaceFont
Next topic: ReplaceICCProfile, ReplaceICCProfileEx