Free Support Forum - aspose.com

Saving multiple pages from a Word document to PDF

I would like to be able to save multiple pages from a Word document to a single PDF. SaveToPdf has an overload for saving a range of pages, but there doesn’t appear to be a way to save multiple non-contiguous pages to the same PDF. Is this possible? For example, say I have a 10 page document and I want to save pages 1, 5, and 8 to a single PDF.

Thanks

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. You are right, currently there is no way to achieve what you need using Aspose.Words. We consider adding this functionality in the future. As a workaround you can try saving all needed pages to different PDF and then concatenating these pages using Aspose.Pdf.Kit.

Also, you can try removing specific pages from PDF document using Aspose.Pdf.Kit. Please see the following link for more information:

http://www.aspose.com/documentation/.net-components/aspose.pdf.kit-for-.net/aspose.pdf.kit.pdffileeditor.delete_overloads.html

Hope this helps.

Best regards,