Declaring Type: PdfCompressor
Namespace: Mindee.Pdf
Assembly: Mindee
Assembly Version: 3.21.0+995c229708fe61b0dacbe0bfca8ad9e39db87623
Compresses a PDF file using DocLib.
public static byte[] CompressPdf(byte[] pdfData, int imageQuality = 85, bool forceSourceTextCompression = false, bool disableSourceText = true);
pdfData
byte[]
Byte array representing the content of the PDF file.
imageQuality
int
Quality of the final file.
forceSourceTextCompression
bool
Whether to force the rendering of source pdf. If enabled, will attempt to re-write the detected text.
disableSourceText
bool
If the PDF has source text, whether to re-apply it to the original or not.
byte[]
A byte array containing a compressed PDF.
Documentation generated by MdDocs