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?

Mar 13, 2018

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

TOPICS
Acrobat SDK and JavaScript

Views

204

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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?

Mar 13, 2018

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

TOPICS
Acrobat SDK and JavaScript

Views

205

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 13, 2018 0
Adobe Employee ,
Mar 13, 2018

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 13, 2018 0
Mar 13, 2018

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 13, 2018 0
Adobe Employee ,
Mar 14, 2018

Copy link to clipboard

Copied

AH!!!

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2018 0
Adobe Employee ,
Mar 14, 2018

Copy link to clipboard

Copied

Don’t use Arial – use Helvetica.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2018 0
Mar 14, 2018

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2018 0
Mar 13, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 13, 2018 0
Mar 13, 2018

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 13, 2018 0
Mar 14, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2018 0
Mar 14, 2018

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2018 0
Adobe Employee ,
Mar 14, 2018

Copy link to clipboard

Copied

Yes, that will help!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2018 0
Mar 14, 2018

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2018 0