Starting PDF Viewer with file

Hi, I want use the PDF Viewer (CL_GUI_PDFVIEWER) to display a pdf file without having to open it manually.
The demo program SAP_PDF_VIEWER_DEMO works well. It opens the PDF Viewer in place, you can zoom and print the file. And you can disable buttons (we don't want the files to be saved and we don't want the user to display different files).
The problem is you have to select the file manually. If I user 'open_document' at the end of PBO to transmit the file while starting the program, the command is being ignored.
My question: Does anyone has a tip for me?
Thanks in advance yours Johannes

Hi
If you look with se24 in the class cl_gui_pdf_viewer and you look for method constructor. You will see this code:
method CONSTRUCTOR.
  data: clsid(80) type c.
--- if it is Win32 ... ---
  if activex = 'X'.
    clsid = 'PDF.PdfCtrl.1'.
- if it is PlatinGUI ...-
  elseif javabean = 'X'.
    exit.
--- if it WebGUI ---
  elseif www_active = 'X'.
    exit.
--- unknown GUI type
  else.
    exit.
  endif.
--- call the super-constructor ---
  call method super->constructor
    exporting
      clsid             = clsid
      shellstyle        = shellstyle
      parent            = parent
Put your self a break point and change the value of
    clsid = 'PDF.PdfCtrl.1'.
to
    clsid = 'PDF.PdfCtrl.5'.
if your are lucky it will work afterwards.
perhaps you also can try
    clsid = 'PDF.PdfCtrl.6'.
but I am not sure if this will help you. With 5 it was working on my PC this activeX control was existing. If version 6 ever existed, I dont know.
If the debugging works then make a copy and change it for real.
Regards

