Copy link to clipboard
Copied
Hi
I am currently using Adobe Acrobat XI. So, which version of Adobe reader, I have to use.
In my accounting form, I have included many javascripts functions and which is working fine in adobe acrobat but in reader, it's not working and my end client is going to use that form in adobe reader and they do not have acrobat application.
I think the reader version will be the problem.
Can anyone suggest me?
Copy link to clipboard
Copied
What kind of scripts did you add? What do they do, exactly?
Copy link to clipboard
Copied
Inserting a new page and deleting the current page using "Overlay" function and the scripts are given below.
var oField = this.getField("Checkbox1);
if(oField.value =="Check") {
var a = this.getTemplate("PageOne");
a.spawn({
nPage: this.pageNum+1,
bRename: false,
bOverlay: false
})
this.deletePages(this.pageNum);
} else {
var b = this.getTemplate("PageZero");
b.spawn ({
nPage: this.pageNum+1,
bRename: false,
bOverlay: false
});
this.deletePages(this.pageNum)
}
pageNum = this.pageNum+1;
Copy link to clipboard
Copied
What version of Reader do you have?
Copy link to clipboard
Copied
You need to check the Acrobat JavaScript API reference to verify that a method like spwan is available to Reader and if any special rights need to be applied to the PDF. Note the "F" in the column for the spawn method. This means the PDF when opened by Reader needs specilal extended form rights. This also applies to deletePages
Copy link to clipboard
Copied
The spawn method is available in Reader XI or higher without any special rights. Also, the deletePages method can be used in Reader XI or higher, but only on spawned pages, as mentioned above.
Copy link to clipboard
Copied
The spawn method is available in Reader XI or higher without any special rights
Yes, but beware: enabling Reader-Extended rights for the PDF file prevent the spawn method to works in Reader XI and DC
Copy link to clipboard
Copied
Acrobat Reader can only delete spawned pages.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now