The PDF file has illegal entries in bfchar block in ToUnicode CMap (03042008)

While creating the pdf document in Adode indesign CS3 i get the pdf file has as a illegal entries in bfchar block in ToUnicode CMap
Tell me Why this pdf has a illegal entries
How to resolve this problem

I assume you mean a CID font, not a CMAP font – since there isn't such a type of font.
To your issue, you need to decode the string first as a series of single byte characters and then as double byte.  This is true for all strings in PDF.
From: DukE2k3 <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Mon, 13 Feb 2012 00:14:56 -0800
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: Decoding (...)Tj - what todo with "backslash" in hex encoded ToUnicode indices
Decoding (...)Tj - what todo with "backslash" in hex encoded ToUnicode indices
created by DukE2k3<http://forums.adobe.com/people/DukE2k3> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/4202969#4202969

Similar Messages

  • Access_PIDEV log file has not entries during DEV hang

    Hi.
    Could you help me, please ?
    During a DEV instance hang, the application did not register entries in Access_PIDEV log file. The serviceout file has some entries, but it does not indicate any problem, although the CMA application was not running (it runs over DEV instance). This forced me to restart the DEV instance in order to recover the DEV and CMA service.
    Do you know anything else that I could see ?.
    Thanks in advance,
    DEF

    Rob~R wrote:
    A colleague's PC has a log file on the desktop, created 28th October. Its title: 'hs_err_pid3268.log'
    Initially we were both concerned since Kaspersky had detected some viruses on his machine on it's nightly scan, however, looking at the log file I'm not sure whether to be worried or not! - It looks legitimate, if a bit odd...
    If somebody more knowledgeable could tell me firstly if it's anything sinister and secondly (if not) what may have cause it and whether it's an issue I should investigate on this machine.
    Thanks in advance, below is the contents of the text file. (As you can see I'm brand new to these forums, apologies if this is not the correct section for these kind of questions). It is a crash file from the Sun/Oracle VM.
    It either got on the desktop because a user manually moved it there or because something is probably misconfigured (at least to me) in the environment.
    If you are creating java applications (programming in the java language) then you would need to figure out why the app crashed.
    If you are using java applications then you need to tell the vendor that it crashed. And you would not do that here.

  • I have a problem using the "save as pdf..." command of the print panel of MS Word (lower L corner).  When file has a few photos in it, the pdf file becomes huge; 7 mb Word file becomes 31 mb., on MacBook Pro with Intel Core 2 Duo processor , OS X 10.5.8

    How can converting a MS Word file to a pdf make the file 5x bigger?  Can someone tell me how to update the "save as pdf..." feature when "printing" a file in MS Word (Word:mac 2008, ver. 12.2.5).  The problem is that using this to create pdf files gives huge files when the Word file has graphics pasted as pictures from Powerpoint, even for simple graphics and when first exported at low resolution (180 dpi) as jpg files from Powerpoint and inserted into Word.  

    Here's a little more info on the save_as_pdf issue.  It is Word files in 97–2004 format (doc) that get 5x bigger.  The conversion works fine and file size is normal if the Word file is saved in most recent Word format (docx rather than doc).  Somehow MS Word can't save its own files properly in pdf format.  Thanks Bill for all the frustration.

  • The pdf file that i am converting has multiple pages but the conversion only exports the 1st page into excel.  How do i get the product to include all pages on multiple sheets?

    Hi,
    The pdf file that I am converting has multiple pages but the conversion only exports the 1st page into excel.  How do i get the product to include all pages on multiple sheets?

    Hi christinek,
    Can you please tell me how the PDF that you're converting was created? Sometimes, PDF files created by third-party PDF generators (that is non-Adobe applications), don't contain all the tags and file information necessary to ensure a proper conversion to Excel. There are no settings that you can change in ExportPDF to adjust how the file is imported.
    You can tell how the PDF was created by choosing File > Properties in Reader and looking for the PDF Producer on the Description tab. If the PDF was created by a third-party, it just may not be written to spec. Please see Support Policy for PDF Files created by non Adobe applications.
    Best,
    Sara

  • Error opening the PDF file while sending the PDF as an attachment

    Hi All,
      I am sending a PDF as an attachment in the mail. I am using the code pasted on 'Jul 28, 2006 8:59 AM' subject OTF Format of Purchase Order in email unreadable.
      My problem is when I open the attachment in SOST or in the mail, I get the error message "Adobe could not open *.PDF because it is either not a supported file type or because the file type has been corrupted."
      Please let me know if anybody has faced such an issue.
    The code is found below.
    FORM MAIL_OBJECT                                              *
          This routine receives OTF data. OTF data is converted to PDF
          format and send to the Partner's email address
    FORM mail_object TABLES otf_data STRUCTURE itcoo .
      DATA: pdf_size TYPE i,                             " PDF Size
            pdf_itab_size TYPE i,                        " Attachment size
            mailtxt_size TYPE i,                         " Text in mail size
            l_vbeln LIKE vbdka-vbeln.                    " Order Doc
      DATA:
      it_mailtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,    " Mail Text
      it_pdf TYPE TABLE OF tline WITH HEADER LINE,           " OTF output
      it_mailpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE, " Dist details
      it_mailhead LIKE solisti1   OCCURS  1 WITH HEADER LINE," Header data
      it_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,   " Rec List
      it_pdfdata LIKE solix OCCURS 0 WITH HEADER LINE.  " Attachment data
      DATA: it_doc_att LIKE sodocchgi1.                 " Attri of new doc
      DATA: BEGIN OF it_pdfout OCCURS 0,                " PDF in 255 length
               tline TYPE char255,
            END OF it_pdfout.
    Sales doc and Customer
      DATA: BEGIN OF i_vbeln OCCURS 0,
              vbeln LIKE vbpa-vbeln,       " Sales Document
              adrnr LIKE vbpa-adrnr,       " Customer
            END   OF i_vbeln.
    Sender Address no and SMTP address
      DATA: BEGIN OF i_addrs OCCURS 0,
              addrnumber LIKE adr6-smtp_addr,
              smtp_addr  LIKE adr6-smtp_addr,
            END   OF i_addrs.
    Convert OTF to PDF
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format       = 'PDF'
        IMPORTING
          bin_filesize = pdf_size
        TABLES
          otf          = otf_data
          lines        = it_pdf.
    Make each line 255 characters
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        TABLES
          content_in  = it_pdf
          content_out = it_pdfout.
    Create the PDF File
      CLEAR it_pdfdata.
      REFRESH it_pdfdata.
    it_pdfdata[] = it_pdfout[].
      LOOP AT it_pdfout.
        MOVE it_pdfout-tline TO it_pdfdata-line.
        APPEND it_pdfdata.
        CLEAR it_pdfdata.
      ENDLOOP.
      DESCRIBE TABLE it_pdfdata LINES pdf_itab_size.
    Text in the mail.
      it_mailtxt-line  = 'ORDER ACKNOWLEDGEMENT'.
      APPEND it_mailtxt.
      it_mailtxt-line  = ' This is a test mail,  Line Number--1'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--2' &
                        ' This is a test mail,  Line Number--2'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--3' &
                        ' This is a test mail,  Line Number--3' &
                        ' This is a test mail,  Line Number--3'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5'.
      APPEND it_mailtxt.
      DESCRIBE TABLE it_mailtxt LINES mailtxt_size.
    Document Number for Output
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          input  = vbdka-vbeln
        IMPORTING
          output = l_vbeln.
    Attributes of new doc
      CONCATENATE 'Order' space 'Acknowledgement' space l_vbeln
                  INTO it_doc_att-obj_descr SEPARATED BY space.
      it_doc_att-sensitivty = 'F'.
      it_doc_att-doc_size   = mailtxt_size * 255.
    Create Pack to text in mail body.
      CLEAR it_mailpack-transf_bin.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 0.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = mailtxt_size.
      it_mailpack-doc_type     = 'RAW'.
      APPEND it_mailpack.
    Create Pack to PDF Attach.
      it_mailpack-transf_bin   = 'X'.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 1.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = pdf_itab_size.
      it_mailpack-doc_type     = 'PDF'.
      CONCATENATE l_vbeln '.pdf' INTO it_mailpack-obj_name.
      CONCATENATE 'Order Ack' space l_vbeln INTO it_mailpack-obj_descr.
      it_mailpack-doc_size     = pdf_itab_size * 255.
      APPEND it_mailpack.
    *Get email addresses based on Sales document.
      SELECT vbeln adrnr INTO TABLE i_vbeln
             FROM vbpa
             WHERE vbeln = vbdka-vbeln AND
                   parvw = nast-parvw.
      IF NOT i_vbeln[] IS INITIAL.
        SELECT addrnumber smtp_addr INTO TABLE i_addrs
               FROM adr6 FOR ALL ENTRIES IN i_vbeln
               WHERE addrnumber =  i_vbeln-adrnr AND
                     smtp_addr NE space.
      ENDIF.
      IF i_addrs[] IS NOT INITIAL.
        LOOP AT i_addrs.
          it_reclist-receiver   = i_addrs-smtp_addr.
          it_reclist-express    = 'X'.
          it_reclist-rec_type   = 'U'.
          it_reclist-notif_del  = 'X'. " request delivery notification
          it_reclist-notif_ndel = 'X'. " request not delivered notification
          APPEND it_reclist.
          CLEAR: i_addrs.
        ENDLOOP.
      ENDIF.
    Call FM to send email
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = it_doc_att
          put_in_outbox              = 'X'
        TABLES
          packing_list               = it_mailpack
          object_header              = it_mailhead
          contents_txt               = it_mailtxt
          contents_hex               = it_pdfdata
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorizationfiltered= 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " MAIL_OBJECT
    Regards,
    Ajith

    Hi Ajith !!
    Please refer this link :
    http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
    Here a spool output is converted into PDF and then sent as an email.
    I think instead of using FM to change the width, try the logic mentioned in the link.
    Also instead of FM CONVERT_TO_OTF use :
    1. CONVERT_OTFSPOOLJOB_2_PDF
    I hope this should solve the problem.
    I had referred the same program from the link and it worked absolutely fine. Also check the adobe acrobat version, i guess old version doesnt support SAP, though not very sure.
    Best regards,
    Prashant

  • I have Windows 98 and need Acrobat to open up the pdf files for 5.0

    I have the old system, Windows 98 and presently have the free Adobe 5.0 version on my Compaq Presario Computer, and it is a 5242 model desktop.
    I have inadvertanly switched over to Compaq Carbon Copy 32 Version 5.0 but since, have uninstalled it and now, on each of what was the pdf files initially of which I have, of which is at least 16 or more, on each of those files, an error message comes up and says "PROGRAM NOT FOUND," and states the following: "Windows cannot find CCW32EXE. This program is needed for opening the pdf files." And then it has a dialogue box with the computer operational symbol in it as C:\ and then it wants me to locate it. I cannot locate it through the "auto" because, this sytem being so old, doesn't have a magnifying glass or a "search" tool to do this in the "My Computer Icon on the Desktop as the Compaq people wanted me to do. I would have to do this manually. I have already talked to the Compaq people on their chat line and because of this, they said they couldn't help me with this problem and referred me over to you.
    I've tried to find a download for 5.0, though I really don't think I need one since it is currently installed. I believe the proper way to fix this is to just convert the CCW32EXE over to the Acrobat pdf files and have those files opened and should open up all of my 15 or so files altogether at the same time because they all converted over to something else at the same time prior.
    Are you able to help me?
    But I believe to alleviate this problem, if you could just give me the information to be able to open up the pdf files to 5.0 and find out what download I may pursue, it might be able to correct this problem. I already have the 5.0 Acrobat installed, however.

    Hi Aandi,
    I have followed your directions and I have the old system of Windows 98, so I had to go to "programs" and come up to Acrobat 5.0 and once in there, all of the Window there is greyed out, although I can still go to the tool bars above in it. I went to "file" and went to "open" and from there, I received an "open" window with a dialogue box in it and in that dialogue box as I scrolled down, it wants me to put in there, one of the following, "desktop," "my documents," "3 1/2 floppy [A:]," "[C:]," "system _save [D:]," ""[E:," "[F:]," ete; of these which do I pick in the "open" dialogue box? and down at the bottom, is the FILE NAME and what do I put in there? Just below that, it has the FILES OF TYPE which has there Adobe pdf Files, in it's dialogue box. I hit these, but I still get an error message of which basically says, "NOT FOUND, please put in proper file name given." And I don't know actually where it is given.
    So, as you see, I am a novice in all of this and you can contact me at my e mail address which is [email protected]
    and should a reply be needed, I'll come back to the forum for a reply.
    I really need to open up the Adobe 5.0 pdf files. All of the pdf files, simultaneously went over to Compaq Carbon Copy 32 of which I since, uninstalled. But I really need to get back and open the Adobe 5.0 pdf files.
    And I want to thank you for your support and eagerly awaiting your help.
    Thanks,
    Now, I did do one of the following: I went to C: which came to Acobat 3 and I hit that which came to Reader and I hit that which came to the following: ACROBAT which gave me ACTIVE X - BROWSER - FONTS - HELP - OPTIONAL - PLUG-INS

  • While converting spool to PDF, no data is coming in the PDF file.

    Hi All,
    I am submitting a z program ZPR022_INNCOMETAX_REPORT_COPY1 (which has some output display) from Z_ITSLIP_MAIL.  I am creating a job, submitting the above program via JOB  to SAP-SPOOL.
    In program ZPR022_INNCOMETAX_REPORT_COPY1 , I am getting the run time job information and from there I am getting the spool id.  Now I am converting the spool id to a PDF.  This PDF should contain the output of the program ZPR022_INNCOMETAX_REPORT_COPY1.  This output is normal output using Write statement only.  But once the program is executed, I could find no data in the PDF file.  When I check in SM37 and SP02, both the JOB and the SPOOL are created.  What I feel is the program is not picking the spool id at the run time.  Could any one help me in this regard how to proceed.
    Please find the code below.
    Program 1.
    LOOP AT pernr.
      CLEAR p_job.
      p_stim = p_stim + 120.
      CONCATENATE'ITSlip' pernr-low p_job sy-datum INTO p_job SEPARATED BY
    space.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname   = p_job
          sdlstrtdt = p_sdat
          sdlstrttm = p_stim
        IMPORTING
          jobcount  = l_jobcount.
      SUBMIT ZPR022_INNCOMETAX_REPORT_COPY1
        WITH pnptimr6 = 'X'
        WITH pnpbegda = period-low
        WITH pnpendda = period-high
        WITH pnppernr-low = pernr-low
        WITH pnpabkrs-low = 'IN'
           VIA JOB     p_job
            NUMBER  l_jobcount
           TO SAP-SPOOL WITHOUT SPOOL DYNPRO
               SPOOL PARAMETERS ls_params
               WITH immediately = 'X'
              KEEP IN SPOOL = 'X'
                  AND RETURN.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount  = l_jobcount
          jobname   = p_job
          strtimmed = 'X'
         PRDMINS = 2.
          sdlstrtdt = p_sdat
          sdlstrttm = p_stim.
    ENDLOOP.
    Program 2.
      IF sy-batch EQ 'X'.
        LOOP  AT pnppernr.
          SELECT SINGLE * FROM pa0105
            WHERE pernr EQ pnppernr-low
              AND subty EQ '0010'
              AND endda EQ '99991231'.
          p_email1 = pa0105-usrid_long..
          PERFORM get_job_details.
          PERFORM obtain_spool_id.
          PERFORM convert_spool_to_pdf.
          PERFORM process_email.
         IF sy-sysid = c_dev.
            WAIT UP TO 5 SECONDS.
            SUBMIT rsconn01 WITH mode   = 'INT'
                            WITH output = 'X'
                            AND RETURN.
         ENDIF.
        ENDLOOP.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool'
                'request to be created.'.
       EXPORT gd_spool_nr TO MEMORY ID 'SPOOLTOPDF'.
      ENDIF.
    ENDFORM.                    " SEND_MAIL
    *&      Form  get_job_details
          text
    -->  p1        text
    <--  p2        text
    FORM get_job_details .
    Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
        IMPORTING
          eventid                 = gd_eventid
          eventparm               = gd_eventparm
          external_program_active = gd_external_program_active
          jobcount                = gd_jobcount
          jobname                 = gd_jobname
          stepcount               = gd_stepcount
        EXCEPTIONS
          no_runtime_info         = 1
          OTHERS                  = 2.
    ENDFORM.                    " get_job_details
    *&      Form  obtain_spool_id
          text
    -->  p1        text
    <--  p2        text
    FORM obtain_spool_id .
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        MESSAGE s004(zdd) WITH gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.                    " obtain_spool_id
    *&      Form  convert_spool_to_pdf
          text
    -->  p1        text
    <--  p2        text
    FORM convert_spool_to_pdf .
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid              = gd_spool_nr
          no_dialog                = c_no
          dst_device               = c_device
        IMPORTING
          pdf_bytecount            = gd_bytecount
        TABLES
          pdf                      = it_pdf_output
        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.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.                    " convert_spool_to_pdf
    *&      Form  process_email
          text
    -->  p1        text
    <--  p2        text
    FORM process_email .
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    ENDFORM.                    "process_email
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'IT Declaration'.
      CONCATENATE 'ITSLIP' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'IT FORM for this month'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   TABLES it_mess_bod
                                          it_mess_att
                                    USING p_email1
                                          'MindTree Payroll team'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 CHANGING gd_error
                                          gd_reciever.
    ENDFORM.                    " process_email
    *&      Form  send_file_as_email_attachment
          text
         -->P_IT_MESS_BOD  text
         -->P_IT_MESS_ATT  text
         -->P_P_EMAIL  text
         -->P_4422   text
         -->P_4423   text
         -->P_GD_ATTACHMENT_NAME  text
         -->P_GD_ATTACHMENT_DESC  text
         -->P_P_SENDER  text
         -->P_GD_SENDER_TYPE  text
         <--P_GD_ERROR  text
         <--P_GD_RECIEVER  text
    FORM send_file_as_email_attachment TABLES it_message
                                              it_attach
                                        USING p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     CHANGING p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
      DATA:   t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
              t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
              t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
              t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
              t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
              w_cnt TYPE i,
              w_sent_all(1) TYPE c,
              w_doc_data LIKE sodocchgi1.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = w_doc_data
          put_in_outbox              = 'X'
          sender_address             = ld_sender_address
          sender_address_type        = ld_sender_address_type
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = w_sent_all
        TABLES
          packing_list               = t_packing_list
          contents_bin               = t_attachment
          contents_txt               = t_attachment
         contents_txt               = it_message
          receivers                  = t_receivers
        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.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.                    "send_file_as_email_attachment
    Points will be rewarded.
    Regards,
    Balaji

    Hi,
    I think you are retrieving the spool before the entire spool is generated.
    Put the following logic to retrieve spool iD
    CHECK WHETHER STATUS OF JOB IS COMPLETED OR CANCELLED
      WHILE 1 = 1.
    GET THE JOB STEPLIST WHICH HAS THE SPOOL NUMBER
        CALL FUNCTION 'BP_JOB_READ'
          EXPORTING
            job_read_jobcount           = w_jobcount
            job_read_jobname            = w_jobname
            job_read_opcode             = '35'
      JOB_STEP_NUMBER             =
         IMPORTING
           job_read_jobhead            = wa_jobhead
         TABLES
           job_read_steplist           = i_jobsteplist
    CHANGING
      RET                         =
       EXCEPTIONS
         invalid_opcode              = 1
         job_doesnt_exist            = 2
         job_doesnt_have_steps       = 3
         OTHERS                      = 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.
    BEGIN OF INSERTION U179942 E1BK928781
    IF STATUS OF JOB IS COMPLETED(F) OR CANCELLED(A)
    READ THE JOBSTEPLIST & GET THE SPOOL NUMBER
        IF wa_jobhead-status =  c_a OR wa_jobhead-status = c_f.
          READ TABLE i_jobsteplist INTO wa_jobsteplist INDEX 1.
          CHECK wa_jobsteplist-listident <> space.
          w_spool_number = wa_jobsteplist-listident.
          EXIT.
        ENDIF.
      ENDWHILE.
    Best regards,
    Prashant

  • The PDF file I just got from my PDF Pack subscription is not right -- why?

    I use Word on the Mac. When I save my document as PDF I get a file bloated file almost 1 Gig long. I subscribed to PDF Pack in the hope of getting a cleaner, shorter file. And it is  --  2.1MB  --  ta-dah? NO!! It does not have the formatting that I want, and that my MAC PDF file has when viewed with Adobe Reader. I have carefully formatted my file to get clean ragged margins and good text blocks. But the file I just got from the subscription service is 5 pages longer (which means my Index is wrong), many pages are laid out differently, and ligatures are not used(!). I don't know what other details are wrong, but what I got is unusable. Money down the drain.
    Perhaps a forum member has a suggestion.
    Why doesn't Adobe provide a simple way to contact an Acrobat expert?

    --| "Contact an Acrobat Expert"
    You can visit the Adobe Support "portal" page and find the click through to open a trouble ticket. To get the ball rolling you'll need to provide your credit card information. Rest assured you will get expert support at a rate that reflects it.
    Or, here or at Acrobatusers.com you can ask a question where knowledgeable / experienced Acrobat users can provide suggestions or perhaps an answer.
    RE: Your question. You are creating a PDF with the online service's heuristics. While adequate for the routinely used "business" cases of documents anything somewhat "custom" can be expected to have an output in the PDF that is not, perhaps, spot on.  As to an Index  -- that's just not going to survive what amounts to a "file conversion".
    Be well...

  • I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway inst

    I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway installing PSE-10 or uninstalling it. If I send the  PDF file that has been automatically converted to a PSE-10 the person I send the file to can not open it because they do not have PSE-10. What can I do to stop PSE-10 from converting my PDF files? Don't tell me to upgrade PSE-10 I tried their on-line program and  it is too advance for a hobby photographer like myself and their Help Desk is impossible to reach.

    Hi,
    Can you please share the logs?
    You can use the Adobe  Log Collector tool (Log Collector Tool) and share the corresponding zip file @ [email protected]
    Thanks,
    Shikha

  • Hyperlinks don't activate in the PDF file

    Hello all:
    I'm working with Pages (v. 1.0.2) and cannot get the text hyperlinks (going to URLs) to work. They work in the Pages app. But when I Print > PDF > Compress PDF, the created file has blue underlined text all right, but when I hover over these links, the cursor doesn't change to a hand that activates the hyperlink(s). Incidentally, although text hyperlinks aren't active on these PDFs, one email hyperlink I've set up on that same PDF DOES work. Go figure!
    What might I do to activate every text hyperlink? (If valuable, is there a way to attach the PDF on this Apple Discussion forum for testing purposes?)
    T, ia.
    Warren
    PowerBook G4   Mac OS X (10.4.9)  

    {quote:title=tmboone wrote:}Here's a snippet of what it's adding "Boones%2527%2520News" It should just read "Boones%27%20News"{quote}
    The numbers with % marks get inserted when you use non-"web-safe" characters in your hyperlink. Web addresses are generally best if they only have letters, numbers, forward slashes, and simple punctuation (e.g., - or _). If a URL has a space in it, that is generally converted to %20 (this is known as "escaping"). A single quote would be converted to %27. An actual percent sign would be shown as %25 in a URL. (You can see the codes by looking in the hex column of the table at http://www.asciitable.com/ ).
    I think what is happening in your case is that you are beginning with a legitimate with URL with %20 and %27 codes in it. But then somewhere in the process it gets "escaped" again, and the % marks each get converted to %25. Sounds like a bug somewhere between Pages and the PDF writer -- the text is getting escaped twice, and the second time shouldn't happen. You might want to report this to Apple as a bug.
    In the mean time, you can make prettier and more reliable URLs by avoiding those weird characters entirely. For example, you could stick in underscores (_) instead of the spaces and single quotes in your original filename, and then it will sail through with no trouble.

  • How to upload the pdf file to the next view?....urgent

    Hi Experts,
    I need to upload the pdf file( a interactive form ) using the fileupload element in the A_view and the pdf file can be displayed in the b_view.
    But I don't know how to complete the function?
    Action:
    0.  Create a adobe form (c_form)in the R/3 using sfp with a inputfield.
    1.  Create a adobe interactive form (A_interactive_form)in the view(display_view) of the WDA for abap.
    2.  Create a context attribute(upload) in the display_view.
    3.  Bind the c_form to the A_interactive_form, so that the data can be transfered to the c_form.
    4.  Bind the "pdfSourth" property to context attribute "upload" in the A_interactive_form.
    4.  Type code in the WDA for abap for setting data("old") to the context.
    5.  Active the WDA and run the WDA.
    6.  In the IE, the interactive form is displayed with the value "old" in the field. Save the pdf form as "test.pdf" and close the IE.
    7.  Open the test.pdf, and type the inputfield "new" in the form, and save the test.pdf.
    8.  Create a context node(Pdfsourth) in the component controller, and create a attribute("upload") that type is xstring in the Pdfsourth.
    9.  Create a view(C_view), mapping the context node(Pdfsourth) in the component controller.
    10. Create a fileupload element in the C_view, and the "data" property is binded the "upload" attribute in the context node(Pdfsourth).
    11. Create a button(Display_form) and create the action with the outplug for upload the pdf file(test.pdf).
    12. Change the window and set the C_view as default view, and set the Navigation link from the C_view to B_view.
    13. Type code in the wddoinit method in the display_view for transfering the test.pdf file.
    method WDDOINIT .
    DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
    DATA upload                 TYPE        xstring.
    lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      lo_componentcontroller->getupload(
        IMPORTING
          upload = upload                         " xstring
      DATA lo_nd_pdfsourch TYPE REF TO if_wd_context_node.
      DATA lo_el_pdfsourch TYPE REF TO if_wd_context_element.
      DATA ls_pdfsourch TYPE wd_this->element_pdfsourch.
    navigate from <CONTEXT> to <PDFSOURCH> via lead selection
      lo_nd_pdfsourch = wd_context->get_child_node( name = wd_this->wdctx_pdfsourch ).
    get element via lead selection
      lo_el_pdfsourch = lo_nd_pdfsourch->get_element(  ).
    get single attribute
      lo_el_pdfsourch->set_attribute(
        EXPORTING
          name =  `UPLOAD`
          value = upload ).
    endmethod.
    15. Active the WDA and run the WDA.
    In the fileupload of the C_view, I select the test.pdf from my local machine. and click the button(Display_form), the display_view is displayed with the A_interactive_form.
    But in the A_interactive_form, the value "old" is in the field in the form rather than "new".
    I hope to display the test.pdf in the A_interactive_form. I don't know how to change my code or configuration?
    Do you give some example or some hint for this problem ?
    Thanks & Regards,
    Tao

    Now, The problem has been solved.Thanks a lot.

  • PDF file has features that are not supported?!?

    Hi All,
    I'm using Adobe Acrobat 9 Pro to create a FORM and then I
    submit the form to Acrobat.com. The problem is that when users
    follow the emailed link to acrobat.com, they can't enter data into
    the form on the website. They have to download it into their local
    reader to fill out the form.
    This is the actual error message I get:
    "This PDF file has additional features that are only
    supported in Adobe Acrobat or Adobe Reader"
    What am I missing here? I'm creating a form, in Adobe
    Acrobat, that just has a few text fields and couple of checkboxes
    on it - that's all there is to it.
    Can someone tell me what the unsupported "additional
    features" are so that I can disable them before submitting the
    document to Acrobat.com?

    Hello recurry,
    thanks for posting.
    It does not look like you are missing anything really....The
    workflow that you've laid out is the proper workflow for working
    with Forms and Acrobat9/Acrobat.com.
    You cannot edit the pdfs using acrobat.com. Each user will
    need to download it, and definitely need to if they want to input
    data to it.
    Once they then submit their file, you should then see the
    updates.
    Thanks!
    Pete

  • InsertPage RaiseError: An incorrect structure was found in the PDF file

    Hi,
    I am trying to build a button script that will create a new document, copy (insert) from the first page of the open document, save it, then close it.  I believe the part where it gets tricky -- and possibly not doable -- is that the original (source) document uses a template; full of form fields to possibly be spawned off as new pages. 
    Given the above, ideally the user of the form can click on the "save new page" button: it creates anj Inserted copy of the first form page, cleared of content if any has been entered, and not including any other pages that may have been spawned. 
    With the code I am using, it currently creates the copy of the page and it inserts it as the zeroeth page (ahead of a blank page I intend to add code later to delete) and saves it.  However, there are a couple of problems that come up with this.  First is the error code that opens in the debugger:
    RaiseError: An incorrect structure was found in the PDF file
    Doc.insertPages:29:AcroForm:Save New Form:Annot1:MouseUp:Action1
    ===> An incorrect structure was found in the PDF file
    Despite the error it does still save the page (form copy) as mentioned above.  However, if you try to start working with it, it lets you know that there are no form fields on the document (even though they are all there and seemingly functional).   When I look to edit the fields, it will then ask you if you want to try to recognize the fields.  If I click on "yes", it says it was unable to, but then the form opens up with all of the field names perfectly matching the original.  If I click on "no" it just opens the page with all of the fields perfectly matching again.  So I feel like I am close to being able to do this!
    I am using the following code to produce my results:
    (In the JavaScript "app" folder, I have the following trusted functions:)
    myTrustedMenu = app.trustedFunction(function(name)
        app.beginPriv();
        app.execMenuItem(name);
        app.endPriv();
    myTrustedSaveAs = app.trustedFunction(function(doc, namePath)
        app.beginPriv();
        doc.saveAs(namePath);
        app.endPriv();
    myTrustedNewDoc = app.trustedFunction(function()
        app.beginPriv();
        var doc = app.newDoc();
        app.endPriv();
        return doc;
    myTrustedInsertPage = app.trustedFunction(function(doc, namePath)
        app.beginPriv();
        doc.insertPages ({
            nPage: -1,
            cPath: namePath,
            nStart: 0
        app.endPriv();
    (On the "Save New Form" button, the following code is activated:)
    // First split document path into an array
    var aPathComps = this.path.split("/");
    // Get File Name off end of array
    var myFileName = aPathComps.pop();
    var pathway = aPathComps.join("/");
    var myDoc = myTrustedNewDoc();
    myTrustedSaveAs(myDoc, pathway + "/test.pdf");
    myTrustedInsertPage(myDoc, this.path);
    //myDoc.resetForm();
    //myDoc.closeDoc(true);
    I apologize for the long post and I appreciate anyone who takes the time to look into this issue for me.
    Thanks,
    Mike

    MikeIs2C wrote:
    You nailed it TSN!  Deleting the tags did the trick.  Thank you so much for your help!  Just an FYI for any of you fellow "noobs" that might be referencing this discussion, to open the "Tabs" view (in Adobe Acrobat Pro XI in my case) go to View > Show/Hide > Navigation Panels > Tags.  I looked all over the place for that until I found a document that mentioned how to open it.
    Thanks for pointing out specifically how to get here. Thanks to the all for this post!
    I also encountered this error, "An incorrect structure was found in the PDF file" from my published MadCap Flare user guide. I am attempting to find a way to build a bridge between Flare and Google documents for corporate-wide collaboration. Thus far, it's a crazy challenge finding a way to produce gdocs from Flare output. Neither product makes this easy. The closest I can get is by publishing the Flare doc as a PDF... but then I must break that document down into 2mb chucks...which led me to this problem, after attempting to use the Adobe Acrobat splitting tool.
    Question:
    What is the root cause of these bad tags. There are a LOT of them! Is this a fault in the way MadCap Flare creates a PDF document?
    Yes, deleting some of the tags will allow me to finally split a PDF document. Unfortunately, this error occurs in all my published PDF documents, thus preventing me from automating (scripting) this split and then conversion to Google Docs!
    Thank you

  • Preflight keeps saying  "Unable to save the PDF File after post processing"

    I'm at a loss how to overcome this. Spent almost a whole day, together with another person, trying to fix it with no success!
    I use Adobe pro CC on a PC
    I usually receive pdf files from this one client who edits and formats a book in Mac Pages. Up until a few days ago I had no problems converting the client's pdfs into pdf/x3, but the last three versions of the latest file have stumped me.
    Just to test, I first just tried to convert the file (33MB), unchanged, to pdf/x3 using the save as other option - message reads  "the document has been saved, however, it could not be converted according to the selected standard profile: convert to PDF/X. Please use preflight with the profile "Convert to PDF/X" in order to identify those properties of the document which prevent it from being compliant to this profile"
    if I then choose under Profiles - convert to PDF/X3 - it says no problems found, and appears to have saved the file. If I try to save again as a pdf/x3, just to make sure, it then tells me it's not pdf/x3 compliant
    OK - so then I go back to preflight - and choose the standards function - then pdf/x3, then continue with the default colour profile. About halfway through the conversion, at the point of saving the file,  I get the message "unable to save the pdf file after post processing"
    So far I've had no luck figuring out what this is.
    I then choose the option of "verify compliance of ppdf/x3" - message reads "pdf/x3 version key (GTS_PDFXVersion) missing", and "Trapped key not true or false"
    Help!! How can I be sure the file converted / or not?
    kim

    Yes I was/am aware of Preflight's inability to play nicely over cloud technologies in certain cases, especially wrt Standards technologies, this will be partially addressed in an upcoming version of Preflight without saying too much.  But the same thing could theoretically have happened if the file was also located on another local network client or server.  Leaving aside the argument that this may violate the Acrobat User Agreement - since purchasing the software, the user agrees to employ its functionality on a single host system and precludes host-client-based scenarios - this simply is not a supported use, meaning the user may not have expectations that it will work at all, if the applications requirements are not observed.  There do exist server-solutions for Preflight files within networks, but Acrobat and by extension Acrobat Preflight is not one of those solutions, and (still) belongs in the single host-based desktop environment.
    However most (99.9%) functions within Acrobat <-> acrobat.com file exchange are supported, file syncing across multiple devices will soon be supported, but Standards compliance is still admittedly a problem at this point.  Some testing has been done using 3rd party cloud technologies starting with enterprise-based solutions, such as Office 365, and this will continue to ramp up to include other 3rd party products.
    As for the second point, Preflight will usually change the PDF version to be complaint, are you saying that it was unable to do so in this case?  It seems that this error should have popped up during the normal Preflight conversion attempt.  Personally I think solving a workflow problem using the print path is a little bit of a heavy-handed approach, but if helped and the results are acceptable, then that is good.  Since that path is non-existent on a Mac, as one needs to Save as Adobe PDF from the Print dialog's PDF drop-down menu, I am assuming your workflow involved file creation on a Mac, then further processing on Windows using the PDF printer.  I am wondering if a simple resave/Save As... to PDF with overwrite on a Mac, or Preflighting the file using a PDF version compatibility profile before the PDF/X conversion would have helped.  Since there are such a multitude of methods that a PDF can be created, there are also many ways within Acrobat that a user can shape the file to be compatible with the expected workflow, ie, 'many ways to skin a cat', without being morbid.

  • When saving a PDF to the Hard Drive the PDF logo has been replaced with a HTML FireFox Logo where as before it would have a PDF Logo. Is this right?

    It also when opening opened in FireFox not Adobe until i changed it in Windows but the PDF logo has gone and now with the HTML FireFox Logo which now opens in Adobe. Why has the PDF logo been replaced? I hope i make some sense. Thankyou.

    If you set Firefox as the default browser and Firefox detects via a registry scan that there is currently no file handler application that handles PDF files and a few other file types then the Firefox updater/installer registers Firefox as the default application to handle these file types.
    This causes them to show with a Firefox icon on the desktop and in other places like Windows Explorer (Bug 452254).
    You can right-click a PDF file in Windows Explorer and use the open with dialog to change the default application to the Adobe Reader or your preferred application to handle PDF file.
    If the icon doesn't change to the icon of that application then you may have to change the icon on the desktop via other means
    On Windows XP you can check the Windows Control Panel:
    *Control Panel > Folder Options > File Types: .PDFf
    *Registry Editor: HKEY_CURRENT_USER\Software\Classes\.pdf\ or HKEY_CLASSES_ROOT\.pdf (Default = empty string)
    *[[/questions/1014919]]

Maybe you are looking for