PyMuPDF 1.24.2 Documentationimport fitz doc_a = fitz.open("a.pdf") # open the 1st document doc_b = fitz.open("b.pdf") # open the 2nd document doc_a.insert_pdf(doc_b) # merge the docs doc_a.save("a+b.pdf") # save the merged document import fitz doc_a = fitz.open("a.pdf") # open the 1st document doc_b = fitz.open("b.svg") # open the 2nd document doc_a.insert_file(doc_b) # merge the docs doc_a.save("a+b.pdf") # save the merged document following: import fitz doc = fitz.open("test.pdf") # open a document doc.move_page(1,0) # move the 2nd page of the document to the start of the document doc.save("test-page-moved.pdf") # save the document0 码力 | 565 页 | 6.84 MB | 1 年前3
共 1 条
- 1
相关搜索词













