'Usage Dim instance As ImGearPDFDocument Dim fileName As String instance.SaveCompressed(fileName)
Parameters
- fileName
- File name of file to be saved.
ImageGear .NET improves the overall size of saved PDF documents by reducing or removing data structures in the PDF document, specifically:
WARNING: Re-compressing Images with JBIG2 will invalidate PDF/X compliant documents.
WARNING: Removing embedded Standard Type 1 Fonts will invalidate PDF/X compliant documents.
WARNING: Removing embedded Standard Type 1 Fonts will invalidate PDF/A compliant documents when visible text is affected.
File size improvements will vary with each PDF file. In some cases, file size reduction is dramatic. Re-saving an optimized PDF file is not expected to further reduce its size. Less frequently, PDF file size may increase due to metadata that is always written when PDF documents are saved. Unmodified PDF files that cannot be further reduced are returned unaltered.