在 Python 中将 SVG 文件转换为 PDF 格式
Contents
[
Hide
]
在 Python 中将 SVG 文件转换为 PDF 格式
要使用 Aspose.PDF Java for Python 将 SVG 文件转换为 PDF 格式,只需调用 SvgToPdf 模块。
Python 代码:
options = self.SvgLoadOptions();
doc=self.Document()
pdf = self.Document()
pdf=self.dataDir +'input1.pdf'
Save the output to XLS format
doc.save(self.dataDir + "SVG1.pdf");
print "Document has been converted successfully"
下载运行代码
下载В **Convert SVG to PDF (Aspose.PDF)**В 来自В 以下任意提到的社交编码站点: