Last active
April 27, 2021 12:10
-
-
Save aspose-com-gists/6ba6048d7d9f0ecbccca3b9c30762302 to your computer and use it in GitHub Desktop.
Convert PDF to SVG Format using 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
Convert PDF to SVG Format using 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
// Load PDF file | |
auto doc = MakeObject<Document>(u"input.pdf"); | |
// Instantiate an object of SvgSaveOptions | |
SharedPtr<SvgSaveOptions> options = MakeObject<SvgSaveOptions>(); | |
// Place the output file in the folder with the same name | |
options->TreatTargetFileNameAsDirectory = true; | |
// Save the PDF as SVG file | |
doc->Save(u"input_out.svg", options); |
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
// Load PDF file | |
auto doc = MakeObject<Document>(u"input.pdf"); | |
// Instantiate an object of SvgSaveOptions | |
SharedPtr<SvgSaveOptions> options = MakeObject<SvgSaveOptions>(); | |
// Save the PDF as SVG file | |
doc->Save(u"input_out.svg", options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment