Watermark

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Watermark

Postby Acheron » December 6th, 2012, 10:15 pm

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!
Acheron
Active Member
Active Member
 
Posts: 10
Joined: December 5th, 2012, 9:53 pm

Re: Watermark

Postby Kambiz » December 7th, 2012, 4:17 pm

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 2 guests

cron