- Posts: 41
Question watermarks for pdf-files?
- raipet
- Topic Author
- Offline
- New Member
Less
More
4 months 2 weeks ago #1
by raipet
Rainer
Raspi 4 8GB, Linux raspi4-Ubuntu2204, Apache (Ubuntu), Mariadb, PHP, WT with VESTA
watermarks for pdf-files? was created by raipet
I have the option of entering watermarks for images.
But I would also like to have this option for pdf-files. Is it possible? If so, how?
But I would also like to have this option for pdf-files. Is it possible? If so, how?
Rainer
Raspi 4 8GB, Linux raspi4-Ubuntu2204, Apache (Ubuntu), Mariadb, PHP, WT with VESTA
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
4 months 2 weeks ago #2
by bertkoor
stamboom.BertKoor.nl runs on webtrees v2.1.20
Replied by bertkoor on topic watermarks for pdf-files?
Short answer: no.
Long answer: the pdf's come out of the report generator. As I understand it, this is the oldest part of webtrees source code, and rather difficult to maintain or adjust.
If you want to have a go at changing some PHP code, your best bet is to look into the revamped code for reports:
github.com/fisharebest/webtrees/pull/4945
No idea whether it actually is possible in the pdf engine webtrees uses, but such a watermark is like a header or footer, but diagonally placed in large font, light grey coloured, placed behind the actual text.
Long answer: the pdf's come out of the report generator. As I understand it, this is the oldest part of webtrees source code, and rather difficult to maintain or adjust.
If you want to have a go at changing some PHP code, your best bet is to look into the revamped code for reports:
github.com/fisharebest/webtrees/pull/4945
No idea whether it actually is possible in the pdf engine webtrees uses, but such a watermark is like a header or footer, but diagonally placed in large font, light grey coloured, placed behind the actual text.
stamboom.BertKoor.nl runs on webtrees v2.1.20
Please Log in or Create an account to join the conversation.
- raipet
- Topic Author
- Offline
- New Member
Less
More
- Posts: 41
4 months 2 weeks ago #3
by raipet
Rainer
Raspi 4 8GB, Linux raspi4-Ubuntu2204, Apache (Ubuntu), Mariadb, PHP, WT with VESTA
Replied by raipet on topic watermarks for pdf-files?
I had feared this answer too.
Thanks for the explanations.
Thanks for the explanations.
Rainer
Raspi 4 8GB, Linux raspi4-Ubuntu2204, Apache (Ubuntu), Mariadb, PHP, WT with VESTA
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
4 months 1 week ago #4
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic watermarks for pdf-files?
It might be possible. I found this code:
github.com/Onelinerhub/onelinerhub/blob/...ing-php-and-tcpdf.md
github.com/Onelinerhub/onelinerhub/blob/...ing-php-and-tcpdf.md
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- raipet
- Topic Author
- Offline
- New Member
Less
More
- Posts: 41
4 months 1 week ago #5
by raipet
Rainer
Raspi 4 8GB, Linux raspi4-Ubuntu2204, Apache (Ubuntu), Mariadb, PHP, WT with VESTA
Replied by raipet on topic watermarks for pdf-files?
This is fine. But what if the watermark should not be visible when e.g. a user is logged in?
Rainer
Raspi 4 8GB, Linux raspi4-Ubuntu2204, Apache (Ubuntu), Mariadb, PHP, WT with VESTA
Please Log in or Create an account to join the conversation.