Python에서 PDF 파일 연결
Contents
[
Hide
]
Aspose.PDF Java for Python을 사용하여 PDF 파일을 연결하려면 ConcatenatePdfFiles 클래스를 호출하기만 하면 됩니다.
doc= self.Document()
pdf = self.Document()
pdf=self.dataDir + 'input1.pdf'
# Open the source document
pdf1 = self.Document()
pdf1=self.dataDir + 'input2.pdf'
# Add the pages of the source document to the target document
pdf1.getPages().add(pdf1.getPages())
# Save the concatenated output file (the target document)
doc.save(self.dataDir + "Concatenate_output.pdf")
print "New document has been saved, please check the output file"
실행 코드 다운로드
아래 언급된 소셜 코딩 사이트 중 하나에서 **PDF 파일 연결(Aspose.PDF)**В을 다운로드하세요.