move watermark to the back please
This commit is contained in:
parent
65bb088095
commit
ac5f31ef93
|
@ -29,9 +29,9 @@ def generate_pdf_letter(filename, template, formatdict):
|
||||||
|
|
||||||
### add the watermark to all pages
|
### add the watermark to all pages
|
||||||
for pagenum in xrange(pdfreader.getNumPages()):
|
for pagenum in xrange(pdfreader.getNumPages()):
|
||||||
page = pdfreader.getPage(pagenum)
|
page = watermark.getPage(0)
|
||||||
try:
|
try:
|
||||||
page.mergePage(watermark.getPage(0))
|
page.mergePage(pdfreader.getPage(pagenum))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
### watermark pdf might be broken?
|
### watermark pdf might be broken?
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue