#1 2013-03-28 09:11:03

dzbanek
Member
Registered: 2013-03-26
Posts: 3

Is it possible to...

Hello,

I've spent some time playing with pdf engine. Can you tell me if I can...

1. ...draw a jpg inside a table cell? (with auto resizing height of a cell to fit that image)
2. ...place a table inside another table cell?
3. ...draw multiple jpgs next to each other? (using width and height of a file, moving to next line if needed)

I took a look inside sqlite3pages and I think it's not possible. Correct me if I'm wrong or tell me if you plan to add those features.

Thank you.

Offline

#2 2013-03-28 10:00:11

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

Re: Is it possible to...

The SynPDF engine is capable of everything you want, but, as you stated, mORMotReport.pas (former Sqlite3Pages.pas) unit is not able to do this.

You can create a PDF using its custom TCanvas, just as with VCL.

Offline

#3 2013-03-28 12:29:32

dzbanek
Member
Registered: 2013-03-26
Posts: 3

Re: Is it possible to...

Thanks, that's a great news.

Edit.

Wait... are you telling me that if I need to have nested tables I need to drawn them by myself drawing boxes, calulating row heights and drawing text without auto moving to next line? Do I need to do that all by myself? Just as painting on canvas?

Last edited by dzbanek (2013-03-28 12:46:11)

Offline

#4 2013-03-28 15:17:11

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

Re: Is it possible to...

Yes, grid support is very simple, in TGdiPages.

You have to compute it by hand, or use a report engine handling this, able to export the page content as metafile.

Offline

#5 2013-03-28 19:26:36

dzbanek
Member
Registered: 2013-03-26
Posts: 3

Re: Is it possible to...

I can't imagine having a pdf up to 3000 pages filled with large metafile per page. Any plans to add new features to TGdiPages?

Offline

#6 2013-03-28 19:38:39

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

Re: Is it possible to...

TGdiPages will create one metafile per page, also.
smile

You can create one page after the other, then render it one by one directly by TPdfDocument.
Or save the metafile content on disk.
A metafile is just a block of memory - it does not use any GDI resource - only the TMetaFileCanvas uses GDI handles.
And metafiles compress very well, by the way.

I've created reports of more than 5000 pages with TGdiPages, with no problem, by using the "Export" feature of our SynDBExplorer tool, saving a huge grid content as pdf.
http://blog.synopse.info/tag/SynDBExplorer

Offline

Board footer

Powered by FluxBB