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

internal attachment

swt__100
Registered: Jun 12 2007
Posts: 6

i want to open an attachment which is on the internal pdf.
i`v tried
app.openDoc("bass 8kHz 8bit.wav", this);
and
this.openDataObject("bass 8kHz 8bit.wav");
they all doesn't work. is there any way to use a internal attachment in pdf.

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
this.openDataObject is only for PDF files. Use:

this.getDataObjectContents() to get the file's byte level data.

Use "this.dataObjects" array to get the name of the attachment.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script