Click or drag to resize

PdfTextCompression Enumeration

Specifies a type of compression applied to all content in the PDF file except images.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.7.0

Syntax

public enum PdfTextCompression

Members

  Member nameValueDescription
None0 No compression.
Flate1 Flate (ZIP) compression.

Examples

Saves a document to PDF without compression.
Document doc = new Document(MyDir + "Rendering.docx");

PdfSaveOptions options = new PdfSaveOptions();
options.TextCompression = PdfTextCompression.None;

doc.Save(ArtifactsDir + "Rendering.SaveToPdfNoCompression.pdf", options);

See Also