Cl_gui_pdfviewer, PDF, read pdf, cl_gui_htmlviewer

hi,
i have a strange issue...i have a URL which is a pdf basically. i need to get the contents of that pdf and store it on my application server for further purposes. it's just a URL over the internet or intranet.
i can use the CL_GUI_PDFVIEWER to view the pdf file in a container or use the CL_GUI_HTMLVIEWER to view it online.. .i have seen that from the forums on hwo to do that... but i need to not view it online, but to only store the contents on my application server and email the pdf to an external email. i have a program which runs in the background and I actually don't want to view a pdf while i am in the program. can we extract the contents of the pdf using the CL_GUI_PDFVIEWER anyway?
i tried to call the pdfview-> open_document and then subsequently pdfviewer->save_document to try to save the document onto an application server directory in the background, but that doesn't work.....so looking for ideas!

hi,
i have a strange issue...i have a URL which is a pdf basically. i need to get the contents of that pdf and store it on my application server for further purposes. it's just a URL over the internet or intranet.
i can use the CL_GUI_PDFVIEWER to view the pdf file in a container or use the CL_GUI_HTMLVIEWER to view it online.. .i have seen that from the forums on hwo to do that... but i need to not view it online, but to only store the contents on my application server and email the pdf to an external email. i have a program which runs in the background and I actually don't want to view a pdf while i am in the program. can we extract the contents of the pdf using the CL_GUI_PDFVIEWER anyway?
i tried to call the pdfview-> open_document and then subsequently pdfviewer->save_document to try to save the document onto an application server directory in the background, but that doesn't work.....so looking for ideas!

