Convert PDF to SVG Format in Python

Contents
[ ]

To convert PDF to SVG format using Aspose.PDF Java for Python, simply invoke PdfToSvg module.


# Open the target document
doc=self.Document()
pdf = self.Document()
pdf=self.dataDir +'input1.pdf'

# instantiate an object of SvgSaveOptions
save_options = self.SvgSaveOptions()

# do not compress SVG image to Zip archive
save_options.CompressOutputToZipArchive = False;

# Save the output to XLS format
doc.save(self.dataDir + "Output1.svg", save_options)

print "Document has been converted successfully"

Download Running Code

Download Convert PDF to SVG Format (Aspose.PDF) from any of the below mentioned social coding sites: