Can you share what exactly it does internally ? Whether / how output quality will be impacted ? When should it be used ? Can it be used only while creating PDF/A or during normal PDF as well ?
Thanks for your inquriy. Please note setOptimizeFileSize Boolean property is used in PDF to PDFA conversion. Setting property enables/disables special conversion mode to get PDF/A document with reduced file size. Set of this flag and mode could significantly reduce file size but at the same time it could significantly decrease performance of conversion.
Please feel free to contact us for any further assistance.
Thanks for your inquiry. Please note currently usage of setOptimizeFileSize flag executes optimization for fonts used in the PDF document, how fonts will be optimized depends on strategy selected - please see the PdfFormatConversionOptions.ExcludeFontsStrategy field and PdfFormatConversionOptions.RemoveFontsStrategy enumeration.
Possibly, in future, this flag will be also used to switch on optimization for other data structures, such as graphic.
Please feel free to contact us for any further assistance.
Thanks for your inquiry. Please note method com.aspose.pdf.Document.optimize() optimizes document structure and also reduces size of PDF document. But this method differs from OptimizeFileSize in areas to support, method com.aspose.pdf.Document.optimize() can be used with any PDF document while OptimizeFileSize impacts only on documents which are converting into PDF/A format. If you are converting document into PDF/A format and want to reduce file size it is better to join both functionalities OptimizeFileSize and com.aspose.pdf.Document.optimize(), so to achieve more compact PDF/A document you can use code like this: