دمج ملفات PDF في Python
Contents
[
Hide
]
لدمج ملفات PDF باستخدام Aspose.PDF Java for Python، ما عليك سوى استدعاء الفئة 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"
تنزيل الشفرة القابلة للتشغيل
DownloadВ **دمج ملفات PDF (Aspose.PDF)**В من أي من مواقع الترميز الاجتماعي المذكورة أدناه: