PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
PDF::DocumentOptimizer Class Reference

Static Public Member Functions

static void Optimize (const Document &document, const std::filesystem::path &destPath, const OptimizeOptions &options, ProgressMonitor *progress=nullptr)
 Compresses the specified document and saves it to the specified path.
 

Member Function Documentation

◆ Optimize()

void PDF::DocumentOptimizer::Optimize ( const Document & document,
const std::filesystem::path & destPath,
const OptimizeOptions & options,
ProgressMonitor * progress = nullptr )
inlinestatic

Compresses the specified document and saves it to the specified path.

Parameters
[in]documentA reference to the document to compress.
[in]destPathA reference to the path where to save the compressed document.
[in]optionsA reference to the options for the compression process. These options specify a reduction in image quality, a target DPI as well as which PDF elements to remove in order to save space.
See also
PDFOptimizeOptions
Parameters
[in,out]progressA pointer to an optional progress monitor for tracking the conversion progress page by page. Inherit the class ProgressMonitor and define the needed methods.
See also
ProgressMonitor

The documentation for this class was generated from the following file: