Xojo Conferences

DynaPDF Manual - Page 537

Previous Page 536   Index   Next Page 538

Function Reference
Page 537 of 770
The above flags avoid the conversion of pages to templates, the memory usage will be reduced, and
a duplicate check is applied on images, templates, extended graphics states, and several other PDF
objects which are often used.
Many other flags are available but the above flags can be used by default whenever a PDF file should
be optimized.
Error handling
This function adds warnings to the error log of DynaPDF. The error log can be accessed with
GetErrLogMessageCount() / GetErrLogMessage().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0. No PDF file is
in memory if the function fails. Therefore, it is not required to call FreePDF() on failure.

Previous topic: Hairline correction, Possible issues, Special flags, Recommendations

Next topic: PageLink, PageLink2