Skip to content

Watermarks for Images #231

@chrisgonzgonz

Description

@chrisgonzgonz

Hi,

I've posed this as a question on Stack Overflow but it may be better suited as a feature request.

I've tried two approaches to add an image or attributed string watermark on top of an image in a TPPDF document:

  1. Affix the watermark to the image with core graphics before adding the image to the document; this isn't great as the watermark is subject to resizing and quality changes during PDF generation. I've submitted add pre-drawing hook for image processing #232, which demonstrates a possible solution with no resizing/quality issues.

  2. Position the watermark over the image in the document. This seems like the right thing to do per Watermark Image #19 but the API seems to have changed. I've attempted to find an unobtrusive way to expose image offsets and set watermark offsets such that the watermark can be correctly positioned over the image. I haven't had much success so far.

Could you point me in the right direction or let me know what you think? I'd be very happy to contribute to this solution.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions