com.aspose.words
Class PdfTextCompression

java.lang.Object
    extended by com.aspose.words.PdfTextCompression

public class PdfTextCompression 
extends java.lang.Object

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

Example:

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

PdfSaveOptions options = new PdfSaveOptions();
options.setTextCompression(PdfTextCompression.NONE);

doc.save(getMyDir() + "Rendering.SaveToPdfNoCompression Out.pdf", options);

Field Summary
static final intNONE = 0
           No compression.
static final intFLATE = 1
           Flate (ZIP) compression.
 

Field Detail

NONE = 0

public static final int NONE
No compression.

FLATE = 1

public static final int FLATE
Flate (ZIP) compression.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.