Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add watermarking example #244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add watermarking example #244

wants to merge 1 commit into from

Conversation

richard-kurtosys
Copy link

This example writes a transparent watermark/stamp across every page in the supplied pdf.
It writes the watermark from the bottom left to the top right at the fontSize specified.
If it is calculated that the text is too long to fit then the font size is reduced.

This example writes a transparent watermark/stamp across every page in the supplied pdf.
It writes the watermark from the bottom left to the top right  at the fontSize specified.
If it is calculated that the text is too long to fit then the font size is reduced.
function getTextMatrix(matrixCache, text, font, fontSize, pageRight, pageTop) {

pageTop = pageTop;
pageRight = pageRight;
Copy link

@AndreMocke91 AndreMocke91 Feb 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont think this is necessary... my bad

@chunyenHuang
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants