在 Python 中将 PDF 转换为 SVG 格式
Contents
[
Hide
]
要使用 Aspose.PDF Java for Python 将 PDF 转换为 SVG 格式,只需调用 PdfToSvg 模块。
# 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"
下载运行代码
下载\u0412\u00A0Convert PDF to SVG Format (Aspose.PDF)\u0412\u00A0 来自\u0412\u00A0 以下任意提到的社交编码站点: