PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)
Moderators:PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
var field = this.getField("Field_Name");
fr = field.rect;
var annot = this.addAnnot({
page: field.page,
type: "Square",
name: field.name,
rect: fr
});
Everything is fine until there are two or more fields with the same name in the PDF and I want to place annotations on each one.
Base on "JavaScript for Acrobat API Reference" I should call field like this: this.getField("Field_Name.1"), this.getField("Field_Name.2"). Unfortunately it doesn't work.
Please tell me how can I do it. There is test.pdf in attachment containing fields with the same names which I'm using for tests.
Sincerely Nebulo
You do not have the required permissions to view the files attached to this post.
Are you using an SDK? If so you have posted your question in the wrong forum. If you are just running javascript in the enduser product, please let me know and I will ask the appropriate person to answer your question, thanks.
Chris
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.
Base on "JavaScript for Acrobat API Reference" I should call field like this: this.getField("Field_Name.1"), this.getField("Field_Name.2"). Unfortunately it doesn't work.
Fixed
PDF-XChange Co Ltd. (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.