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

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:
https://docs.aspose.com/pdf/net/working-with-documents/
Hope this helps.
Best regards,

The issues you have found earlier (filed as WORDSNET-3110) have been fixed in this Aspose.Words for .NET 20.10 update and this Aspose.Words for Java 20.10 update.