You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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.
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:
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.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.