tags:

views:

343

answers:

3

I use ABAP program to send e-mail invoices to our customers. Invoice is pdf attachment created by function SX_OBJECT_CONVERT_OTF_PDF. Problem is that when language is PL (Polish) attachment is 10 times bigger comparing to EN language. Why?

+1  A: 

This may be that polish uses a specific font (special characters) which is not installed by default on an OS. So the pdf converter includes the complete font into the document in order to render it correctly at the destination.

This is just speculation though.

Gunstick
+2  A: 

Gunstick answer is probably right. Sap note: 843480 discuss this issue.

As of release 620 onward, there is support patches that enable pdf elements( such as fonts) to be compressed. The resulting pdf will be larger then the only English one, but it will probably be less than 10 times larger.

Igal Serban
A: 

You may try this one: http://lucattelli.com/blog/?page%5Fid=478

This FM can take the binary PDF and convert it to BASE 64 and send it as a mail attachment.

See if it helps

Bruno Lucattelli