Created
February 4, 2021 03:38
-
-
Save aspose-com-gists/f47f16e4e36ef8723f8376ce908baeee to your computer and use it in GitHub Desktop.
Convert PDF to SVG in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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