Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

set button to export pages

Avatar

Level 1

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..

1 Reply

Avatar

Level 10

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