These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Open attached document

stipe.pavicic
Registered: Apr 11 2007
Posts: 9

I have one PDF and another attached into the first one.
How to open this attached document??
I've tried with app.openDoc("registrationForm.pdf", this);
but it does not work... :-(
any ideas?

I am a Consultant at HSM informatika, Croatia. I am an Adobe Certified Expert.

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You will have to use the Data Object to be able to open a PDF attachment.

See Open Attachment via button and javascript , http://forum.planetpdf.com/webboard/wbpx.dll/read?146886,34 , for more information. It should be noted that only PDF files that are attached to a PDF can be opened by JavaScript and this is available to version 7 and above.

George Kaiser

Shadow
Registered: Sep 13 2007
Posts: 12
I have the same problem, and the link won´t help me.

With: this.importDataObject("test");
I attach my pdf file.

And then the attachments should open with a menu:

doku = app.popUpMenu("Plan_1", "Plan_2", "Plan_3");

if (doku == "Plan_1")
{
this.openDataObject("Unbenanntes Objekt");
}

But it won´t open. Why?
"Hidden" is "true", but can not set "false".
Is there no other possibility to open an attachment, then "Go to a page view"?