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
You might want to look into the FormRouter (formrouter.com/pdf/readerextensions.htm) Reader Extensions service to enable individual documents.