Python에서 PDF를 SVG 형식으로 변환

Contents
[ ]

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"

실행 코드 다운로드

아래에 언급된 소셜 코딩 사이트 중 하나에서 **PDF를 SVG 형식으로 변환(Aspose.PDF)**В을 다운로드하세요.