Reduce file size

I have enabled various <span style=“color: rgb(121, 93, 163); font-family: SFMono-Regular, Consolas, “Liberation Mono”, Menlo, Courier, monospace; font-size: 12px; white-space: pre; background-color: rgb(255, 255, 255);”>OptimizationOptions when generating my PDF files. The file sizes are reduced as expected. However, I found that by performing a Save-As in Acrobat Reader or Print to PDF, the file sizes can be reduced further.


May I know if there are options to achieve similar effects using Aspose PDF API? Thanks.

Hi Jumping,


Thanks for contacting support. I will appreciate if you please share your sample PDF file along with sample code. It will help us to understand your requirement exactly and address it accordingly.

We are sorry for the inconvenience.

Best Regards,

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px ‘Helvetica Neue’; -webkit-text-stroke: #000000}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px ‘Helvetica Neue’; -webkit-text-stroke: #000000; min-height: 14.0px}
span.s1 {font-kerning: none}