Enum PdfTextCompression

PdfTextCompression enumeration

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

public enum PdfTextCompression

Values

NameValueDescription
None0No compression.
Flate1Flate compression.

Examples

Shows how to set a compression type to be used for all content streams except images.

var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");

var options = new PdfSaveOptions();

// set compression type to be used for all content streams except images
options.TextCompression = PdfTextCompression.Flate;

// tune additional properties
// set the <see cref="P:Aspose.Tasks.Saving.SaveOptions.PresentationFormat" /> in which the document will be saved.
options.PresentationFormat = PresentationFormat.GanttChart;

// set a desired conformance level for generated PDF document
options.Compliance = PdfCompliance.PdfA1b;

project.Save(OutDir + "WorkWithTextCompression_out.pdf", options);

See Also