Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reduce Smartform PDF file size

0 Kudos

Hi All,

I am facing an issue to reduce the size of smart form PDF file, before posting i have checked in SDN for proposed solutions and

found.

1) To check SAPnote 843480...(we are in EHP6 so note is obsolute).

2) Few suggested to use ABAP CLASS but once i have done ,getting a PDF file error when i try to open  http://wiki.sdn.sap.com/wiki/display/ABAP/CL_ABAP_ZIPusage-ZippingABAPreportoutput?focusedCommentId=187336343

3) Few suggested to change fonts and logo size (Font used is ARIAL custom uploaded to sap and logos size is very less).


if u have any solution / suggestions will be helpful.

Thanks,

Pavan.

1 ACCEPTED SOLUTION

peng_wen
Active Participant
0 Kudos

Hello,

If TrueType font ARIAL was used,  the complete font definition must be embedded
into each spool request which use this font, into the print data stream which is sent

into the PDF file, therefore this can result in big size.

The font HELVE is very simular to the Arial font, so you can try to change the font

definition to HELVE and see if it helps.

Regards,

Wen Peng

10 REPLIES 10

Former Member
0 Kudos

Hello

Whats the device type for the PDF converter? Also check the fonts (other than ARIAL) used,  because missing one font size in the system could increase the file size dramatically.

Regards

Rakesh

former_member76372
Participant
0 Kudos

Hi Pavan,

Go to SE38, run program RSTXPDF2.

1. Go to the bottom part of the parameter:

Parameter for global softfonts.

2. Check the -> Do not insert font in PDF and Do not Replace Other Fonts

3. Execute.

I've encountered this huge file size before and has reduced dramatically after configuring this.

This will prevent your smartforms from embedding your TTF in your PDF file.

Get back to us if this works on you.

0 Kudos

Hi Edwin,

Thanks for your post,but it didn't help me still PDF file is 2MB.

Pavan.

0 Kudos

Hi,

how many pages did you have ?

when you open your pdf in a notepad tools did you see strange char ?  or normal text ?

regards

Fred

0 Kudos

Hi,

when i save PDF file as .txt and when i open can see normal text.

Pavan

peng_wen
Active Participant
0 Kudos

Hello,

If TrueType font ARIAL was used,  the complete font definition must be embedded
into each spool request which use this font, into the print data stream which is sent

into the PDF file, therefore this can result in big size.

The font HELVE is very simular to the Arial font, so you can try to change the font

definition to HELVE and see if it helps.

Regards,

Wen Peng

0 Kudos

Hi Peng,

Changed font from ARIAL to HELVE,still file size is 2 MB

Pavan

0 Kudos

Hi

It must be done by the resolution of your bitmat graphics. Sometimes, I did it loading the bitmap with a low DPI (but a big picture in size in CM or MM) and increasing the DPI in the form (SAPscript or Smartform). For instance, populating with 100 dpi and displaying it in the form with 300 dpi (smaller is size (cm or mm) in the PDF, smaller is size (Kb) in the PDF file and with better resolution). Don't populate a logo or graph with a high level or resolution.

Please, see note 1213470 - Report with chart or bitmap scheduled to PDF format is distorted when viewed, for further information.

I hope this helps you

Regards

Eduardo

peng_wen
Active Participant
0 Kudos

Hello,

Can you try the option COMPR_PAGECONT by RSTXPDF3? Which is described in note 878784.

Regards,

Wen peng

0 Kudos

Hi Wen,

Yes i have tried COMPR_PAGECONT option too.Finally PDF file size reduced in KB(not much) by choosing different font as suggested by you and instead of color image uploaded black and white image with low DPI as suggested by Eduardo Hinojosa.

Thanks all for your suggestions.

Regards,

Pavan.