Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Adobe reader

Explorer ,
Nov 30, 2016 Nov 30, 2016

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?

TOPICS
Acrobat SDK and JavaScript
592
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 30, 2016 Nov 30, 2016

What kind of scripts did you add? What do they do, exactly?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 30, 2016 Nov 30, 2016

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;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 30, 2016 Nov 30, 2016

What version of Reader do you have?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 01, 2016 Dec 01, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 01, 2016 Dec 01, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 01, 2016 Dec 01, 2016
LATEST

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


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 01, 2016 Dec 01, 2016

Acrobat Reader can only delete spawned pages.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines