Expand my Community achievements bar.

SOLVED

print multiple pages

Avatar

Former Community Member

I have a 4 pages form and I want to be able to print1 copy of page 1 and 2 copies of page 2-4.

I have tried this script for printing but it works a bit clumsy as the user will have to accept the printing twice, because Acrobat displays a warning even though I don’t show the print menu in the second print.

xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);

xfa.host.print(0, "1", "3", 0, 0, 0, 0, 0);

Does anyone have a more elegant solution?

I addition to that I would also like to sort the pages so that the 2 copies of page 2 are printed right after each other and so on.

Will that be possible?

Regards,

Kirstine

1 Accepted Solution

Avatar

Correct answer by
Level 10

The only solution for Designer I can conceive of is to add extra pages for those pages that should be printed twice.

You can control the presence of the extra pages with the prePrint/postPrint events, so they will be only present on the printout, not in the PDF-Viewer.

The benefit is, you only need to print the form once.

Here an example:

https://acrobat.com/#d=bEcjLW3u6TuYOJF6C-vAXg

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

The only solution for Designer I can conceive of is to add extra pages for those pages that should be printed twice.

You can control the presence of the extra pages with the prePrint/postPrint events, so they will be only present on the printout, not in the PDF-Viewer.

The benefit is, you only need to print the form once.

Here an example:

https://acrobat.com/#d=bEcjLW3u6TuYOJF6C-vAXg

Avatar

Former Community Member

Hi

I had hoped it was posible to control the printing more detailed. But the show/hide extra pages  might be a solutionbetter than the one I was able to come up with.

Kirstine