Hopding / pdf-lib

Create and modify PDF documents in any JavaScript environment
https://pdf-lib.js.org
MIT License
6.84k stars 652 forks source link

Add transparence option for the firstPage.drawText #1576

Open fbuffa2003 opened 9 months ago

fbuffa2003 commented 9 months ago

Describe your idea

The idea is to add a transparence option to the RGB color as Alpha. So we can create a watermark for documents and not block the text behind them. Like the Confidential watermark for important documents or Top Secret :)

How could this be implemented?

I think we can add a other option to the color to acept the alpha. color: rgb(1, 0, 0, AlphaNumber),

What problem are you trying to solve?

The current text block the text in the document. I want to add a text to they can't use it but at same time they can read the document.

Why does this matter to you?

I'm trying to propose a solution for a project.

Would others find this helpful?

So far me.

Are you interested in implementing your proposal?

No

Why are you submitting a proposal?

I think the library is amazing and I want to contribute

Additional Notes

No response