Error during rebuilding PDF file using FM SCMS_XSTRING_TO_BINARY

Hi,
PDF file content is compressed and stored on a custom table within SAP. The requirement is to download this onto Unix application server directory. I am using one FM to decompress the data and another to convert into a binary format to be saved as .PDF.
I am using FM SCMS_XSTRING_TO_BINARY to save the content as pdf file from the XSTRING data. I am getting an error message while opening such a pdf file: "Could not find the XObject named '00010' ". Also the company logo is missing from the file. I feel both are connected. does anyone know the solution for this?

Hi,
I have a smiliar requirement, can you please help?
Regards
Manu

Similar Messages

  • Error to Send PDF file using mail

    Hi all,
    I create a report that send an mail with 2 different pdf attach.
    I have a problem because one pdf attach is 663 KB and when I read it in mail it can not open the file and give me this error  :
    "Error opening PDF file --> There was an error opening this document.the file is damaged and could not be repareid "
    I send the same mail with another PDF file (64,2 KB) and all it's work correct.
    This files are in my application server, and this is the code that I use to read and send :
    data:   gt_table TYPE TABLE OF solix,
               gs_table LIKE LINE OF gt_table.
    open dataset wa for input in binary mode.
    if sy-subrc eq 0.
      do.
        read dataset wa into gs_table LENGTH alen.
        ctr = ctr + alen.
        if sy-subrc ne 0.
          exit.
        endif.
        append gs_table to gt_table.
      enddo.
    endif.
    close dataset wa.
    TRY.
    (1) crea Oggetto
          l_send_request = cl_bcs=>create_persistent( ).
    (2) E-Mail - Crea Oggetto e Body del messaggio
    (5)  bcs attachment
    l_attachment_size = ctr."tab_lines * 255.
          CALL METHOD l_doc->add_attachment
            EXPORTING
              i_attachment_type    = 'PDF'
              i_attachment_subject = l_attachment_subj
              i_attachment_size    = l_attachment_size
              i_att_content_hex    = gt_table."xsolix[].
    CALL METHOD l_send_request->set_document( l_doc ).
          CALL METHOD l_send_request->set_priority
            EXPORTING
              i_priority = '1'.
          CALL METHOD l_send_request->set_send_immediately( 'X' ).
    I find this link but the problem are not resolve : Compress Smartform PDF file before sending mail
    Can anyone help me to understand where is the problem ?
    thanks a lot
    Barbara

    Hi,
    I find the way to resolve this topic, thanking a collegue.
    The problem is the way that I use to read the file.
    If I read the file in the following way, the problem concerning the size are bypassing.
    DATA : gs_table LIKE LINE OF gt_table.
      DATA: l_xstring TYPE xstring.
      DATA : alen TYPE i.
      OPEN DATASET  p_p_file FOR INPUT IN BINARY MODE.
      IF sy-subrc EQ 0.
       DO.
        READ DATASET p_p_file INTO l_xstring.
         p_bin_filesize = p_bin_filesize + alen.
         IF sy-subrc NE 0.
           EXIT.
         ENDIF.
         APPEND gs_table TO gt_table.
       ENDDO.
      ENDIF.
      CLOSE DATASET p_p_file.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            buffer                = l_xstring
        APPEND_TO_TABLE       = ' '
         IMPORTING
           output_length         = p_bin_filesize
          TABLES
            binary_tab            =  gt_table .
    thanks a lot
    barbara

  • Error  while  reading pdf file using adobe reader 8

    Hi ,
    I am using itextsharp for creating pdf file which contains 300 pages.
    When I tried to open that pdf file in adobe reader 5 , there is no issue . Its opening correctly. But When I 've tried to open it using adobe reader 8 . Its opening the file but I could read upto 156 pages out of 300. I couldn't read beyond that. Its displaying the following error message "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem" , "could not find the XObject named 'Xf2'." .
    Please help me to resolve the issue.
    Thanks,
    Tamil.

    Hi ,
    I am using itextsharp for creating pdf file which contains 300 pages.
    When I tried to open that pdf file in adobe reader 5 , there is no issue . Its opening correctly. But When I 've tried to open it using adobe reader 8 . Its opening the file but I could read upto 156 pages out of 300. I couldn't read beyond that. Its displaying the following error message "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem" , "could not find the XObject named 'Xf2'." .
    Please help me to resolve the issue.
    Thanks,
    Tamil.

  • Error during import PDF files in MDM

    HI,
    when I try to import a PDF file in our MDM repository I got the following error:
    "Importing [English [US]] 'test pdf.pdf'...failed.
    Unable to open Adobe Acrobat.
    See your administrator about installing Adobe Acrobat."
    We are using MDM 7.1 SP3 installation on HP UNIX OS.
    Does someone know what is it  - I have Addobe Reader 9 installed on my PC (where the Data Manager is installed)?
    Thanks for your help.
    BR,
    ILIN

    Hi Ilin,
    In order to load PDF files Adobe Acrobat® Standard or Professional Version is required and it needs to be installed on the machine that is loading the PDF and not on the Server machine.
    That's why it is giving you error to Install Adobe Acrobat. It is also required to generate Thumbnails.
    I mean if you installed it on machine where data manager is installed as you load files through data manager, then this error should not come.
    Refer, SAP Note for more details:
    https://websmp130.sap-ag.de/sap/support/notes/1258537
    Regards,
    Mandeep Saini

  • Since I downloaded Adobe Reader 11.0.07 I have been totally unable to print any PDF files using my Dell 1720 laser printer - I just get a blinking "error" light on the printer, no other error messages . I never had a problem printing PDF files before down

    Since I downloaded Adobe Reader 11.0.07 I have been totally unable to print any PDF files using my Dell 1720 laser printer - I just get a blinking "error" light on the printer, no other error messages . I never had a problem printing PDF files before downloading the new Reader version. Suggestions? Thank you.

    Hi,
    Which version of Adobe Reader were you using earlier when printing using Dell printed was working fine?
    Thanks,
    Shakti K

  • Open pdf file using ms access visual basic 2000 (9.0.2720)

    I'm using Acrobat reader to open pdf file using a vb proceedure , how ever I can't get it to open a specific file thats in another file folder.
    The code I'm using looks like the following: This is windows 7, using the (x86) virtual in 32 bit mode.
    Private Sub Form_Click()
    'checks for valid msds document
    Dim fs As FileSearch
    Dim stAppName As String
    Dim i As Integer
    On Error GoTo Err_form_Click
    Set fs = Application.FileSearch
    With fs
                 .NewSearch
                .LookIn = "c:\program files (x86)\cvmm\msds\"
                .FileName = Me![MSDS Index #] & ".pdf"
                .MatchTextExactly = True
    If .Execute() <> 0 Then
                        stAppName = "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe c:\program files(x86)\cvmm\msds\" & Me![MSDS Index #] & ".pdf"
                          Call Shell(stAppName, 1)
               End If
                     End With
    exit sub
    Err_form_Click:
        MsgBox Err.Description
             Resume Exit_form_Click
    Exit_form_Click:
            MsgBox " no file found."
    End Sub
    This used to work when I was using acrobat 5.0,

    You should have quotes around a filename that has spaces in it. Older versions were more forgiving for some reason.
    Much better anyway is to use ShellExecute, which means you don't have to know or care what PDF reading software is installed and how to run it.

  • Deleting PDF files using Adobe Acrobat Standard XI

    I can't delete PDF files I created myself. I get the error message I don't have access to edit, see snapshot above. I am the administrator of my own laptop. Browsing this forum helps me to locate the same query as mine but no exact answers/steps of how to bloody delete the damn files. *sorry, bit annoyed of the run-around links & not found pages* Any help would be appreciated. Thank you in advance.

    I want to just delete closed PDF files. And I know how to delete using Del button or Right Click > Delete. The problem is I get error message saying the file I want to delete, can't be deleted.
    I tried a number of combinations with Preview enabled & disabled, but still won't let me delete the files. I haven't tried exiting/closing Acrobat AFTER disabling Preview THEN deleting the PDF files, will try this. But if this is how I'm supposed to delete files in Adobe XI from now on, come on, seriously?! I work with a lot of PDF files. I shouldn't have to close down the application (Acrobat) just to delete the closed PDF files using my File Explorer view. It's like having to exit Word each time I want to delete closed .docx files.
    Will try & advise.

  • How to open a pdf file using OPEN DATASET

    Im trying to convert a pdf into binary format. So im trying to read the contents of the pdf into a XSTRING. Using the FM 'SCMS_XSTRING_TO_BINARY' i can convert the XSTRING to binary format.
    How to open a pdf file using OPEN DATASET and transfer its contents in a XSTRING variable.
    What i've tried is....
    DATA: f_name type string value 'C:\rep_output_pdf.pdf',
          x1 type xstring,
          LT_DATA TYPE STANDARD TABLE OF X255.
    OPEN DATASET f_name FOR input IN BINARY MODE.
    READ DATASET f_name INTO x1.
    CLOSE DATASET f_name.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER     = x1
        TABLES
          BINARY_TAB = LT_DATA.
    Im getting a short dump .
    Short text: The file is not open.
    Plz help me out.

    Hello Rajesh,
    You are trying to do use OPEN DATASET with a local file. NOT POSSIBLE
    You have to have the file in the app server to use OPEN DATASET.
    BR,
    Suhas

  • No ability to create PDF Files using Acrobat 6.01_6.06 after installing Word 2010. (Windows XP)

    Since installing Word 2010 (upgrading from Word 2003) there are no visable PDF Icons nor ability to create PDF Files using Adobe Acrobat 6.06.  Operating system is Windows XP.  Browser is IE8.  Various attempts to bypass this situation have not been successful.  No problems had been experienced earlier using Acrobat 6.01 through 6.06 with Word 2003 and earlier Word versions during the passed 10 years or so.  Adobe's support is not responding to recognize mentioned situations, nor is there any a solution to fix the problem.  Low volume small businesses,with limited need to create PDF files, are being considerably burdened to substante a $200 investment to upgrade to Acrobat X, which may as well not be the solution.  It is appealed for Adobe Forums readers to share similar experiences with possible fixes at hand.  Responses will be greatly appreciated.  Thank you...

    Your response is greatly appreciated, Bernd...
    Unfortunately, those of us who milk software packages for eons such as
    Acrobat 6.06 Standard, a full version of Acrobat X is quoted to be $299
    with no ability to upgrade since 7.0 is the cutoff which remains to be
    only $139.
    It seems to me, Military personal, retired or just ole toots who did
    their think, would offer considerations such as Staples, Lowe's, and
    other big boxes offer.  Such is greed for some who do not consider 
    alternatives above their noses...
    Thank you,
    Skip

  • Error in displaying PDF file in webdynpro application

    Hi Experts,
    I am trying to display one pdf file using webdynpro abap using MIME.
    While executing the application i am getting an error in the browser:
    " File doesnot begin with '%PDF-' "
    Please help me to proceed.
    Regards,
    Arun.

    Hi Arun,
    Please check this...
    File does not begin with %PDF
    File does not begin with %PDF
    Cheers,
    Kris.

  • Unable to print PDF files using Acrobat 8.

    I had to uninstall and then reinstall Office for Mac 2011.  I don't know if it's related or not,  but since doing so I have been unable to print PDF files using Adobe Acrobat 8. After opening a PDF file and hitting print, Adobe Acrobat 8 crashes. Any suggestions?  I already uninstalled and reinstalled Adobe Acrobat 8, but it still won't print PDF files. O

    While you are having difficulty in printing a PDF file, you may try the  subsequent steps. If you are in a rush and would like to print a simple  document such as a letter, a form, or a calendar, you may print it as an  image. Next option is that you may need to update your printer driver   if the PDF does not print, the PDF prints as a blank page or with  unreadable text or if you get an error message when you print.  Sometimes, when you print a file that is on a thumb drive or a network,  the file gets damaged. Then you have to open the copy on your hard drive  and print again. At last, you can try printing the PDF using another  printer and check your printer connection too if the PDF does not get  printed. get more help to fix unable to printer PDF file hope this helps you.
    Good Luck!

  • Error generating a PDF file

    I’m working in a HTML project and I was willing to
    generate pdf’s with no problems. But I can’t do it,
    now.
    I get these messages in the error log window:
    Updating Table of Contents...
    Saving 'DRSEA.doc'...
    Generating 'DRSEA.pdf'...
    Failed the generate PDF file
    'C:\Robohelp\DRSEA\!SSL!\Printed_Documentation\DRSEA.pdf'...
    Failed to save 'DRSEA.doc'...
    Cleaning up temporary files...
    Internal error encountered, Failed to generate Printed
    Documentation.
    It does generates the word document. I tried to generate the
    pdf file using this word document but the PDF converter says:
    “Missing PDF makers files
    Do U want to run the installer in repair mode ? “
    I tried generating a pdf over another word file (not
    generated by robohelp) and the converter shows the same message.
    I tried generating a pdf on an excel file and it worked fine.
    What can be hapenning ?

    Hello,
    Have you recently upgraded to Vista?
    Having re-read your post, I had another thought. Have a look
    at this
    Tech
    Note .
    Brian

  • Does anyone know how i can view PDF files using Galaxy Note 2?

    Does anyone know how i can view PDF files using Galaxy Note 2?
    This is what i have been doing;
    I click on the file i wish to view (via a portal)
    this file goes to notification widget (i drag down screen)
    notification/message says download complete
    i click on notification/message
    nows it says complete action using (here i only have 2 icon options 1= DB Text Editor 2 = HTML Viewer)
    I have installed Adobe Reader.

    Can you confirm if the downloaded file is a pdf file, that is it ends with .pdf?

  • How to extract text from a PDF file using php?

    How to extract text from a PDF file using php?
    thanks
    fabio

    > Do you know of any other way this can be done?
    There are many ways. But this out of scope of this forum. You can try this forum: http://forum.planetpdf.com/

  • How to read pdf files using java.io package classes

    Dear All,
    I have a certain requirement that i should read and write PDF files at runtime. With normal java file IO reading is not working. Can any one suggest me how to proceed probably with sample code block
    Thanks in advance.

    hi I also have the pbm. to read pdf file using JAVA
    can any body help meWhy is it so difficult to read the thread you posted in? They say: java.io is pointless, use iText. So why don't you?
    or also I want to read a binary encoded data into
    ascii,
    can anybody give me a hint how to do it.Depends on what you mean with "binary encoding". ASCII's binary encoding, too, basically.

Maybe you are looking for