Watermarks/Background possible? #1106
Unanswered
flecke-anaptis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to use the "embedPage()"-Function to set a Watermark on a Page and Print a second PDF Document onto this Watermark ? I guess Watermark isnt the best explanation what i try to do with it. I have an PDF-File as Layout with some Companie Informations in the Footer and a Logo in the upper right corner (for example) and i want to use this layout as Background for all PDFs which will be created. I already have built a PDF Merger with this libary and now try to implement this Watermark function without using a different libary.
i copied the example on the pdf-Lib Website and the only difference is that i have the layout PDF and the Content PDF as Base64-Strings.
urls is an JsonArray which contains the Base64 PDFs and the second Base64-String is always the Layout/Background-PDF
Beta Was this translation helpful? Give feedback.
All reactions