|
Foxit PDF SDK
|
Public Member Functions | |
| synchronized void | delete () |
| Clean up related resources immediately. More... | |
Static Public Member Functions | |
| static AuditSpaceSize | computeAuditSpace (PDFDoc doc) throws com.foxit.sdk.PDFException |
| Compute audit space. More... | |
| static Progressive | optimize (PDFDoc doc, OptimizerSettings settings, PauseCallback pause) throws com.foxit.sdk.PDFException |
| Optimize the given PDF document with specified optimizer settings. More... | |
| static Progressive | optimizeScannedPDF (PDFDoc doc, OptimizeScannedPDFSettings settings, ImageCompressionCallback image_compress_callback, PauseCallback pause) throws com.foxit.sdk.PDFException |
| Optimize the scanned PDF document with specified optimizers settings. More... | |
| static Progressive | startSubsetEmbedFont (PDFDoc doc, PauseCallback pause) throws com.foxit.sdk.PDFException |
| Start to make subsets for embedded fonts in the given PDF document. More... | |
This class can be used to optimize PDF file to reduce file size. Before using this class to do optimization, please ensure Foxit PDF SDK has been initialized successfully by function common.Library.initialize with a key including "Optimizer" module.
|
static |
Compute audit space.
| [in] | doc | A valid PDF document object to audit space. |
| synchronized void com.foxit.sdk.addon.optimization.Optimizer.delete | ( | ) |
Clean up related resources immediately.
Reimplemented from com.foxit.sdk.common.Base.
|
static |
Optimize the given PDF document with specified optimizer 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. |
|
static |
Optimize the scanned 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] | image_compress_callback | A com.foxit.sdk.addon.optimization.ImageCompressionCallback object which is implemented by user for temp file data during replacing page process. When replacing pages process is finished (no matter successfully or not), callback function foxit.addon.optimization.ImageCompressionCallback.release will be called by Foxit PDF SDK. |
| [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. |
|
static |
Start to make subsets for embedded fonts in the given PDF document.
This function can be used to remove useless embedded characters from the data of embedded fonts (if there's any in a PDF document) in order to reduce the size of a PDF document.
| [in] | doc | A valid PDF document object to be processed a subset of embedded fonts. |
| [in] | pause | Pause object which decides if the process needs to be paused. This can be null which means not to pause during the embeded font subset process. If this is not null, it should be a valid pause object implemented by user. |