com.aspose.words

Class PdfTextCompression

  • java.lang.Object
    • 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() + "\\Artifacts\\Rendering.SaveToPdfNoCompression.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.