DynaPDF Manual - Page 681

Previous Page 680   Index   Next Page 682

Function Reference
Page 681 of 860
ReplaceFont
Syntax:
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.
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.
 

Previous topic: RenderPDFFile (obsolete), RenderPDFFileEx

Next topic: ReplaceFontEx, ReplaceICCProfile