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.


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

PdfSaveOptions options = new PdfSaveOptions();
options.setTextCompression(PdfTextCompression.NONE); + "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.