Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include page in PDF in PDF document in Python

I am using reportlab toolkit in Python to generate some reports in PDF format. I want to use some predefined parts of documents already published in PDF format to be included in generated PDF file. Is it possible (and how) to accomplish this in reportlab or in python library?

I know I can use some other tools like PDF Toolkit (pdftk) but I am looking for Python-based solution.

like image 231
Jiri Avatar asked Mar 23 '09 13:03

Jiri


1 Answers

I'm currently using PyPDF to read, write, and combine existing PDF's and ReportLab to generate new content. Using the two package seemed to work better than any single package I was able to find.

like image 194
dwelch Avatar answered Nov 14 '22 21:11

dwelch