Skip to main content
Inspiring
March 13, 2018
Answered

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. Word document with 15-20KB becomes 1MB PDF file after conversation. How can I optimize the PDF file's size?

  • March 13, 2018
  • 4 replies
  • 1276 views

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?

This topic has been closed for replies.
Correct answer zohar_peretz

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".

4 replies

Inspiring
March 14, 2018

Thank you everyone for you help. I am just marking my concluded answer as Correct Answer to keep the complete information.

Legend
March 14, 2018

This is not an API  Just look under Save As and explore.

zohar_peretzAuthorCorrect answer
Inspiring
March 14, 2018

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".

Legend
March 13, 2018

Use Audit Space Usage in Save As Optimized PDF to analyse what the file is full of.

Inspiring
March 14, 2018

"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?

lrosenth
Adobe Employee
Adobe Employee
March 13, 2018

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?

Inspiring
March 14, 2018

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.

lrosenth
Adobe Employee
Adobe Employee
March 14, 2018

AH!!!

But your watermark will cause a font embedding – and potentially a full embed (hence the size increase)