can.drawString(100, 100, 'Hello world')
can.save()
packet.seek(0)
new_pdf = PdfFileReader(packet)
existing_pdf = PdfFileReader(file('mypdf.pdf', 'rb'))
output = PdfFileWriter()
page = existing_pdf.getPage(0)
page.mergePage(new_pdf.getPage(0))
output.addPage(page)
outputStream = file('/home/joe/newpdf.pdf', 'wb')
output.write(outputStream)
outputStream.close()
Добавить текст в существующий документ PDF в Python