Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Different Font in different system

Hi all,

I need to covert a smart form to PDF, then sending it out in email.

Everything looks ok in DRA system, But the font in part of the PDF document become smaller in QRA system.

Who can tell me the reason? Thanks advance.

The following is my code to convert otf and add attachment.

 ls_control_param-no_dialog   = gc_no_dialog.
            ls_control_param-device        = 'TELEFAX'.
            ls_control_param-getotf         = gc_flg_x.
            ls_output_option-tddest         = 'LOCAL'.

CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = gc_doc_type_pdf
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = lv_bin_filesize
          bin_file              = lv_bin_file
        TABLES
          otf                   = lt_otf_data
          lines                 = lt_pdf_data
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

* Add PDF attachment
      lv_file_size  = XSTRLEN( lv_bin_file ).
      lt_attachment = cl_document_bcs=>xstring_to_solix(
                                     ip_xstring = lv_bin_file ).
      lv_attachment_subject = ls_invoice-xblnr.
      TRY.
          cr_document->add_attachment(
          EXPORTING
          i_attachment_type    = gc_doc_type_pdf
          i_attachment_subject = lv_attachment_subject
          i_attachment_size    = lv_file_size
          i_att_content_hex    = lt_attachment ).

Thanks very much.

Ivy

Former Member
Not what you were looking for? View more on this topic or Ask a question