(content: bytes, coverpage: bytes)
| 7 | |
| 8 | |
| 9 | def merge_pdf(content: bytes, coverpage: bytes): |
| 10 | with pymupdf.Document(stream=coverpage, filetype='pdf') as coverpage_pdf: |
| 11 | with pymupdf.Document(stream=content, filetype='pdf') as content_pdf: |
| 12 | coverpage_pdf.insert_pdf(content_pdf) |
| 13 | doc = coverpage_pdf.write() |
| 14 | return doc |
| 15 | |
| 16 | def test_2791(): |
| 17 | ''' |
no test coverage detected
searching dependent graphs…