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

Adding a file as an annotation

medi
Registered: Jun 17 2009
Posts: 12
Answered

Hello!

I have to add a file-annotation for a specific pdf-Form (not lcd).

I tried modified code of the documentation, for testing in the console-window:

this.addAnnot({
page: this.pageNum,
type: "FileAttachment",
});

The icon was created, but there was no dialog to select the filename to be attached.

What I need, is to let the user attach a file (for example an image-file) on a reader-enabled pdf-form.

How could I do this?

I also tried to use the menues, but by using the button-form-field, there is no menue-command to do this.

I also tried this js-code:

app.execMenuItem(Annots:ImportAnnotsFromFile);

but it did not work either, without any remark in the js-console-window...

Any idea, what to do???

Thanks so far!

Dieter Metk

My Product Information:
Acrobat Pro Extended 8.1.7, Windows
George_Johnson
Online
Expert
Registered: Jul 6 2008
Posts: 1876
Reader cannot add file attachments, either through the Attachments panel, the "Attach a file as a comment" commenting tool, or JavaScript, unless the document has been extended with LiveCycle Reader Extension to allow embedded files. Acrobat is not able to apply this usage right as it can others such as commenting and form saving.

You might want to look into the FormRouter (formrouter.com/pdf/readerextensions.htm) Reader Extensions service to enable individual documents.