Convert a subset of pages from PDF to XPS

Q: We’re using PDFNet sdk (C# .net) to convert large PDF to XPS. Turns out, some PDF are way too large for our needs. Is there a way to convert only the first n pages of a PDF into a XPS? Ideally, we would actually like to add a last page that would say something along the lines “To get the full document, do this…”. Your help is very much appreciated.

If you are dealing with large files you could try to optimize them before conversion to XPS (e.g. using Optimizer add-on as shown in http://www.pdftron.com/pdfnet/samplecode.html#Optimizer sample).

With PDFTron PDF2XPS command-line has an option to convert specific pages (-a 1-10).