Skip to content

Watermark image not created for the last page of a document section #394

Answered by brechtm
scottredshaw asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

The issue I have been having is that it doesn't create the watermark on the last page of each section.

I can't readily say why this happens, but rinohtype already provides a simpler way to set background images for pages. In your template configuration file, you can set the background property on a page template:

[contents_page]
background = 'contents_background.pdf', scale=fit

If you do want to lose the configurability of the watermark (document_status), try setting the container type to BACKGROUND instead to see whether that solves your issue.

P.S. I see you're using a PNG image for the background. You should use vector images where appropriate to improve print quality (and reduce…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@scottredshaw
Comment options

Answer selected by scottredshaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants