set button to export pages

Avatar

Avatar

tyj00123

Avatar

tyj00123

tyj00123

21-02-2016

Hi there, wondering if it is possible to set up a button in LiveCycle which will export only a certain range of pages from the pdf, without the user having to see any sort of dialog box except the save/name their file dialog box?

i.e. was thinking of using the Print to pdf option but the user would have to choose pdf from the print dialogue box and all a bit too hard for them.

Thanks..

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

radzmar

MVP

Avatar

radzmar

MVP

radzmar
MVP

23-02-2016

You can use Acrobat JavaScript API methods to print certain pages.

This allows you to set up a print range for example, so the user won't have to do this.


var pp = event.target.getPrintParams();


pp.interactive = pp.constants.interactionLevel.full; pp.printRange=[[1,3], [4,10], [12,19]];


event.target.print(pp);


More about the API under: Acrobat DC SDK Documentation