Mengonversi PDF ke Format SVG di Python
Contents
[
Hide
]
Untuk mengonversi PDF ke format SVG menggunakan Aspose.PDF Java for Python, cukup panggil modul 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"
Mengunduh kode yang dapat dijalankan
Unduh Konversi PDF ke Format SVG (Aspose.PDF) dari salah satu situs coding sosial yang disebutkan di bawah: