Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aspose-com-kb/7ca2e074dd7b15f3bd6b7e6d3d9a4765 to your computer and use it in GitHub Desktop.
Save aspose-com-kb/7ca2e074dd7b15f3bd6b7e6d3d9a4765 to your computer and use it in GitHub Desktop.
How to Transform SVG to PDF using Python. For more details: https://kb.aspose.com/pdf/python/how-to-transform-svg-to-pdf-using-python/
import aspose.pdf as pdf
# Initialize SvgLoadOptions class object
options = pdf.SvgLoadOptions()
# Create Document class object
document = pdf.Document("test.svg" , options)
# Convert SVG to PDF
document.save("SVGtoPDF.pdf")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment