Converting ttf to otf

I am trying convert a ttf file to otf but I keep getting the following error
Running txlib...
txlib: --- C:\crystal\Crysb___.ttf
txlib: (ttr) cmap: invalid idRangeOffset in segment[23] (fixing)
txlib: (t1w) multiple glyphs with the same encoding
txlib: fatal error
I can run the edit table command and it fixes the issue but when I go back and rerun the make command it fails with the same error.

Fomr the error message, I think the problem is in the source ttf font cmap table. It is permissible to assign one glyph to more than one Unicode value, but it is not permissible to assign more than one glyph to a single Unicode value. In the source data, yuou need to find which Unicode value has more than one glyph assigned to it, and then fix that

Similar Messages

  • Making/converting ttf 2 otf Open type? can help me anyone in this matter?

    I am new user concerning open type fonts. I don't know about much features. But after some learning I have produced a Unicode Basic Latin & Arabic supported ttf unicode font
    with FontCreator 6.0. I have added Open Type Arabic features by MS Volt. My font is working correctly with Arabic & Basic Latin features as a TTF Unicode Font. But I want that
    my font work as Open Type & its has icon as that of an Open Type TTF font.
    Please guide me that can I convert my this ttf font into Open Type font OR I have to remake the font from scratch. If I have to make it from scratch please guide that What are
    basic features tables of Open Type and how can I add them? I have downloaded Adobe FDK but I cannot uderstand how to use it. What is difference between Open Type TTF & Open Type
    CFF fonts?
    I will be very thankful to you if you provide me basic step by step instructions in this regard.
    ik_sajid70

    I am new user concerning open type fonts. I don't know about much features. But after some learning I have produced a Unicode Basic Latin & Arabic supported ttf unicode font
    with FontCreator 6.0. I have added Open Type Arabic features by MS Volt. My font is working correctly with Arabic & Basic Latin features as a TTF Unicode Font. But I want that
    my font work as Open Type & its has icon as that of an Open Type TTF font.
    Please guide me that can I convert my this ttf font into Open Type font OR I have to remake the font from scratch. If I have to make it from scratch please guide that What are
    basic features tables of Open Type and how can I add them? I have downloaded Adobe FDK but I cannot uderstand how to use it. What is difference between Open Type TTF & Open Type
    CFF fonts?
    I will be very thankful to you if you provide me basic step by step instructions in this regard.
    ik_sajid70

  • Convert TTF in FFT DF4 for download swf library for use in the TextFlow

    Hello, please help write a converter from font file TTF in FFT DefineFont v4.
    I need it to real-time import ttf font in AIR app to use this font in the TextFlow.
    For this purpose i use ready-made library "actionscript3 - flash - load-and-register-ttf-font-in-runtime", which is located here.
    This library converts TTF file in the FFT DefineFont v2 but it is not valid for TextFlow, and I need write converter from TTF in FFT DefineFont v4 for TextFlow.
    Converter from TTF to FFT DF2 is located here.
    Maybe someone has a ready example or description of the structure DefineFont v4?
    Any information would be helpful, thank you!

    What are your constraints?  Can you install other code besides your AIR app?  Each Flex SDK comes with a fontswf utility that runs Java code to convert TTF and OTF files to SWFs with DF tags.  I’m pretty sure it can do DF4.
    -Alex

  • How to upload a PDF file and convert it to OTF format

    We have come across rquirements like converting OTF to PDF but my requirement is to read a PDF file in SAP and convert it to OTF format for printing.
    Can anyone please help me with the Function Modules to do so.

    Hello,
    Try the following FM:
    CONVERT_OTF Convert SAP documents (SAPScript) to other types.
    Example:
    CALL FUNCTION "CONVERT_OTF"
    EXPORTING FORMAT = "PDF"
    IMPORTING BIN_FILESIZE = FILE_LEN
    TABLES OTF = OTFDATA
    LINES = PDFDATA
    EXCEPTIONS ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    OTHERS = 4.
    Hope this helps.
    Reward if helpful.
    Regards,
    Vasanth

  • Problem with converted PDF from OTF

    Hello,
    im having a problem with character interpretation in PDF document when i convert it from OTF.
    At the moment im using Arial true type font in my smartform, im using function module CONVERT_OTF to convert OTF to PDF.
    When i open PDF document with Adobe reader it looks fine, but the problem is when im trying to convert PDF file to other format for example PNG, or trying to copy and paste text from PDF document.
    im getting Klaipìda instead of Klaipėda, it seems that baltic symbol "ė" is interpreted like "ì", other baltic symbols are interpreted as they should, there is problem only with character "ė".
    have anyone faced that kindof problem? or maybe anyone know the solution for this problem? if so please tell me.
    Best regards,
    Rimantas Sebeckis.

    Hi Rimantus,
    Did you check the fonts installed in your system,,,
    As PDF is a unchangeable format, it doesnt depend upon the installed fonts in the system,,
    but when you copy, you need some fonts in system,, if not you will get the same problem,,,
    Thanks & regards,
    Dileep.C

  • TTF and OTF versions of SourceSansPro are differently displayed in Swing (Nimbus L&F)

    Can you confirm this?
    I am using Java SE 7 U 25 on Windows 7 Pro 64bit
    When I switch between the otf and the ttf version of the same font (Source Sand Pro by Adobe) then I see some differences (see the space above the "O")
    But why? Is this a bug? My Java app uses the Swing L&F Nimbus
    https://github.com/adobe/source-sans-pro/issues/32
    java - TTF and OTF versions of SourceSansPro are differently displayed in Swing (Nimbus L&F) - Stack Overflow

    I know. But I have tried it also with another font - same problem
    Take a look at https://github.com/adobe/source-sans-pro/issues/32#issuecomment-23402790
    There is indeed a bug with the display of ttf/otf fonts in Java / Swing

  • Converting Script from OTF to PDF format

    Hi Experts,
    Using FM CONVERT_OTF in SAP Script print program I am converting data of Script from OTF to PDF format but the data in PDF document srinks and looks like slightly overlapping one leter on the other, can any ony please tell me that how can I avaoid this.
    Thanks in Advance
    Best Regards
    Venkat

    Dear Venkatesh,
    I have the same scenario. I have to convert Script to PDF and then write it to FTP Server.
    Could you please provide me the code which you have used?
    Regards,
    Chaitanya A

  • How to send converted PDF from OTF via email

    Hi Experts,
    Greetings! How can I send the PDF file from FM 'CONVERT_OTF' via email?
    I was stuck on this code:
    *--- Convert OTF data to pdf
      CLEAR: i_otf, i_pdf.
      i_otf[] = gs_ssfcrescl-otfdata.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = v_bin_filesize
        TABLES
          otf                   = i_otf
          lines                 = i_pdf
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.
      CHECK sy-subrc = 0 AND NOT i_pdf[] IS INITIAL.
    Thanks in advance for the help.

    Hi
    DATA:
    I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
    I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
    I_RECEIVERS TYPE  TABLE OF SOMLRECI1 WITH HEADER LINE,
    I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJBIN LIKE SOLISTI1  OCCURS 0 WITH HEADER LINE,
    I_RECLIST LIKE SOMLRECI1  OCCURS 0 WITH HEADER LINE.
    DATA:
      W_OBJHEAD TYPE SOLI_TAB,
      W_CTRLOP TYPE SSFCTRLOP,
      W_COMPOP TYPE SSFCOMPOP,
      W_RETURN TYPE SSFCRESCL,
      W_DOC_CHNG TYPE SODOCCHGI1,
      W_DATA TYPE SODOCCHGI1,
      W_BUFFER TYPE STRING.
    DATA:
    V_FORM_NAME TYPE RS38L_FNAM,
    V_LEN_IN LIKE SOOD-OBJLEN,
    V_LEN_OUT LIKE SOOD-OBJLEN,
    V_LEN_OUTN TYPE I,
    V_LINES_TXT TYPE I,
    V_LINES_BIN TYPE I.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME           = ' '---------> smartform
      IMPORTING
        FM_NAME            = V_FORM_NAME
      EXCEPTIONS
        NO_FORM            = 1
        NO_FUNCTION_MODULE = 2.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
    W_COMPOP-TDNOPREV = 'X'.
    CALL FUNCTION '/1BCDWB/SF00000482'
      EXPORTING
        CONTROL_PARAMETERS = W_CTRLOP
        OUTPUT_OPTIONS     = W_COMPOP
        USER_SETTINGS      = 'X'
      IMPORTING
        JOB_OUTPUT_INFO    = W_RETURN
      EXCEPTIONS
        FORMATTING_ERROR   = 1
        INTERNAL_ERROR     = 2
        SEND_ERROR         = 3
        USER_CANCELED      = 4.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    I_OTF[] = W_RETURN-OTFDATA[].
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        FORMAT                = 'PDF'
        MAX_LINEWIDTH         = 132
      IMPORTING
        BIN_FILESIZE          = V_LEN_IN
      TABLES
        OTF                   = I_OTF
        LINES                 = I_TLINE
      EXCEPTIONS
        ERR_MAX_LINEWIDTH     = 1
        ERR_FORMAT            = 2
        ERR_CONV_NOT_POSSIBLE = 3
        ERR_BAD_OTF           = 4.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT I_TLINE.
      TRANSLATE I_TLINE USING '~'.
      CONCATENATE W_BUFFER I_TLINE INTO W_BUFFER.
    ENDLOOP.
    TRANSLATE W_BUFFER USING '~'.
    DO.
      I_RECORD = W_BUFFER.
      APPEND I_RECORD.
      SHIFT W_BUFFER LEFT BY 255 PLACES.
      IF W_BUFFER IS INITIAL.
        EXIT.
      ENDIF.
    ENDDO.
    REFRESH :
      I_RECLIST,
      I_OBJTXT,
      I_OBJBIN,
      I_OBJPACK.
    CLEAR W_OBJHEAD.
    I_OBJBIN[] = I_RECORD[].
    DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
    I_OBJTXT = 'Find attached the output of the smartform.'.
    APPEND I_OBJTXT.
    I_OBJTXT = 'Regards,'.
    APPEND I_OBJTXT.
    I_OBJTXT = 'Sravanthi'.
    APPEND I_OBJTXT.
    DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
    W_DOC_CHNG-OBJ_NAME = 'Smartform'.
    W_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10 .
    W_DOC_CHNG-OBJ_DESCR  = 'Smart form output'.
    W_DOC_CHNG-SENSITIVTY = 'F'.
    W_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
    CLEAR I_OBJPACK-TRANSF_BIN.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_TXT.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    APPEND I_OBJPACK.
    I_OBJPACK-TRANSF_BIN = 'X'.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 1.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_BIN.
    I_OBJPACK-DOC_TYPE  = 'PDF'.
    I_OBJPACK-OBJ_NAME = 'Smartform'.
    CONCATENATE 'smartform output' 'pdf'
    INTO I_OBJPACK-OBJ_DESCR.
    I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255.
    APPEND I_OBJPACK.
    CLEAR I_RECLIST.
    I_RECLIST-RECEIVER = ' '.---------->email id
    I_RECLIST-EXPRESS  = 'X'.
    I_RECLIST-REC_TYPE  = 'U'.
    APPEND I_RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA              = W_DOC_CHNG
        PUT_IN_OUTBOX              = 'X'
        commit_work                = 'X'
      TABLES
        PACKING_LIST               = I_OBJPACK
       CONTENTS_BIN                = I_OBJBIN
        OBJECT_HEADER              = W_OBJHEAD
        CONTENTS_TXT               = I_OBJTXT
        RECEIVERS                  = I_RECLIST
      EXCEPTIONS
        TOO_MANY_RECEIVERS         = 1
        DOCUMENT_NOT_SENT          = 2
        DOCUMENT_TYPE_NOT_EXIST    = 3
        OPERATION_NO_AUTHORIZATION = 4
        PARAMETER_ERROR            = 5
        X_ERROR                    = 6
        ENQUEUE_ERROR              = 7
        OTHERS                     = 8.
    IF sy-subrc NE 0.
          WRITE:/ 'Error When Sending the File', sy-subrc.
        ELSE.
          WRITE:/ 'Mail sent'.
        ENDIF.
    After excuting this program check the status of the email in the SOST  transaction
    Regards,
    sravanthi

  • Convert XML to OTF

    Hi All,
    Can anybody please give the Function Module or Class to convert XML formatted data into OTF fotmat.
    This is very urgent.Please .I will give you reward points.
    Thanks,
    Swapna.

    hi gurpreet,
    check this thread
    Convert OTF to PDF and attach to email
    hope it helps you.
    thanks
    Sachin

  • Convert spool to OTF format

    Hi All,
    My requirement:
    I have a report which generates PDF format for all the employees provided on the selection screen ,for this i used the FM :
    call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid = max_spool
          no_dialog  = space
          dst_device = mstr_print_parms-pdest
        importing
          pdf_bytecount                  = mi_bytecount
        tables
          pdf        = mtab_pdf
        exceptions
          err_no_abap_spooljob           = 1
          err_no_spooljob                = 2
          err_no_permission              = 3
          err_conv_not_possible          = 4
          err_bad_destdevice             = 5
          user_cancelled                 = 6
          err_spoolerror                 = 7
          err_temseerror                 = 8
          err_btcjob_open_failed         = 9
          err_btcjob_submit_failed       = 10
          err_btcjob_close_failed        = 11
          others     = 12.
    Now i want to create an RFC function module which has  to generate  PDF binary data using the PDF generation report .
    The process which i am following is :
    .       Creating  RFC function module with the import parameter u2018PERNRu2019
    ·         call this report YREPORT inside the RFC using the PERNR and receive the OTF data from report using buffer.
    ·         Then convert the OTF data into PDF lines using the function module u2018CONVERT_OTFu2019
    ·         And then convert the PDF lines in to PDF binary data.
    Please suggest how to get OTF data format from report using buffer .Please provide any FM for this & also provide PDF lines into PDF binary data
    Regards,
    Bharat

    what below code does is:
    1: it creates a job hence spool is generated.
    2: it call  a ADOBE form hence PDF object is generated . (which you may not need)
    3: it converts PDF to SOLIX or binary PDF for sending as an mail attachment.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = wa_outputparams
        EXCEPTIONS
          cancel          = 0
          usage_error     = 0
          system_error    = 0
          internal_error  = 0
          OTHERS          = 0.
    * Processing should continue inspite of errors
    * so made Sy-Subrc as 0
    * Set form language and country (->form locale)
      wa_docparams-langu   = lc_language.
      wa_docparams-country = lc_country.
    * Pass Data to the Form Interface
      CALL FUNCTION lv_form_name
        EXPORTING
          /1bcdwb/docparams  = wa_docparams
          t_stud_data        = wa_mailtab1
        IMPORTING
          /1bcdwb/formoutput = wa_pdfobject
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
    * Convert PDF Object to type SOLIX
      CALL METHOD cl_document_bcs=>xstring_to_solix
        EXPORTING
          ip_xstring = wa_pdfobject-pdf
        RECEIVING
          rt_solix   = it_attachment.
    ags.

  • Accessing a non TTF/OTF font embedded in Flash CS5 SWF via Flex

    Hello,
    I'm trying to embed an older Mac font in a Flash Builder application. I need it to be loaded dymanically for size reasons. I am able to do this with TTF and OTF fonts, but I'm having trouble with other formats.
    I embedded the font in a CS5 FLA, but I can't seem to locate the font when I load the SWF into Flash Builder.
    My function is below. I have it enumerating through the variables in the loaded SWF, but the font I need is not coming up as one of them. I tried, in the FLA, to cast the embedded font to a Class in AS because, but when try to access that variable ("font") after it's loaded, I get null. I also tried setting the embedded font to a Font variable in AS, but I still get null on the other side. Does anyone have any suggestions? Alternate solutions are welcome also.. Thanks!!
            private function loadFonts():void{
                var lc:LoaderContext = new LoaderContext();
                lc.securityDomain = SecurityDomain.currentDomain;
                lc.applicationDomain = ApplicationDomain.currentDomain;
                var ldr:Loader = new Loader();
                ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
                ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                ldr.load(new URLRequest('compatil_bold.swf'),lc);
                function completeHandler(e:Event):void{
                    fontLibrary = e.target.applicationDomain.getDefinition('Compatil') as Class;
                    var varList:XMLList = flash.utils.describeType(fontLibrary)..variable;
                    for (var i:int = 0; i < varList.length(); i++){
                        trace(varList[i].@name+': '+fontLibrary[varList[i].@name]);   
                    Font.registerFont(fontLibrary.font);
                    //Font.registerFont(fontLibrary.CompatilFactBold);
                    trace('font loaded');
                    fontsLoaded = true;
                function ioErrorHandler(e:ErrorEvent):void{
                    trace(e.text);
    in FLA
    var font:Class = new CompatilFactBold() as Class;

    I got it!
    Here is the embedded font in a CS5 FLA:
    That's all you have to do in Flash.
    Here's the function I have in my Flash Builder AS application:
    private function loadFonts():void{
    var lc:LoaderContext = new LoaderContext();
    lc.securityDomain = SecurityDomain.currentDomain;
    lc.applicationDomain = ApplicationDomain.currentDomain;
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    ldr.load(new URLRequest('http://some.other.domain/compatil_bold.swf'),lc);
    function completeHandler(e:Event):void{
    fontLibrary = e.target.applicationDomain.getDefinition('CompatilFactBold') as Class;
    Font.registerFont(fontLibrary);
    trace('font loaded');
    fontsLoaded = true;
    function ioErrorHandler(e:ErrorEvent):void{
    trace(e.text);
    Then you reference the font by its name when you want to use it. In this case: 'CompatilFact LT Bold.'
    update: question is answered.

  • What are methods for converting otf to pdf format in sap script

    Hi,
    I have a requirement in script i have to convert that that otf file to pdf format,when i use function modules its corrupting that pdf file,So i want convert otf to pdf using class method any one can help me for that.If any sample coding for class method.
    Thanks.

    ok
    CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
           format                = 'PDF'
    *      max_linewidth         = 255
         IMPORTING
           bin_filesize          = lv_bin_filesize
    *      bin_file              = pdf_xstring
         TABLES
           otf                   = lt_otf
           lines                 = lt_pdf_table
         EXCEPTIONS
           err_max_linewidth     = 1
           err_format            = 2
           err_conv_not_possible = 3
           err_bad_otf           = 4
           OTHERS                = 5.
    CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
          bin_filesize                    = lv_bin_filesize
          filename                        = c_name
          filetype                        = 'BIN'
    *     APPEND                          = ' '
    *     WRITE_FIELD_SEPARATOR           = ' '
    *     HEADER                          = '00'
    *     TRUNC_TRAILING_BLANKS           = ' '
    *     WRITE_LF                        = 'X'
    *     COL_SELECT                      = ' '
    *     COL_SELECT_MASK                 = ' '
    *     DAT_MODE                        = ' '
    *     CONFIRM_OVERWRITE               = ' '
    *     NO_AUTH_CHECK                   = ' '
    *     CODEPAGE                        = ' '
    *     IGNORE_CERR                     = ABAP_TRUE
    *     REPLACEMENT                     = '#'
    *     WRITE_BOM                       = ' '
    *     TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *     WK1_N_FORMAT                    = ' '
    *     WK1_N_SIZE                      = ' '
    *     WK1_T_FORMAT                    = ' '
    *     WK1_T_SIZE                      = ' '
    *     WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    *     SHOW_TRANSFER_STATUS            = ABAP_TRUE
    *     VIRUS_SCAN_PROFILE              = '/SCET/GUI_DOWNLOAD'
    *   IMPORTING
    *     FILELENGTH                      =
         TABLES
           data_tab                        = lt_pdf_table
    *     FIELDNAMES                      =
        EXCEPTIONS
          file_write_error                = 1
          no_batch                        = 2
          gui_refuse_filetransfer         = 3
          invalid_type                    = 4
          no_authority                    = 5
          unknown_error                   = 6
          header_not_allowed              = 7
          separator_not_allowed           = 8
          filesize_not_allowed            = 9
          header_too_long                 = 10
          dp_error_create                 = 11
          dp_error_send                   = 12
          dp_error_write                  = 13
          unknown_dp_error                = 14
          access_denied                   = 15
          dp_out_of_memory                = 16
          disk_full                       = 17
          dp_timeout                      = 18
          file_not_found                  = 19
          dataprovider_exception          = 20
          control_flush_error             = 21
          OTHERS                          = 22.
       IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    TRY.
           GET PARAMETER ID 'RECEIPTENT' FIELD lvs_recipient1.
           send_request = cl_bcs=>create_persistent( ).
    *      lt_attach_bin = cl_document_bcs=>xstring_to_solix( ip_xstring = lt_solix ).
           APPEND 'Test message' TO lt_text.
           l_sub_50 = lc_test1.
           document = cl_document_bcs=>create_document( i_type    = 'RAW'
                                                        i_text    = lt_text
                                                        i_subject = l_sub_50 ).
           document->add_attachment( i_attachment_type    = 'PDF'
                                     i_attachment_subject = 'script.pdf'
                                     i_att_content_hex    =  lt_attach_bin ).
           l_sub_line = lc_test1.
           TRY.
    * Build subject line for email.
               CALL METHOD send_request->set_message_subject
                 EXPORTING
                   ip_subject = l_sub_line.
             CATCH cx_send_req_bcs INTO loref_obj_error.
               PERFORM sub_catch_error1 USING loref_obj_error.
           ENDTRY.
           send_request->set_document( document ).
    *      sender    = cl_cam_address_bcs=>create_internet_address( '[email protected]' ).
           recipient1 = lvs_recipient1-objkey.
           recipient = cl_cam_address_bcs=>create_internet_address( '[email protected]' ).
    *      send_request->set_sender( sender ).
           send_request->add_recipient( i_recipient = recipient
                                        i_express   = 'X' ).
           sent_to_all = send_request->send( i_with_error_screen = 'X' ).
           COMMIT WORK.
         CATCH cx_bcs INTO bcs_exception.
           MESSAGE 'eee' TYPE 'S'.
           EXIT.
       ENDTRY.

  • Reg : Converting a report list to OTF format.

    Hi Folks,
        Is there any function module which converts spool of (report)  list type to OTF type? As we need to merge multiple spools (list types) into single PDF file. We have
    1) RSPO_RETURN_SPOOLJOB,
    2) CONVERT_OTF_2_PDF
    which can merge multiple spools  into single PDF file, but these function modules accepts only spools of OTF format.
    Any help will be rewarded.....

    Hi ,
    See this code , this gets smartform output pages into the jobinfo document "ls_job_info' , then converts it into OTF format and then PDF. See if this can  give u some idea.
    CALL FUNCTION lf_fm_name
          EXPORTING
            archive_index      = toa_dara
            archive_parameters = arc_params
            control_parameters = ls_control_param
            mail_recipient     = ls_recipient
            mail_sender        = ls_sender
            output_options     = ls_composer_param
            user_settings      = space
            is_bil_invoice     = ls_bil_invoice
            is_nast            = nast
            is_repeat          = repeat
          IMPORTING
            job_output_info    = ls_job_info
          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
        IMPORTING
          bin_filesize          = v_len_in
        TABLES
          otf                   = i_otf
          lines                 = i_tline
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
      IF sy-subrc <> 0.
      ENDIF.
      LOOP AT i_tline.
        TRANSLATE i_tline USING '~'.
        CONCATENATE wa_buffer i_tline INTO wa_buffer.
      ENDLOOP.
      TRANSLATE wa_buffer USING '~'.
      DO.
        i_record = wa_buffer.
        APPEND i_record.
        SHIFT wa_buffer LEFT BY 255 PLACES.
        IF wa_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Attachment
      REFRESH: i_reclist,
      i_objtxt,
      i_objbin,
      i_objpack.
      CLEAR wa_objhead.
      i_objbin[] = i_record[].
    Create Message Body Title and Description
      i_objtxt = 'Invoice output Attached!'.
      APPEND i_objtxt.
      DESCRIBE TABLE i_objtxt LINES v_lines_txt.
      READ TABLE i_objtxt INDEX v_lines_txt.
      wa_doc_chng-obj_name = 'Invoice'.
      wa_doc_chng-expiry_dat = sy-datum + 10.
      wa_doc_chng-obj_descr = 'Invoice'.
      wa_doc_chng-sensitivty = 'F'.
      wa_doc_chng-doc_size = v_lines_txt * 255.
    Main Text
      CLEAR i_objpack-transf_bin.
      i_objpack-head_start = 1.
      i_objpack-head_num = 0.
      i_objpack-body_start = 1.
      i_objpack-body_num = v_lines_txt.
      i_objpack-doc_type = 'RAW'.
      APPEND i_objpack.
    Attachment (pdf-Attachment)
      i_objpack-transf_bin = 'X'.
      i_objpack-head_start = 1.
      i_objpack-head_num = 0.
      i_objpack-body_start = 1.
      DESCRIBE TABLE i_objbin LINES v_lines_bin.
      READ TABLE i_objbin INDEX v_lines_bin.
      i_objpack-doc_size = v_lines_bin * 255 .
      i_objpack-body_num = v_lines_bin.
      i_objpack-doc_type = 'PDF'.
      i_objpack-obj_name = 'smart'.
      i_objpack-obj_descr = 'Invoice'.
      APPEND i_objpack.
    Regards,
    Uma

  • Adobe Illustrator Save to TTF

    I've been wondering this for a while and I know there are several threads of others discussing the desire to make fonts straight inside of Illustrator.
    While there are ways to make a font inside of Illustrator there is no way to export directly from Illustrator to TTF or OTF or any other font file format to then directly load into the fonts folder and start using. With Illustrator having the capability to make custom brushes and save will we ever see an export to TTF?
    Will labs ever be creating an addition to Illustrator to save out a font file?

    Hi Stephen,
    The problem is that the input for the page range is text (even if it is just one number). You're trying to put in a Number (the i you get from the loop). You'll need to convert the number to a string, probably by using the "as text" command.
    What I use is (simplified): first check for multiple art boards (and set the range as text), if there is only one set the multiple artboards option to false, else set the page range. You don't have to build a loop to export each artboard seperately.
    tell document 1
    if (count of artboards) > 1 then
    set pagina_bereik to "1-" & ((count of artboards) as text)
    else
    set pagina_bereik to "1"
    end if
    end tell
    if pagina_bereik = "1" then
    save document 1 in file DestFIle as eps with options {class:EPS save options, preview:color TIFF, embed all fonts:true, embed linked files:true, include document thumbnails:true, PostScript:level 2, save multiple artboards:false}
    else
    save document 1 in file DestFIle as eps with options {class:EPS save options, preview:color TIFF, embed all fonts:true, embed linked files:true, include document thumbnails:true, PostScript:level 2, save multiple artboards:true, artboard range:pagina_bereik}
    end if
    Hope this helps,
    Ton

  • Is Helvetica Greek Upright OTF available?

    I posted an InDesign conversion-related question a while back. Now my client has decided to switch from Quark and PageMaker to InDesign 2.0.
    Now my quesitons is, for Greek, we now use Helvetica Greek family (like upright, bold, inclined, etc. on the Mac). Is the equivalent OTF font set already available? Or, if not, can I convert my current TTF to OTF using the FDK? I installed the FDK on my Mac (OS9.2.2), but was unable to get it to work. I also checked this forum but could not find anything helpful.
    Would like to see some enlightening suggestions from those who have already experienced this.
    Thanks a million!!!
    Yanling Yao

    Adobe did not license Helvetica Greek in Type 1 format, so we did not convert it to OpenType as part of our type library conversion effort.
    Adobe does have OpenType fonts that support Greek, including the Myriad Pro family.
    It is possible to use the FDK, likely in conjunction with a font editor, to convert your existing TTF to OpenType. However, there would likely be considerable work involved. You could do this particular task much more easily with retail tools, such as FontLab.
    T

Maybe you are looking for

  • The background thread running lazy writer encountered an I/O error

    Hi I have a test server which has thrown the following error File system error: A system error occurred while attempting to read or write to a file store. The system might be under memory pressure or low on disk space. Physical file: \\?\F:\MSAS11.DE

  • Keeping library problem?

    I have a problem with windows xp and to fix it I have to reset it to factory defaults. I have a external hard drive to save my music while I clean my hard drive. Does anyone know how to keep not only the playlists but also other data such as the play

  • Images in Collection

    Most of my images are processed in Lightroom 5 to B&W.   When I attempt to add these to a collection only the original image appears in the collection not the B&W version.  If I further process in Photoshop or NIk and the image is saved as a Tiff lin

  • IPad get stucks on Step 2 (Back up) of sync

    Hey guys, I have an iPad 2 and every time I've tried to sync this morning, it's gotten stuck on the Back Up portion of my sync. I've tried deleting previous back ups under Preferences<Devices. I've also tried restarting the computer/iPad... Things ju

  • Error 1051429. Analytical services Product Existent check Fails

    Hi, We want to externalize users from native to shared services. Note: The Enviornment is UNIX. Following activities were carried out from our end. 1. Configured database. (Oracle) 2. Registered with shared services. 3. Deployed to Application server