#1 2010-07-23 07:00:38

cstuffer
Member
Registered: 2010-07-21
Posts: 11

PDF Background

Hello,

SynPDF is really great !
Thank you smile

I think it should be very complete with a Background image property.
With alignment: Tile, Top-Left, Top-Center, Top-Right, Center, Center-Left, Center-Right, Bottom-Left, Bottom-Center, Bottom-Right

This background should be related to the whole page.

Just like an HTML page.

Currently, i using eDocEngine and they have this property.

But... if we have this property with SynPDF, i will switch with pleasure.
because SynPDF is really smaller and take less (and by far) overhead in the exe.

Offline

#2 2010-08-06 14:02:33

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: PDF Background

Which kind of image? Bitmap? Vectorial?

You can add it creating a TPdfDocumentGDI instance, then just drawing the bitmap with usual VCL commands on its VCLCanvas property.
But using VCLCanvas will make a copy of the image for every page. Not so good for pdf size.

So it could be better to have this image directly handled in TPdfDocument, therefore an unique TPdfImage loaded and stored once, then using direct Canvas.DrawXObject / Canvas.DrawXObjectEx to draw it on every page background. Tile and Center should be handled at this level.

By my free time is a small resource for me now, like GDI resources in Windows 3.1.  wink
Perhaps you could try to implement it by your own. And I could help you.
If you're several users who would like it to be implemented, please post your feedback here, and I'll code it!

Offline

#3 2010-08-06 14:51:01

cstuffer
Member
Registered: 2010-07-21
Posts: 11

Re: PDF Background

Hello,

Thank you for your reply smile

I was talking about normal web images (Gif, Jpg or Png)

and for background, i was talking about background images use in a normal web page.
( like in BODY tag, background="..... " )

I will try your suggestions and be back here with my results smile

Carl

Offline

Board footer

Powered by FluxBB