cancel
Showing results for 
Search instead for 
Did you mean: 

How to reduce the pdf file size?

Former Member
0 Kudos

Hi,

This is how my scenario goes...

I have an interactive form, wherein I have a submit button that attaches the PDF form in a mail. The size of the form seems to increase drastically when it gets attached to the mail. Ratio is something like this 200KB - 1MB.

Please give me a suggestion on this

Regards,

Sathish M

Accepted Solutions (0)

Answers (2)

Answers (2)

dao_ha
Active Contributor
0 Kudos

Hi Sathish,

Please check to see if SAP Note 905753 applies to your case.

Hope it helps.

Regards,

Dao

Former Member
0 Kudos

Hi Sathish ,

I want to check the size of the pdf created by me before sending an email.Did you get any solution foe your below query?

Former Member
0 Kudos

You can get the size of the pdf file by binding a context attribute of type binary to the attribute pdfSource of the interactiveForm ui element. Then check the size of that attribute with

byte[] pdfBytes = wdContext.currentContextElement().getPdfSource();

if (pdfBytes.length < 100000) {

//do something

}

See if that helps!

regards,

Richard Linnander