[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcPdfDocument.Optimize

Optimize Method

Optimize(Stream, OptimizeDocumentOptions)

Optimizes the document and saves it to the specified stream.

Declaration
public void Optimize(Stream stream, OptimizeDocumentOptions options)
Public Sub Optimize(stream As Stream, options As OptimizeDocumentOptions)
Parameters
Type Name Description
Stream stream

The Stream to which the optimized document will be saved.

OptimizeDocumentOptions options

The optimization settings to apply during the save operation.

Optimize(string, OptimizeDocumentOptions)

Optimizes the document and saves it to the specified file.

Declaration
public void Optimize(string fileName, OptimizeDocumentOptions options)
Public Sub Optimize(fileName As String, options As OptimizeDocumentOptions)
Parameters
Type Name Description
string fileName

The path and file name of the PDF file to create.

OptimizeDocumentOptions options

The optimization settings to apply during the save operation.