Page 1 of 1

Watermark

PostPosted: December 6th, 2012, 10:15 pm
by Acheron
Hi there!

Is it possible to add a watermark to the pdf output?
I tried in many different ways, but without any success.When I attempted with Windows.Alpheblend function, the resulting pdf did not contain the watermark.
I tried to somehow create a bitmap the size of the TPrintPreview canvas, but it is 21000*29700, and I get an EOutOfResources error.
Can I somehow export the acutal page to bitmap, to do the modification on that, and afterwards redraw the actual page with that?

Thank you for your answer!

Re: Watermark

PostPosted: December 7th, 2012, 4:17 pm
by Kambiz
Each page in the pages array is a Metafile. To create a bitmap from a Metafile, you should draw the Metafile on the bitmap canvas.

Also, to get rid of out of resource error, you can use Metafile instead of bitmap.