Pdf -> svg

As a workaround, you can convert a PDF to DOC/DOCX with Aspose.Pdf API, and then convert this Word document to a single SVG file with Aspose.Words API. Please try the following source code:

[C#]

// Load PDF document
Aspose.Pdf.Document doc = new Document(@“C:\Pdf\test142\input.pdf”);
// Save the output in DOCX format
MemoryStream stream = new MemoryStream();
doc.Save(stream, SaveFormat.DocX);
// Load the DOCX file
Aspose.Words.Document document = new Aspose.Words.Document(stream);
// Save in single SVG file
document.Save(@“C:\Pdf\test142\Output.svg”, Aspose.Words.SaveFormat.Svg);
Please let us know in case of any confusion or questions.

Best Regards,
Imran Rafique


This Topic is created by imran.rafique using the Email to Topic plugin.

@nrpdominic,
As a workaround, you can convert a PDF to DOC/DOCX with Aspose.Pdf API, and then convert this Word document to a single SVG file with Aspose.Words API. Please try the following source code:

[C#]

// Load PDF document
Aspose.Pdf.Document doc = new Document(@“C:\Pdf\test142\input.pdf”);
// Save the output in DOCX format
MemoryStream stream = new MemoryStream();
doc.Save(stream, SaveFormat.DocX);
// Load the DOCX file
Aspose.Words.Document document = new Aspose.Words.Document(stream);
// Save in single SVG file
document.Save(@“C:\Pdf\test142\Output.svg”, Aspose.Words.SaveFormat.Svg);
Please let us know in case of any confusion or questions.

Best Regards,
Imran Rafique