Last active
May 12, 2023 18:22
-
-
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/
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
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