DynaPDF Manual - Page 542

Previous Page 541   Index   Next Page 543

Function Reference
Page 542 of 777
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