Copy link to clipboard
Copied
I created Application by Using SDK to convert Word document to PDF.
It works fine but after conversation PDF file's size increases so much.
15-20 KB Word document becomes 1 MB PDF file after conversation.
How can I optimize the PDF file's size?
I found the way, actually need to pass another param "cConvID".
Just of the complete conclusion,
Try not to use external (embedded) fonts.
And Instead of saving do "saveAs" with passing param "cConvID".
Copy link to clipboard
Copied
I suspect that is because you are embedding fonts, and that particular document uses a LOT of fonts…but I can only guess…
How are you converting the Word file using the SDK? What settings for conversion are you using?
Copy link to clipboard
Copied
No it does not contains any special fonts, only has Arial.
But I found that size increases after adding Watermark to the converted PDF. Watermark is only a text(no image).
This is the code snippet
Please let me know how to optimize PDF after adding watermark.
Copy link to clipboard
Copied
AH!!!
But your watermark will cause a font embedding – and potentially a full embed (hence the size increase)
Copy link to clipboard
Copied
Don’t use Arial – use Helvetica.
Copy link to clipboard
Copied
I had used Helvetica earlier but the result was the same.
From the another post I found to use saveAs instead of Save but that is also not working.
Copy link to clipboard
Copied
Use Audit Space Usage in Save As Optimized PDF to analyse what the file is full of.
Copy link to clipboard
Copied
"Use Audit Space Usage in Save As Optimized PDF to analyse what the file is full of."
Can you please give more information on it or some code snippet?
Copy link to clipboard
Copied
This is not an API Just look under Save As and explore.
Copy link to clipboard
Copied
I found the way, actually need to pass another param "cConvID".
Just of the complete conclusion,
Try not to use external (embedded) fonts.
And Instead of saving do "saveAs" with passing param "cConvID".
Copy link to clipboard
Copied
Yes, that will help!
Copy link to clipboard
Copied
Thank you everyone for you help. I am just marking my concluded answer as Correct Answer to keep the complete information.