Selected pages

Selected pages

Forum member · Jan 30, 2007
I'm trying to merge pages from several pdfs based on a users selection from a web form. I can find a method, getPage(), but this only seems to take one page as an argument. What if the selected page runs onto 2 or more pages. is there anyway of setting a page range? many thanks Nick

Re: Selected pages

Support · Jan 30, 2007
Hello Nick, First, we do have an example that demonstrates doing very similar actions as you describe below. The example is the Select Pages example and can be found on our examples page, http://www.DynamicPDF.com/Products/DynamicPDFForNET/Merger/Examples.csp#SelectPages . This example does however take one page at a time with separate checkboxes from the web form so it still does not answer your exact question (it is just a good example for your reference). But actually, in order to bring in multiple pages from one existing PDF you will actually use the Append() method. Using the appropriate overload for this method you can specify (either via a PdfDocument object or a string filepath to an actual PDF document) the start page and number of pages that you want to append to the MergeDocument. Take a look at the help documentation for a list of Append method overloads, http://www.DynamicPDF.com/Support/NET_Help_Library_07_01/ceTe.DynamicPDF~ceTe.DynamicPDF.Merger.MergeDocument~Append.html . Thanks, ceTe Software Support Team