cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform to pdf - file too big

Former Member
0 Kudos

Hello Friends,

I'm converting smartform to pdf and then I'm sending it to FTP file server.

Everything is working but the file is too big for me.

For every page I have 400 kB. Form has one colour logo and black text.

Is there any way to make it smaller?

Maybe get it in greyscale.

BR

pawel

functions to get pdf:

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

CALL FUNCTION if_fmod_name

EXPORTING

  • archive_index = toa_dara

  • archive_parameters = arc_params

control_parameters = wa_ctrlop

  • mail_appl_obj =

  • mail_recipient = ls_recipient

  • mail_sender = ls_sender

  • output_options = ls_composer_param

user_settings = space

is_bil_invoice = if_bil_invoice

is_nast = nast

is_repeat = repeat

IMPORTING job_output_info = t_otfdata

  • document_output_info =

  • job_output_options =

EXCEPTIONS formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

format = 'PDF'

max_linewidth = 132

  • ARCHIVE_INDEX = ' '

IMPORTING

bin_filesize = w_bin_filesize

TABLES

otf = if_otf

lines = t_pdf_tab

EXCEPTIONS

err_max_linewidth = 1

err_format = 2

err_conv_not_possible = 3

OTHERS = 4.

Accepted Solutions (1)

Accepted Solutions (1)

aidan_black
Active Contributor
0 Kudos

Hi,

For the logo, is it repeated on every page? If so, you should ensure that the graphic in the SPA system has the property "Resides in the Printer Memory" set in transaction SE78. Otherwise, the graphic is sent again for each page.

Depending on your support pack, you may also have to apply SAP note 1329860.

Regards,

Aidan

Former Member
0 Kudos

Hello,

Logo is on 1, 3, 5... page, because original layout is in duplex.

Option "Resides in the Printer Memory" is set for the logo.

Is it possible to have this smartform covered to greyscale?

Thanks

Paweł

aidan_black
Active Contributor
0 Kudos

Hi Pawel,

You would need to convert your graphic via an external graphic tool and upload it to SAP again via transaction se78.

Anothpossible reason for the large PDF file is that you use true type fonts like e.g .Arial in your smartform. In this case, the complete font fiiles are embedded into the PDF file.

Regards,

Aidan

Former Member
0 Kudos

Yes, I have Arial font and I can't change it.

I don't want to change logo also because when we print the smartform it has to be colour.

Is there any possibility to change/decease PDF quality by changing options in "control_parameters" in function module to get smartform layout?

Will give 10 pints for helpful answer

Thanks

Paweł

DavidLY
Advisor
Advisor
0 Kudos

Hello,

Check SAP note 843480.

Regards,

David

aidan_black
Active Contributor
0 Kudos

Hi Pawel,

If you use SAP font HELVE, then the internal Adobe font Arial is used in the PDF file.

There is one other possibility. You need to delete the Arial true type font in the SAP system via RSTXPDF2 and upload it again with the option ' Do not insert font in PDF'. See the KBA 1605966 about this.

Regards,

Aidan

Answers (0)