Xojo Conferences

DynaPDF Manual - Page 586

Previous Page 585   Index   Next Page 587

Function Reference
Page 586 of 750
SI32 pdfReplaceFont(
const PPDF* IPDF,
// Instance pointer
const PFNT* PDFFont,
// Parameter of the OnFontNotFount callback
const char* Name,
// Family or Postscript name of the font
TFStyle Style,
// Font style to load
LBOOL NameIsFamilyName) // If true, Name is a Family name
The function replaces a PDF font with another one. 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.
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.
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.

Previous topic: RenderPDFFile (Rendering Engine)

Next topic: ReplaceICCProfile