Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Acrobat Javascript Question regarding firstPage

Posted on 2004-11-24
Medium Priority
Last Modified: 2008-01-16
Hi I am trying to do an automatic print using printparams and i am sending 2 seperate jobs. The first job i want to print both pages of the 2 page pdf and the second job i want to print only the second page of the 2 pages which is being sent to a virtual tif printer. My problem is it keeps printing only the first page instead of just the second. Take a look at my code and see if you can decifer why.

var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.automatic;
pp.firstPage = 1;
pp.lastPage = 2;
pp.printerName = "up-middle";

var pn = this.getPrintParams();
pn.firstPage = 2;
pn.lastPage = 2;
pn.interactive = pn.constants.interactionLevel.automatic;
pn.printerName = "Bankruptcy and Patriot";

Question by:jerrycsakanyjr
  • 2
LVL 44

Accepted Solution

Karl Heinz Kremer earned 2000 total points
ID: 12670116
Acrobat's page numbering is zero based. I haven't tried it, but I'm pretty confident that if you use firstPage=1/firstPage=1 that you will get the second page of the job.
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12695223
Any luck?

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can Be Caused By Disabled Services I have encountered a problem viewing PDF files using Adobe Acrobat Reader.  For the longest time, PDFs might launch or might not.  Sometimes they took about 15 minutes to appear after launching them. After som…
*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
In this first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question