Back to Devexpress

PdfDocumentProcessor.OptimizeDocument(PdfOptimizationOptions) Method

officefileapi-devexpress-dot-pdf-dot-pdfdocumentprocessor-dot-optimizedocument-x28-devexpress-dot-pdf-dot-pdfoptimizationoptions-x29.md

latest1.5 KB
Original Source

PdfDocumentProcessor.OptimizeDocument(PdfOptimizationOptions) Method

Optimizes the loaded PDF document with the specified settings.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Docs.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

csharp
public bool OptimizeDocument(
    PdfOptimizationOptions options
)
vb
Public Function OptimizeDocument(
    options As PdfOptimizationOptions
) As Boolean

Parameters

NameTypeDescription
optionsPdfOptimizationOptions

Specifies optimization settings for image compression and element removal.

|

Returns

TypeDescription
Boolean

true if the document was modified during optimization; otherwise, false.

|

See Also

PdfDocumentProcessor Class

PdfDocumentProcessor Members

DevExpress.Pdf Namespace