Free Support Forum - aspose.com

Exporting to SVG

How can I export a single page from a Word document to SVG?


Do I have to extract the page before and create a new single page document?

Thanks,

Thomas

Hi Thomas,


Please try using the following code:

Document doc = new Document(MyDir + @“input.docx”);

SvgSaveOptions opts = new SvgSaveOptions();

opts.PageIndex = 0; // just specify the page number you want to export

opts.PageCount = 1;

doc.Save(MyDir + @“16.12.0.svg”, opts);



Best regards,