top of page

AEM Client Server - Formerly LiveCycle - Print Specific Pages

While Print buttons are mostly not necessary due to the Acrobat Menu having a Print dialog option, there may be occasions where you would want to add special Printing capabilities.

Your Action Steps

  1. Create an Accessible button with appropriate label and Alt Text.

  2. On Click Event, add the following Java Script to print only page one:

xfa.host.print(1, ”0”, “0”, 0, 0, 0, 0, 1);

Another Example: Print pages 2 and 3 silently without print dialog box display

xfa.host.print(0, “1”, “2”, 1, 0, 0, 0, 0);

Background Information

~ Courtesy: Thom Parker - Acrobat Users Community


Printer Syntax Meaning - Printing Page 1 Only

1 – Show the Print dialog box.

“0” – Start at page index 0 (zero is the first page).

“0” – End at page index 0 (zero is the first page; the result: print just page 1).

0 – Show progress dialog.

0 – Do not shrink to fit.

0 – Do not print as image.

0 – Print in normal order.

1 – Include annotations (fields and hyperlinks).

Printer Syntax Meaning - Printing Pages 2 and 3 only

0 – No print dialog (print dialog occurs silently without displaying the dialog box).

“1” – Start at page index 1 (which is actually page two).

“2” – End at page index 2 (which is actually page three).

1 – Slient progress (do not display progress dialog box).

0 – No scaling (do not shrink to fit).

0 – Normal order.

0 – Do not print as image.

0 – Do not include annotations.


Note: the page numbers in the JavaScript are zero-based, so one less than the "normal" numbers.

Comments


Commenting on this post isn't available anymore. Contact the site owner for more info.
The PC Tech logo with cross, magnifying glass, and pc

What Resources do you need?

Delivering actionable communication solutions to achieve business goals

bottom of page