Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Created February 4, 2021 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/f47f16e4e36ef8723f8376ce908baeee to your computer and use it in GitHub Desktop.
Save aspose-com-gists/f47f16e4e36ef8723f8376ce908baeee to your computer and use it in GitHub Desktop.
Convert PDF to SVG in C#
// Open document
Document pdfDocument = new Document("Document.pdf");
// Instantiate an object of SvgSaveOptions
SvgSaveOptions saveOptions = new SvgSaveOptions();
// Do not compress SVG image to Zip archive
saveOptions.CompressOutputToZipArchive = false;
// Save the PDF as SVG file
pdfDocument.Save("output.svg", saveOptions);
// Open document
Document pdfDocument = new Document("Document.pdf");
// Instantiate an object of SvgSaveOptions
SvgSaveOptions saveOptions = new SvgSaveOptions();
// Save the PDF as SVG file
pdfDocument.Save("output.svg", saveOptions);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment