Package com.mindee.pdf
Class PdfCompressor
- java.lang.Object
-
- com.mindee.pdf.PdfCompressor
-
public class PdfCompressor extends Object
PDF compression class.
-
-
Constructor Summary
Constructors Constructor Description PdfCompressor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
compressPdf(byte[] pdfData)
static byte[]
compressPdf(byte[] pdfData, Integer imageQuality)
static byte[]
compressPdf(byte[] pdfData, Integer imageQuality, Boolean forceSourceTextCompression)
static byte[]
compressPdf(byte[] pdfData, Integer imageQuality, Boolean forceSourceTextCompression, Boolean disableSourceText)
-
-
-
Method Detail
-
compressPdf
public static byte[] compressPdf(byte[] pdfData, Integer imageQuality, Boolean forceSourceTextCompression, Boolean disableSourceText) throws IOException
- Throws:
IOException
-
compressPdf
public static byte[] compressPdf(byte[] pdfData, Integer imageQuality, Boolean forceSourceTextCompression) throws IOException
- Throws:
IOException
-
compressPdf
public static byte[] compressPdf(byte[] pdfData, Integer imageQuality) throws IOException
- Throws:
IOException
-
compressPdf
public static byte[] compressPdf(byte[] pdfData) throws IOException
- Throws:
IOException
-
-