Foxit PDF SDK
|
Static Public Member Functions | |
static common::Progressive | Optimize (const pdf::PDFDoc &doc, const OptimizerSettings &settings, common::PauseCallback *pause) |
Optimize the given PDF document with specified optimizers settings. More... | |
Additional Inherited Members | |
![]() | |
FS_HANDLE | Handle () const |
Get the handle of current object. More... | |
This class can be used to optimize PDF file to reduce file size. Before using this class to do optimization, please ensure Foxti PDF SDK has been initialized successfully by function common::Library::Initialize with a key including "Optimizer" module.
|
static |
Optimize the given PDF document with specified optimizers settings.
[in] | doc | A valid PDF document object to be optimized. |
[in] | settings | Setting data used for optimization processing settings. |
[in] | pause | Pause object which decides if the process needs to be paused. This can be NULL which means not to pause during the optimization process. If this is not NULL, it should be a valid pause object implemented by user. |