lpr -o cpi=12 -o page-top=36 -o page-left=58 -P PDF Documentos/alfresco_test/00001282.txt
from pyPdf import PdfFileWriter, PdfFileReader
output = PdfFileWriter()
input1 = PdfFileReader(file("PDF/watermark_K1.pdf", "rb"))
# añado la página 0 desde input1 añadiendo el preimpreso desde otro pdf:
page0 = input1.getPage(0)
watermark = PdfFileReader(file("PDF/00001282.pdf", "rb"))
page0.mergePage(watermark.getPage(0))
output.addPage(page0)
# finalmente, escribo "output" a document-output.pdf
outputStream = file("/home/cnova/PDF/document-output.pdf", "wb")
output.write(outputStream)
outputStream.close()
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.