Similar Messages

  • ANN: 1/2-hr webinar (free), June 5 -- Enable and encourage user input in PDFs (viewed with Adobe Rea

    Enable and encourage user input in PDFs (viewed with Adobe Reader)
    with FrameMaker-to-Acrobat TimeSavers + Form Assistant
    Half-hour webinar (free; no fluff, no hype, no nonsense)
    Wednesday, June 5, starting 9am PDT
    Register at: https://www3.gotomeeting.com/register/157658438
    Enabling PDFs for various types of user input can strengthen the interaction between users and the content, and improve satisfaction due to greater user involvement/control. In addition, designated avenues for user input can contribute to documentation quality and provide outlet for frustration, for example by sending inputs regarding the documentation or the product directly from within the PDF.
    Techniques demonstrated in this webinar include features that are all embedded in PDFs that are viewed with the free Adobe Reader:
    • text fields where users can record data values and options
    • checkboxes to track progress
    • page marks and notes (optionally e-mailed)
    • embedded grading/feedback forms
    • storing of useful search queries within the PDF for future use
    Shlomo Perets
    MicroType, http://www.microtype.com
    FrameMaker/Acrobat/Captivate training & consulting • FM-to-Acrobat TimeSavers/Assistants

    https://crash-stats.mozilla.com/report/index/bp-0a0b872f-5127-4ee1-a355-ca3cb2120721
    https://crash-stats.mozilla.com/report/index/bp-9cd87dd7-205f-4844-9e6d-3ce262120721
    https://crash-stats.mozilla.com/report/index/bp-8c07c846-b2ed-4535-8db4-4ee072120720
    https://crash-stats.mozilla.com/report/index/bp-f29a89ed-f8b1-4a62-ba3e-983e22120720
    https://crash-stats.mozilla.com/report/index/bp-e16d2b91-0f7d-4e5a-9e25-255852120718
    https://crash-stats.mozilla.com/report/index/bp-1226c709-5f87-41c6-95d3-4310d2120718
    https://crash-stats.mozilla.com/report/index/bp-4de2a0da-dd36-4ec8-8e53-c42742120714
    https://crash-stats.mozilla.com/report/index/bp-e16d2b91-0f7d-4e5a-9e25-255852120718
    https://crash-stats.mozilla.com/report/index/bp-4de2a0da-dd36-4ec8-8e53-c42742120714
    https://crash-stats.mozilla.com/report/index/bp-eac1c5a5-2dce-4415-b645-07a1f2120714
    https://crash-stats.mozilla.com/report/index/bp-1ede5bd3-8c72-4362-8d79-4f29c2120714
    https://crash-stats.mozilla.com/report/index/bp-d4fd5dae-dacd-45f8-9549-2c3702120722
    https://crash-stats.mozilla.com/report/index/bp-ca510991-de29-44b3-be02-0255a2120722
    https://crash-stats.mozilla.com/report/index/bp-8600c221-3fd3-4eaa-a5af-a602b2120722
    With Hardware Accelaration in Flash turned off. Still crashing.

  • C# WINDOWS APP:  EMBED PDF VIEWER WITH FULL LIBRARY

    Here are my requirements:
    1) A PDF viewer that is embedded in a window in my windows app.
    2) I must be able to reference button_click events in the PDF from my windows app. (i.e. if i click a button in the PDF, the event occurs in my windows app.
    Pertaining to the above requirements:
    Here is what I've noticed so far. The Adobe Reader ActiveX works great at simply viewing PDF's and the buttons are shown too. However, I haven't found anything in the Reader library that allows me to reference the buttons in the PDF. This leaves the following questions.
    Possible Solutions: (need your help/recommendations)
    1) Can I use the Acrobat SDK to reference the document that is open inside my Adobe Reader ActiveX control? (If I can, then i can get a hold of my buttons and events). If I can do this, does anyone have any clue about the proper syntax? All of the the samples I've seen actually reference a document that acrobat opens, not the reader....
    2) Can I embed the Adobe Acrobat (not the reader) in my windows app in order to view the files? I haven't seen this done yet. Every example I've seen opens the acrobat in it's own window!!!
    3) Is there other software out there that offers both functionalities: 1) Embedded viewing window with 2) Full access to PDF library?
    Any help in this matter would be greatly appreciated, as I have searched High, Low, and In Between for a solution.
    Thanks,
    jpc

    Patrick Leckey and Walker81,
    So, according to both of you, it is possible.  I have messed around with the buttons a little bit in acrobat enough to know that you can make a button that on click will run a javascript.  The problem is that I do not know any javascript, which is why i was trying to access it only with C#.  However, I am now receptive of the idea of learning at least a little java to get around in adobe (it seems unavoidable).  Any examples or pointers as to how to do this would be greatly appreciated.
    So for clarification:  Is the following statement correct?  If I have an Adobe Reader Active X control which opens the PDF, it is impossible for me to also reference that opened PDF as an acrobat object, thereby getting access to all of it's objects.
    From what I understand:
    -  I can put in the button field of my "template button" to call a certian javascript that is stored in the PDF, and this javascript can send information to my C# windows application.
    - I can embed acrobat (not reader) into my C# application with the MenuItem that Walker81 mentioned. (btw, i'm not concerned about the extra cost.  I really just need something that works)
    This brings about a question though:  If I can embed acrobat in my Windows App, then what keeps me from accessing the button fields through that avenue?  (I think the adobe SDK has an example of fields being accessed - things like text boxes being filled in and junk).  So would it be possible to create a buttonclick_event of all of the buttons in the PDF at runtime through adobe's library by looping through all of the fields and declaring a buttonclick event???  I'll look into it, because being able to access a field and being able to make an event from one can be two different animals I guess...
    Thanks for the responses, and I will look up and mess around with the methods you described and try to make them work from my limited knowledge.  If anyone has any example code they'd like to share to get me started on this, it would be helpful.  I understand there's something called a document level function or something like that in adobe.  I'm assuming you're saying that the button would call this function, and that this function would reference my windows app.  I will look at this some more and try to follow up on here.  I can't imagine that i'm the only person trying to do this..

  • Issues with setting "Maked Reader the default PDF viewer" with Adobe Customization Wizard XI

    I am using the Adobe Customization Wizard XI. I have set the following options in the Adobe Customization Wizard.
    Personalization Options
    Enabled the checkbox for Suppress display of End User License Agreement (EULA)
    Installation Options
    Selected the radio button for Make Reader the default PDF viewer
    Run Installation: selected radio button Silently(No Interface)
    Security
    Enhanced Security Settings - Clicked drop down and set value to Disable
    Online Services and Features
    Checked Disable product updates
    Checkd In Adobe Reader, disable Help > Purchase Adobe Acrobat
    Checked Disable Product Improvement Program
    Checked Disable Viewing of PDF with Ads for Adobe PDF
    Checked Disable all Adobe online services based workflows and entry points.
    I have tried to deploy the MSI with MST via GPO and Command Line with no luck.  Every time i deploy via below methods, the same result occurs, all of the options are set correctly except the "Make Reader the default PDF viewer".  I know how to manually set this option via Windows or Adobe interfaces but i am looking to roll this out to the masses and would not want a bunch of service desk calls because a user clicks on an Adobe PDF file and it is not opening in Adobe Reader.
    GPO
    Create New Package Use AcroRead.msi
    Choose Advanced
    Deployment Options - Click Uninstall this application when it falls out of the scope of management.
    Modifications - Select Transform file located in the folder of MSI
    Command Line.
    Tried these options to try and apply "Make Reader the default PDF viewer"
    msiexec /i  "<path>\AcroRead.msi" TRANSFORMS="<path>\TransformFile.mst"
    msiexec /i  "<path>\AcroRead.msi" TRANSFORMS="<path>\TransformFile.mst" /qn
    msiexec /i "<path>\AcroRead.msi" IW_DEFAULT_VERB=Read
    msiexec /i  "<path>\AcroRead.msi" TRANSFORMS="<path>\TransformFile.mst" IW_DEFAULT_VERB=Read /qn
    Anyone know how to make this setting work with the Transform file, i sure would appreciate assistance on this issue.

    Instead of saving as a PDF thru Work do a Print ➙ PDF ➙ Save as PDF and it will be saved the first time with the Preview icon.

  • Saving as PDF - problem with file name

    Hello everybody,
    I have a little problem. I'm making a lot of similar document with InDesign so everytime I copy/paste the latest and then rename it from windows. But when I try to save (with a custom preset) the document as PDF, everytime on default InDesign gave the name of the original document, so I have to write the right name everytime. How can I change this? I want to have on default the file name I'm working on, not the original one.
    EXAMPLE
    I copy and paste "average.indd" and then I rename it as "joe.indd". I make some changes inside JOE, save it and then try to export as PDF. When the saving window appear, the program suggest "average.pdf" as name of the PDF I'm creating.
    Thanks for your support and excuse me if my english is not that good (not my language).
    Have a nice day!
    Dario

    Ah well, it is generally accepted that the most recent PDF-export file name "sticks" and when that's the case, there isn't anything you can do about it except type in the new name you want. However, I just tried it a second time (the first time before my first post), and here, I got it to work the way you want by doing what I originally advised...
    Start new file.
    Save As average.indd
    Export > PDF...file name defaults to average.pdf
    Back in InDesign, Save As joe.indd
    Export > PDF...file name defaults to joe.pdf
    What exactly did you try, and where did the result differ from what I saw?

  • Good pdf viewer with different functionalitites

    Hello folks,
    I am looking for a good pdf viewer (would be nice if it could support pdf editiing) to view same pdf document at the same time. Document viewer is good enough but when I want to view the same pdf file which is already open with Document viewer, I can not open the file with Document viewer again. Therefore I am looking for a good pdf viewer. I have installed pdfedit, but it seems like over kill for pdf viewing purpose. Which tools do you use?
    thanks!

    I think the PDF viewer built in to Mendeley supports highlighting, and it has a Linux native client (mendeleydesktop in AUR), though last I tried it, I wasn't very impressed.
    Archie_Enthusiasm wrote:
    is there any okular for gnome ?
    isn't it? Maybe I should be go with evince or epdfview or mupdf.... I think they should be fine for viewing purpose. any other pdf editing tools other than pdfedit but for linux OSs?
    What kind of editing do you need to do? There are a lot of apps for combing PDFs, adding pages, cropping them, etc. (PDFsam, PDFshuffler, PDFmod, jPDFtweak, PDFjam, pdftk with various GUIs, etc.) But if you mean actually editing the text (in which case it's far better generally to go back to the source file, if available), then there's not much beyond what has already been mentioned.
    There are some webapps though you could use with Linux, like PDFescape, PDFHammer, TouchPDF, etc. I don't have a lot of experience with them.
    In general, I think there are more and at least as good PDF tools for Linux than there are for Windows. The thing is, however, that they follow the Unix philosophy and hence focus on doing only one thing (and doing it well), so you need different programs for doing different things. I use mupdf or evince for viewing PDFs, pdflatex for creating PDFs, pdfsam or pdftk for splitting and combining them, jPDFtweak for changing metadata or bookmarks, BRISS for cropping them, ghostscript or calibre for converting them, etc. No one tool does it all, but all together, I'm perfectly content.
    Last edited by frabjous (2011-02-06 01:07:41)

  • Hyperlink in pdf created with File/Print command

    I have a document with hyperlinks and convert them to pdf using the File/Print command
    The hyperlinks become inactive in the pdf file
    Does anybody know how to keep the hyperlinks in the pdf?

    Try a different printer driver to see if this has anythign to do with the .ppd used by epson 2200, try even adoeb pdf.
    Reset your preferences.
    Cmd-Opt-Ctrl-Shift when restarting AI on a Mac  to reset to the defaults.

  • Create folder view with files and tasks

    Good day to you,
    we want to support our software development procces with Vibe. What we are doing is, we make changes to the source code and protocol corresponding things in certain files.
    We think in so called "releases" and every release consists of tasks and a list of changes. This list is held in an excel file, so I would like to create a folder view, which consists of tasks and files.
    So far I could create a custom folder view with attachments at the top and a task list at the bottom, based on the task family.
    The problem is, the attachment view as a standard folder view does not allow colleborative editing of attached files. You can only view and download attached files, but not open them via Office addin. Therefore you can not lock or version files, which is mandatory for collaborative work.
    I would like to mix the file folder view with it's possibilities with a task folder view.
    Any ideas?
    Warm regards
    bitschnau

    There's no out of the box way to achieve what you're looking for.
    Two solutions:
    1. Your users would need to open the entry first and then click on the "edit this file" link.
    2. You could code your own folder view or landing page element and build what you need.
    HTH
    Cheers
    Erik
    PS: Feel free to contact me offlist if you need professional support.

  • PDF Viewer - remove files

    Thought is was the file that caused the failures downloaded lost of files, as soon as I open them and try to zoom in - failure
    Question is how do I remove pdf files from viewer? 
    Post relates to: Pre p100ueu (O2)

    I agree that not being able to delete documents "on the fly" is a little (maybe a lot!) clunky. Hopefully this ability (and a better PDF viewer) will be included in an update soon.
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • PDF viewer with selection support?

    I need to copy and paste some text strings from PDF document.
    To my suprise - PDF viewers generaly don't support selecting text.
    For example in epdfview and in gv I can't find way to select text with mouse.
    In xpdf it is possible, but it isn't very natural (try it yourself).
    Are there any other good PDF viewers with selection support?
    Or do you know how to enable it in epdfview?

    when you create a PDF you can deny copy, printing and other stuff. maybe the pdf document has copy text deny and you cannot select any text

  • Cannot create 'download' page for inline PDF viewing with IE

    Description of Problem:
    Typically, when you want to transfer a file to the client via code (cuz the
    file is in a db, for example), you create a page that will change the
    response headers and then spit out the file for them to download.
    This works, however something with the response headers make it so IE does
    not display a PDF if the 'Display PDF in browser' is turned on in the
    Acrobat Reader. The page loads, but is blank.
    code:
    response.setContentType("application/pdf"); //this works well
    response.setHeader("Content-disposition","inline; filename=" +"report.pdf" );
    response.setContentType("application/pdf;charset=GB2312"); // can't work
    response.setHeader("Content-disposition","inline; filename=" +"report.pdf" );
    when response header containt national char
    must set "useResponseCTForHeaders = true" in sun-web.xml and must use setContentType charset =XXX
    Actual Results:
    A blank page is shown
    Expected Results:
    The PDF is shown in the browser using the acrobat reader plugin.
    How often does this happen?
    Every time

    hi kglad
    thanks for the help im almost there but still not getting it
    so currently my code is set up for an action over a button
    using
    on (release) {
    getURL("www.mysite.com/my.mp3","_blank");
    so do I keep the on(release and then add in the on (release)
    then add in which part of the filereference class??
    import flash.net.FileReference;
    var listener:Object = new Object();
    listener.onSelect = function(file:FileReference):Void {
    trace("onSelect: " + file.name);
    listener.onCancel = function(file:FileReference):Void {
    trace("onCancel");
    listener.onOpen = function(file:FileReference):Void {
    trace("onOpen: " + file.name);
    listener.onProgress = function(file:FileReference,
    bytesLoaded:Number, bytesTotal:Number):Void {
    trace("onProgress with bytesLoaded: " + bytesLoaded + "
    bytesTotal: " + bytesTotal);
    listener.onComplete = function(file:FileReference):Void {
    trace("onComplete: " + file.name);
    listener.onIOError = function(file:FileReference):Void {
    trace("onIOError: " + file.name);
    thanks a lot for your help!
    var fileRef:FileReference = new FileReference();
    fileRef.addListener(listener);
    var url:String = "
    http://www.macromedia.com/platform/whitepapers/platform_overview.pdf";
    if(!fileRef.download(url, "FlashPlatform.pdf")) {
    trace("dialog box failed to open.");
    }

  • PDF conversion with windows 2000 not working

    Hello all, I have a BSP application that is up and running.  When I print with an XP machine, I have no problems.  When I print with a windows 2000 machine, I am looping and never getting to the PDF open screen.  It just keeps looping but if I try from a XP machine, everything works.
    Any help would be appreciated.  i have included some of the code.
    * Conversion of output format OTF into PDF format
    * now convert the final document (OTF format) into PDF format
      call function 'CONVERT_OTF'
           exporting
             format                      = 'PDF'
    *         MAX_LINEWIDTH               = 132
    *        ARCHIVE_INDEX               = ' '
    *        COPYNUMBER                  = 0
           importing
             bin_filesize                = l_pdf_len
             bin_file                    = l_pdf_xstring       " binary file
           tables
             otf                         = ls_output_data-otfdata
             lines                       = lt_lines
           exceptions
             err_max_linewidth           = 1
             err_format                  = 2
             err_conv_not_possible       = 3
             err_bad_otf                 = 4
             others                      = 5
      if sy-subrc <> 0.
    *   error handling
    *    message id sy-msgid type sy-msgty number sy-msgno
    *            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    * Fill HTTP request
      response->set_header_field( name  = 'content-type'
                                  value = 'application/pdf' ).
    * response->delete_header_field( name = 'pragma' ).
    * response->delete_header_field( name = 'expires' ).
    * response->delete_header_field( name = 'cache-control' ).
    * some Browsers have caching problems when loading PDF format
    response->set_header_field(
                        name  = 'cache-control'
                        value = 'max-age=0' ).
    * start PDF viewer either in the Browser or as a separate window
      if pdf_in_browser is initial.
         response->set_header_field(
                            name  = 'content-disposition'
                            value = 'attachment; filename=BenConf.pdf' ).
      endif.
    * finally display PDF format in Browser
      l_pdf_len = xstrlen( l_pdf_xstring ).
      response->set_data( data   = l_pdf_xstring
                          length = l_pdf_len ).
      navigation->response_complete( ).

    You must remove all the no-cache headers and definitely disable GZIP compression for PDF files.
    Look at <a href="https://wiki.sdn.sap.com/wiki/display/BSP">BSP Wiki</a>:
    Handling Binary Data
    PDF

  • Windows Application - PDF Viewer

    Hi,
    We are using windows application PDF viewer with Acrobat API. The pdf document is loading correctly without issues but the Tool menu is not displayed.
    How to include tool menu in wondows form (PDF Viewer).

    There is no in-box PDF API on Windows Phone 8.1.
    The typical approach is to launch the pdf file into the default PDF viewer app. If you want to display it inside your app you'll need to either find a 3rd party component or write your own.

  • Hyperion FR report PDF view

    Hello:
    I created a large P&L report with Financial Report Studio. The report views perfectly with the web browser. However, when I click "Save to PDF" icon in Hyperion workspace; and then open the saved PDF file, the report looks really funny. Some lines overlapped each other. I wonder how I can change the setting to save the FR report in proper PDF format.
    Thank you in advance for any answers.

    Hi,
    You can look into the page-setup options to format the PDF view.
    File->Page Setup.. There you can set the Page, Margins and Workspace area to format the PDF view of your report..
    Hope this will help..
    Thanks,
    Sourabh

  • Figures show up pixelated in presentation viewed with Adobe reader

    I am working on a presentation which I am making in beamer (latex). Since I am including animations and hyperlinks to sounds, I am using Adobe reader 9 for unix on Lubuntu. Everything is working fine except for one strange thing:
    - The fonts and labels on the figures I am using appear extremely pixelated in the presentation pdf (viewed with Adobe reader) even though if I open them individually, they look fine.
    - If I open the presentation pdf with evince, there is no such problem and the figures look fine. But since animations dont show in evince, I have to use Adobe reader
    Apparently this is an Adobe reader problem. I tried meddling with the settings a bit (pixels per inch, smoothen lines...) but with no success. I have no idea why this is happening, but it is quite terrible for me.

    As a follow to the above, the problem was related to a file transfer.  The PDFs in question were being transfered from a Unix platform to a Windows Server.  The transfer was defaulting to ASCII or Text and not binary.  Apparently this was never an issue with older versions of Adobe Reader.  Once the transfer was switched to binary, Reader X was able to view the files with no missing pages.  Something was being stripped from the file that Reader X just didn't like.

Maybe you are looking for