Acrobat Reader + Java

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default Acrobat Reader + Java

    I am trying to preview pdf documents using the Acrobat Interapplication Communication. This works with reader version 5 & 6, but not 7.

    Does anyone know why? or have an example where this works with version 7?

    thanks.
    kentgibson@yahoo.com@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Unable to print from Acrobat since Acrobat Reader update 7.02
      Since I have installed the Adobe Reader 7.02 update. I cannot print from Reader 7 or Acrobat Pro 6 but still can print from Reader 6. Error...
    2. Acrobat Pro/Reader 7 Batch enable commenting for Reader 7
      I have been searching for a good way other than opening and saving each file using Acrobat 7 Pro in order to enable commenting in Reader 7. Is there...
    3. Acrobat Professional V6 vs. Acrobat Reader V6 in Internet Explorer
      I have both Acrobat Professioanl v6 and Acrobat Reader v6 on my PC. When I view a PDF via Internet Explorer, Acrobat Professional is launched. I want...
    4. upgrade acrobat reader 5 to acrobat reader 6.0.1
      I have installed acrobat reader 6.0.1, so instead of upgrading acrobat reader 5, it installed fresh copy. now i have two acrobat reader. Does any one...
    5. How to uninstall Acrobat Reader 5 but retain with Acrobat Writer 5
      YOu can uninstall AR5 & Acrobat5, then reinstall Acrobat5, then install AR6. You should also be able to reinstall Acrobat5 after installing AR6....
  3. #2

    Default Re: Acrobat Reader + Java

    What interapplication communication interface are you using in the IAC
    Reference?

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

  4. #3

    Default Re: Acrobat Reader + Java

    I am trying to use OLE Automation.

    The method which worked in versions 5 & 6 is called "LoadFile" - on pg 244 of the guide.

    I am trying to view a pdf and hopefully programmitcally control the activeX component, like zooming it.

    I try to create a OleControlSite, but with the progID "AcroPDF.PDF" nothing works.

    With the prog ID "AcroExch.Document", I at least get a dialog popping up and after choosing a file it will embed the pdf into a dialog.

    But I cannot then do anything with the document, or load another one.

    Any ideas? I have tried getting help on java sites, and no one can help.

    Thanks.
    kentgibson@yahoo.com@adobeforums.com Guest

  5. #4

    Default Re: Acrobat Reader + Java

    I don't understand how it could have worked in earlier releases, at
    least not unchanged. AXAcroPDF is a new interface in Reader 7.
    Previous versions of Acrobat did not include this. There was the
    unsupported pdf.ocx, however. Are you trying to convert old code based
    on the reverse-engineered pdf.ocx?

    AcroExch is not a part of Reader, only Acrobat.

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

  6. #5

    Default Re: Acrobat Reader + Java

    hmm. I am sure it worked, here you can see a screen shot here:

    <http://www-128.ibm.com/developerworks/library/os-activex/>

    This is the code I am trying to get running for version 7, in that article the progId is "PDF.PdfCtrl.5".

    Odd that AcroExch.Document "almost" works, because I do not have acrobat installed, only reader.

    Plus I am not trying to directly use the pdc.ocx. I do not think that example was based on the on the reverse-engineered pdf.ocx, what do you think?
    kentgibson@yahoo.com@adobeforums.com Guest

  7. #6

    Default Re: Acrobat Reader + Java

    The article is absolutely using PDF.OCX. It has to be, because there
    is no other suitable OLE interface. I think it's somewhat
    irresponsible of the article not to make clear it's using an
    undocumented, unsupported interface not intended for programmers!

    I haven't worked with the control, but it may be worth starting from
    the top with the new documentation, rather than assuming you simply
    adapt the reverse engineered code. Not sure if the full SDK includes
    examples - anyone?

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

  8. #7

    Default Re: Acrobat Reader + Java

    <http://www.codeproject.com/miscctrl/acroview.asp>
    chicks@adobeforums.com Guest

  9. #8

    Default Re: Acrobat Reader + Java

    still no one with ideas? this must be possible.
    kentgibson@yahoo.com@adobeforums.com Guest

  10. #9

    Default Re: Acrobat Reader + Java

    What is possible is documented in the Acrobat SDK.

    Have you downloaded the SDK and read the necessary documentation?

    Leonard
    Leonard_Rosenthol@adobeforums.com Guest

  11. #10

    Default Re: Acrobat Reader + Java

    I have tried to download version 7 of the sdk, but you can't download it (at least for my machine), "Pending the release of the next Acrobat SDK, the Acrobat 7.0.5 SDK has been removed".

    I am holding out hope that in version 8 there might be a java example, but I kind of doubt it (and who knows when that will be available). I have never seen any type of java example for this type of thing from adobe. And after trawling the internet, and finding lots of people who are having this exact problem I am sort of losing hope. There are some vendors who make this possible, but I really would like to do this myself, but I need an idea on how to precede.
    kentgibson@yahoo.com@adobeforums.com Guest

  12. #11

    Default Re: Acrobat Reader + Java

    Let's take you by the hand:

    Can you open a PDF in your WebBrowser?
    If yes, which versions is comming up?

    br, Reinhard
    Reinhard_Franke@adobeforums.com Guest

  13. #12

    Default Re: Acrobat Reader + Java

    Thanks. I can open a pdf with a browser (version 7 of the reader) and I can also open a browser with java which opens a pdf fine. But I want to be able to embed the reader in an application, and hopefully do stuff like zoom programmatically.

    Let me briefly reiterate my requirements:

    * I need to be able to open a pdf with acrobat reader 7 with java and embed it and use the acrobat interapplication communication.

    any help would be grand.
    kentgibson@yahoo.com@adobeforums.com Guest

  14. #13

    Default Re: Acrobat Reader + Java

    If you can open in IE then following should work:

    $oPDF = ObjCreate("AcroPDF.PDF.1"); Create the Object
    $oPDF.src =("C:\Test.pdf"); Load a file

    That's not JAVA, but the command how I get it embedded. If that not works ask in a JAVA-Forum. You allways have to make sure, that no older version is already open.

    HTH, Reinhard
    Reinhard_Franke@adobeforums.com Guest

  15. #14

    Default Re: Acrobat Reader + Java

    As I replied on Nov 7, it's not only possible, but demonstrated with full source code here:

    <http://www.codeproject.com/miscctrl/acroview.asp>

    You'll need to figure out the details of calling it from Java. Using OLE controls from Java isn't exactly a widespread or recommended practice.
    chicks@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139