02-18-2014 11:21 AM
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.
02-19-2014 7:35 AM
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
02-18-2014 11:22 PM
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
02-19-2014 6:25 AM
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.
02-19-2014 7:22 AM
Hi Edwin,
Thanks for your post,but it didn't help me still PDF file is 2MB.
Pavan.
02-19-2014 7:30 AM
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
02-19-2014 8:40 AM
Hi,
when i save PDF file as .txt and when i open can see normal text.
Pavan
02-19-2014 7:35 AM
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
02-19-2014 9:00 AM
Hi Peng,
Changed font from ARIAL to HELVE,still file size is 2 MB
Pavan
02-19-2014 9:13 AM
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
02-20-2014 3:22 AM
Hello,
Can you try the option COMPR_PAGECONT by RSTXPDF3? Which is described in note 878784.
Regards,
Wen peng
02-20-2014 4:26 AM
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.