3#ifndef PDFSDK_CXX_DOCUMENT_OPTIMIZER_H_INCLUDED_
4#define PDFSDK_CXX_DOCUMENT_OPTIMIZER_H_INCLUDED_
8#include <pdfsdk/cxx/document.h>
25 const std::filesystem::path& destPath,
31 const std::filesystem::path& destPath,
35 destPath.wstring().c_str(),
37 progress ? progress->monitor() :
nullptr,
38 progress ? progress->userdata() :
nullptr));
Represents a PDF document.
Definition document.h:22
Definition document_optimizer.h:15
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.
Definition document_optimizer.h:30
Progress monitor for tracking the progress of an operation.
Definition progress_monitor.h:14
The PDF Document Optimizer API.
PDFSDK_IMPORT_ PDErrCode PDFSDK_CALLCONV PDFOptimizeDocument(PDDoc sourceDoc, const wchar_t *destPath, const PDFOptimizeOptions *options, const PDProgressMonitor *progress, void *progressData)
Optimizes the specified document and saves it to the specified path.
Options for the optimization process.
Definition document_optimizer.h:54