papermark icon indicating copy to clipboard operation
papermark copied to clipboard

feat: watermark documents

Open ashrafchowdury opened this issue 2 years ago • 5 comments

Description

Implemented a feature watermark documents. Users can toggle the watermark on or off and move it around the document as needed. The watermark is placed at the bottom right of the document and can be moveable, showing the viewer's email and viewing time.

Feature

  • Watermark documents.
  • Watermark is moveable within the document.

Preview

https://github.com/mfts/papermark/assets/87828904/21f46375-d550-4900-9c71-43692d7343ed

Issue

Closes #267

ashrafchowdury avatar Feb 17 '24 04:02 ashrafchowdury

@ashrafchowdury is attempting to deploy a commit to the mftsio Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Feb 17 '24 04:02 vercel[bot]

I like this but I think the watermark should not be movable. instead it should be permanently attached to the image in a fixed location.

Not sure how to best make this happen quite yet but maybe you find a way :)

mfts avatar Feb 26 '24 02:02 mfts

Hey @mfts, can you confirm if the pro version includes the watermark feature? What will be the default behaviour (open or close) if it's not included in the pro version? That way, I can make changes accordingly.

ashrafchowdury avatar Feb 29 '24 05:02 ashrafchowdury

@ashrafchowdury this would most definitely be a pro feature.

it would be awesome if we could manipulate the image before it hits the client. so far I only know of a solution that involves S3 lambda.

mfts avatar Feb 29 '24 05:02 mfts

@ashrafchowdury this would most definitely be a pro feature.

it would be awesome if we could manipulate the image before it hits the client. so far I only know of a solution that involves S3 lambda.

If we manipulate the image most probably the watermark will fall into the empty space of the image.

It would be beneficial for us if we could display raw PDFs to the client instead of images to unlock new feature possibilities. What do you think about it?

ashrafchowdury avatar Feb 29 '24 05:02 ashrafchowdury

Thanks for the initial project @ashrafchowdury.

We just shipped watermarking here #576. You might find the approach slightly differently.

mfts avatar Sep 03 '24 11:09 mfts