Skip to Content
author's profile photo Former Member
Former Member

Smartform to pdf - file too big

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 19, 2011 at 10:56 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.