Start print from page

Start print from page

Forum member · Feb 24, 2014
Hallo world. I would like to know if and how is possible to decide from which page i want to print my pdf. I mean, if i want to start to print from the 2nd page to the end...i would like to know how is possible. thanks in advance regards Alberto

Re: Start print from page

Support · Feb 24, 2014
Hello Alberto, Yes, you can achieve your requirement without any problem using our DynamicPDF PrintManager for .NET product. You will need to load the PDF using InputPdf object. Then you can get the page count for calculating the number of pages to be printed. Then create PrintJob object by passing the printer object, InputPdf object, start page number and number of pages to be printed. Below is the sample code for it. //Specifing the name of the printer. Printer printerObj = new Printer("printer name"); InputPdf pdf = new InputPdf(@"path for the PDF"); int pagecount = pdf.Pages.Count; int startpage = 2; int numberOfPagesTobePrinted = pagecount - (startpage -1); //Setting page range using overloaded class constructor. PrintJob job = new PrintJob(printerObj, pdf, startpage, numberOfPagesTobePrinted); job.Print(); Thanks, ceTe Software Support Team.