markpdf
markpdf copied to clipboard
Add text watermark with template
Builds on top of https://github.com/ajaxray/markpdf/pull/14 with feedback from @ajaxray in mind
Approach:
- Check if given watermark is a template with
isWatermarkATemplate
- If a template, dynamically change the text in
Paragraph
object by after executing template in iteration. - else, rely on static-text and continue with old behavior without doing extra work or creating extra objects.