Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active April 27, 2021 12:10
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/6ba6048d7d9f0ecbccca3b9c30762302 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/6ba6048d7d9f0ecbccca3b9c30762302 to your computer and use it in GitHub Desktop.
Convert PDF to SVG Format using C++
Convert PDF to SVG Format using C++
// 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);
// 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