Similar Messages

  • CL_GUI_PDFVIEWER and files from the App server

    Hi,
    I would liek to use the class CL_GUI_PDFVIEWER  to read files from the app server (transaction AL11) and then to present them.
    it is easy to use the local machine files.
    how can I use the method open_document with a file from there?
    Thanks,
    Itay

    Thanks for the help.
    I tried what you suggested but I get a dump for some reason.
    Can you help?
    This is the dump:
    Exception condition "SYSTEM_FAILURE" raised.
         Program                                      SAPLOLEA                    
         Include                                      LOLEAU10                    
         Row                                          358                         
         Module type                                  (FUNCTION)                  
         Module Name                                  AC_FLUSH_CALL_INTERNAL      
    This is the program:
    REPORT zpdftest .
    DATA: g_html_viewer     TYPE REF TO cl_gui_html_viewer,
          my_main_container TYPE REF TO cl_gui_custom_container,
          entry1(100) TYPE c,
          entry2(100) TYPE c.
    DATA: okcode TYPE sy-ucomm,
          gt_pdf TYPE STANDARD TABLE OF string,
          wa_pdf TYPE string,
          g_url(2048)  TYPE c
    START-OF-SELECTION.
      SET SCREEN 100.
    *&      Module  pbo_0100  OUTPUT
    MODULE pbo_0100 OUTPUT.
      SET PF-STATUS 'STATUS100'.
      SET TITLEBAR  'TITLE100'.
      IF my_main_container IS INITIAL.
        CREATE OBJECT my_main_container
          EXPORTING
            container_name = 'CUSTOM_CNTL'
          EXCEPTIONS
            cntl_error     = 1
            OTHERS         = 2.
        CHECK sy-subrc IS INITIAL.
        CREATE OBJECT g_html_viewer
          EXPORTING
            parent             = my_main_container
          EXCEPTIONS
            cntl_error         = 1
            cntl_install_error = 2
            dp_install_error   = 3
            dp_error           = 4
            OTHERS             = 5
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        DATA: lv_filename TYPE rlgrap-filename.
        lv_filename = '/PBMGUS/UXA/ABAP/TEST.PDF'.
        OPEN DATASET lv_filename FOR INPUT
                     IN BINARY MODE
        WHILE sy-subrc IS INITIAL.
          READ DATASET  lv_filename  INTO wa_pdf.
          IF NOT sy-subrc IS INITIAL.
            EXIT.
          ENDIF.
          APPEND wa_pdf TO gt_pdf.
        ENDWHILE.
        CLOSE DATASET lv_filename.
        CALL METHOD g_html_viewer->load_data
          EXPORTING
            type                 = 'application'
            subtype              = 'pdf'
          IMPORTING
            assigned_url         = g_url
          CHANGING
            data_table           = gt_pdf
          EXCEPTIONS
            dp_invalid_parameter = 1
            dp_error_general     = 2
            cntl_error           = 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.
        CALL METHOD g_html_viewer->show_url
          EXPORTING
            url                    = g_url
          EXCEPTIONS
            cntl_error             = 1
            cnht_error_not_allowed = 2
            cnht_error_parameter   = 3
            dp_error_general       = 4
            OTHERS                 = 5
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    ENDMODULE.                 " pbo_0100  OUTPUT
    *&      Module  pai_0100  INPUT
    MODULE pai_0100 INPUT.
      CASE okcode.
        WHEN 'BACK'.
          LEAVE to screen 0.
        WHEN OTHERS.
          CALL METHOD cl_gui_cfw=>dispatch.
      ENDCASE.
      CLEAR okcode.
    ENDMODULE.                 " pai_0100  INPUT

  • PDF - read, show and print

    I am needing to read an archive pdf and to soon print to follow. I tried to use the classroom to cl_gui_pdfviewer, however error at the moment is occurring to show the read archive. I tried to also use the program demon of sap SAP_PDF_VIEWER_DEMO, and it it presents problem the same. If somebody will have some tip or suggestion, I am thankful.
    Alex

    Hi
    If you need to open and show a pdf file you can use the method EXECUTE of class CL_GUI_FRONTEND_SERVICES.
    CALL METHOD cl_gui_frontend_services=>execute
       EXPORTING
         document               = 'MY_FILE.pdf'
       APPLICATION            =
       PARAMETER              =
         default_directory      = path
       MAXIMIZED              =
       MINIMIZED              =
       SYNCHRONOUS            =
       OPERATION              = 'OPEN'
      EXCEPTIONS
        cntl_error             = 1
        error_no_gui           = 2
        bad_parameter          = 3
        file_not_found         = 4
        path_not_found         = 5
        file_extension_unknown = 6
        error_execute_failed   = 7
        synchronous_failed     = 8
        not_supported_by_gui   = 9
        OTHERS                 = 10
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Max

  • I installed windows 7 recently and also Adobre reader XI, and now I cannot open any of my previously created pdfs. Every time I get the message: Error opening the file. Access denied. What is going on?

    Recently I had to install windows 7 in my notebook because XP doesn't have more support. Before installing I backed up all my files to my external HD. Now that I instaleed windows 7 and also installed Acrobat Reader XI, I just cannot open any of my pdf files created prior to installing windows 7.
    Looking for help online, I found the solution of security and giving me access as an administrator to all my files, but it still keeps the same...
    Can some one please help me out?? I really need to work on many of this files ASAP.
    Thank you all in advance for you attention,
    Best,
    Henrique

    Can you start Adobe Reader?

  • How to read,dispaly and open pdf files

    Hi, I am very new to Java butI have VB6.0 background. My current requirement is to read pdf file names from a directory, then
    show them on a form in a list (with their path in background pointing to the actual pdf files) and then once a user clicks any
    file name, open that file on the form.
    For example:
    My pdf files are in a directory as following:
    C:\myreports\user1\
    report1.pdf
    report2.pdf
    report3.pdf
    C:\myreports\user2\
    report1.pdf
    report5.pdf
    The output on the form should look like this if user1 has logged in the system. Side note: I am able to get userid of the logged in person in a variable.
    My Reports:
    . Report 1
    . Report 2
    . Report 3
    When a user clicks Report 1, it opens on the same form in pdf format.
    Thanks
    S.yhong

    For the first part (Listing thepdf files in the directory) you can use the java.lang.File class.
    File f = new File("path to your directory");
    File files[] = f.listFiles();
    then process the files array to find the files with extenction pdf
    You can also use a file filter object and make the listFiles method return only the pdf files.
    Please read the documentation about the File class for more info about it.
    */ For the displaying the pdf part is it good enough if you load the accrobat reader and with it. In that case you can do that using the Runtime.exec
    Also you can search for free java based pdf viewers I am sure there must be meny.
    And also the JTextPane might support pdf but I am not sure about it.
    EDIT:
    Just to say that this is my 1000th post :)
    Message was edited by:
    LRMK

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • Email pdf to iPad - is there a way to open multiple pdfs at one time without having to hold each individually and open with adobe reader?

    I have a large number of pdf files to send to an iPad and it is taking forever to hold down each one and then choose to open with adobe reader.  Just wondering if there is a way to select all from the email to do the same action?

    Not that i know of but an alternate would be to use something like dropbox instead of mail. Their app works very well.

  • A pdf document created in cs5 cannot be printed in duplex on a pc without cs5 or adobe reader pro

    Hi!
    there is a "normal" cs5 created pdf document.
    the installed cs5  pc -> i can print in duplex on every printer, without cs5 installed duplex printing not possible.
    I am searching for a solution to print the pdf document in duplex mode on every printer, but only with the latest freeware version adobe xi 11.0.3.
    (If i install adobe cs4 on a pc it is possible to print the document in duplex mode on a hp3525 printer, but duplex is not possible on a ricoh printer for example mpc5502.)
    I cant upload the file, because its bigger than 2 mb. (5mb)
    Is there anybody out there for help.
    If you need the file, i´ll send 2 u.
    thx

    Yep, it definitely is a complicated workflow... But I'm not really sure of any other way to get from the 34" wide pattern to the home-sewing version which is split into pages and has alignment marks and whatnot. I'm very much an amateur that has figured it out as I went
    I went through the page in the photo pretty thoroughly with the layer panel and I couldn't find any mystery lines... But I did find something interesting; when I click on any of the pattern lines, it shows the whole line of the pattern piece, which extends well past the edge of the artboard. So when I'm printing the poster-sized PDF to 7.5x10 pages, it's keeping all the anchor points of a line even if only a small piece of that is on the actual page.
    Does this help? I've included the page in the photo as well http://www.putlocker.com/file/DADB4759DBB860D8
    Thanks again to everyone!
    Also, should I be keeping all the files I'm editing as .ai files and then only exporting to PDF for the very final product? I was doing that at first, but then using .pdf for the whole process didn't seem to make any difference.

  • I can no longer read my bank statements. I believe they are using a PDF to display this information.

    I can no longer read my bank statements. I believe they are using a PDF to display this information. If I go to chrome it will open the bank statements but Firefox no longer open these flies. Why??????

    It's very unusual to get no results for PDF in the Application preferences list. It's possible that the file which stores those preferences might have become corrupted. Perhaps it would be best to rename or delete the file and let Firefox re-create it.
    Here's how:
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > "Show Folder" button
    Switch back to Firefox and Exit
    Pause while Firefox finishes its cleanup, then rename '''mimeTypes.rdf''' to something like mimeTypes.old
    Restart Firefox. After things setting down, check the Application preferences again to see whether PDF is listed and then set the drop-down on the right side to the desired action.
    orange Firefox button or classic Tools menu > Options > Applications
    Does that work any better?

  • When I sign in to the Adobe Reader XI (which is the only option that I have to open a pdf document, I will sign in to the Adobe ID sign-in page. After I do this, the "Convert To" box goes "gray" and I am unable to convert the document I have selected.  It

    When I sign in to the Adobe Reader XI (which is the only option that I have to open a pdf document, I will sign in to the Adobe ID sign-in page. After I do this, the "Convert To" box goes "gray" and I am unable to convert the document I have selected.  It was working great for the first week that I used it, but now it doesn't give me the converting option.  I am very frustrated as I have done nothing to change anything, and I was thinking this was so great...now I am just pulling out my hair and do not have the option of calling anyone since no phone numbers are listed. I am VERY busy and do not have time to sit and wait over a half an hour to "chat", which I tried to do yesterday.  All I want to do is very simply, convert pdfs to Word.  I have paid for this and am not getting any help. I am not very savvy when it comes to Adobe this program and Adobe that program...I feel I am being scammed as I do not get simple answers for something that appeared was going to be simple. You can't even call customer service to talk to someone live to help walk you through. 

    Hello Kathie,
    Sorry for the inconvenience that has caused to you.
    Please let me know if you have tried converting any other PDF to word with Reader.
    Alos, please sign up at "https://cloud.acrobat.com/" using your Adobe ID credentials. Click on 'ExportPDF' tab and upload the PDF that you want to convert to Word.
    Let me know if this converts fine.
    Hope to hear from you.
    regards,
    Anubha

  • Acrobat won't save as a Reader Enabled PDF File

    Hello Everyone,
    I'm having troubles with creating an editable PDF.  What my goal is for this document I'm creating is that when I send this doc to others they can fill in their name and be able to import their logo into this document.  Because you can't create an image field, my work around is creating a signature field for where they can place their logo.  Anyhow, my problem is that as soon as I create the signature field in Acrobat, I cannot save it as a Reader Extended PDF, because all of the options are greyed out.  I've tried changing some of the security settings to allow for this, but its not working.  I just want someone to be able to open Adobe Reader and be able to use this signature box.  If there is anyone that can help I would really appreciate it.
    All the best!
    m2b

    Hi m2b,
    Do you sign the document before extending the features? If you do then make sure "Lock the Document after signing" checkbox is not checked. Try this:
    Clear all signature fields.
    Click on the field that you want to sign
    "Sign Document" window will appear
    In the left bottom corner this check box will appear.
    Uncheck it.
    ~Sandeep V.

  • Establishment of a secure "sign" ID in Adobe Acrobat 9.5.3 prevents reading PDFs in Firefox 18.0.2 under windows XP, sp3.

    Sign ID installed, could no longer read PDFs in Firefox. Deleted sign ID in Acrobat, can now read PDFs in Firefox. What gives?

    I think, but I'm not sure because the forum database is a bit glitchy today, that your question was answered in this thread: [https://support.mozilla.org/en-US/questions/950806 error message: this adobe acrobat/reader canot be used to view PDF files in a browser].

  • Unable to edit the forms in Adobe Acrobat 9 Pro and adobe pdf reader.

    Hai ,
        i am unable to edit pdf forms . on clicking on the form text field error message comes as "font capture" message heading and content as
    "C:\Windows\system32/ATMLIB.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support."
    if pressed ok . aplication get closed
    i reinstalled all aplication with old versions but sill have the same error .please give  a solution . thank you.

    thank you for the suggestion, but I do not have a "Send Email" or "Submit" button available in my version. I have "Attach to email" option which automatically opens a new message in MS outlook (which I did not set up, it just started doing so automatically) without any further dialogue boxes or options.
    Also, this is only for regular PDF files, not forms.

  • Saving a .pdf Created in Flare9 as Reader Extended PDF

    When I first installed Adobe Acrobat X Pro and built .pdfs from Flare, I was able to save the .pdf with the "Reader Extended PDF" function. Now, that capability is no longer available and in order to access this feature I must save the .pdf and open X Pro, open the saved document and save, again, as X Pro. However, the actual commenting feature seems to be "hosed," and, in my capacity as a technical writer, this has gotten a bit frustrating. Is there something in the properties of X Pro that I need to reset? Thank you.

    Not sure I understand the isssue. How were you building PDF files from Flare and getting a "Reader Extended PDF"?  Was this a menu or option in Flare?  For Acrobat it's always been either Save as [Extended Option], Send for Shared Review, or LiveCycle Reader Extension Server to get an Extended PDF file.  Also, if your users have Adobe Reader XI, they can comment with Sticky Notes and Highlighters by default now.

  • Why can I not highlight single words in a pdf document with Adobe Reader for Android?

    I, like other users I have seen, am unable to highlight single words or phrases in pdf files.  I am using a Galaxy Note 10.1 tablet.

    Hi,
    Welcome to Adobe forums.
    Please see : http://helpx.adobe.com/acrobat/kb/print-comments-acrobat-reader.html
    I hope this will help you.
    Please let me know, if you need any more help on this.
    ~ Aditya

Maybe you are looking for

  • Trouble compiling jndi examples in Java Studio

    I am having difficulty compiling the jndi example below. I included the errors below the code. Any ideas? import javax.naming.*; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.naming

  • Sort order of photos on iPhone messed up when photos stored on a NAS

    Sorting iPhone photos stored on a netfear readyNAS Duo under windows I have a set of photos taken with another camera which I sync to my iPhone 3 GS.  Previously I stored the photos on my windows pc and after syncing they were sorted on my iPhone  al

  • "All choices" lists not all values of a field

    I've encoutered a problem. "All Choices" in Answers filters doesn't list all values of a field (I have 290 distinct values, but there are only 14 pages in "All Choices" - that is, only 140 values out of 290) Some often values don't present in the lis

  • Web page date/time

    Hi Can anyone help me? I want to disply the real date & time (I'm based in London) on my website? If I display it on my site what will somebody see if they are viewing my page in the states? Will they see London time or their local time? How do I dis

  • JPopupMenu behavior in an applet

    Hi all, When I click on an applet a JPopupMenu appears. The trouble is when I don't want to click on a JMenuItem : if I just want to return to the web page content by clicking on it the JPopupMenu doesn't hide. A solution is to click in an other area