Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Try to open Adobe Acrobat via OLE inside a Java(SWT)-Application

New Here ,
Apr 13, 2016 Apr 13, 2016

I would like to open a PDF File inside an existing Java(SWT)-Application. The PDF should not opened in an external frame. I tried via the OLE interface but without success.

clientSite = new OleControlSite(frame, SWT.NONE, "AcroExch.App", fileName);
automation
= new OleAutomation(clientSite);
clientSite
.doVerb(OLE.OLEIVERB_OPEN);



At the moment i get an exception like: Failed to create Ole Client. result = -2147221164

TOPICS
Acrobat SDK and JavaScript
2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 16, 2016 Apr 16, 2016

Hi,

I don't know JAVA but you could use the IE Interface and then navigate to the PDF file.

Pseudocode:

$Obj = ObjCreate("Shell.Explorer.2")

$Obj.Navigate('D:\Test.pdf')

HTH, Reinhard

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 28, 2016 Apr 28, 2016

Thanks, but i need a solution without using the IE

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 28, 2016 Apr 28, 2016

Let's just check the basics. Do you have Acrobat PRO installed? What version?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 28, 2016 Apr 28, 2016

Also I have seen. I see no evidence in the Acrobat SDK that this DoVerb is supported. Where do you see it?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 04, 2016 May 04, 2016

i am using adobe acrobat dc

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 04, 2016 May 04, 2016
LATEST

I aked if you are using Acrobat Pro. Please give the FULL product name you are using. Possibilities:

Acrobat Pro DC

Acrobat Standard DC

Acrobat Reader DC

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 28, 2016 Apr 28, 2016

Hi,

in your GUI you could use the web interface. Something like:

$oReader = ObjCreate("AcroPDF.PDF.1")
$oReader
.Load=("D:\Test.pdf")

No IE needed for that.

HTH, Reinhard

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 04, 2016 May 04, 2016

Sorry, but i need a solution without using the internet

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines