#1 2012-06-12 16:22:16

madj
Member
Registered: 2012-06-12
Posts: 2

Drawing Tables in PDF using SynPDF

I need to generate a PDF report which would contain a table.
It would also contain some header text which would be repeated on every new page.
I just want to know if i can add a table to the PDF using Synpdf library.
I am new to Delphi and synpdf.
Please find the sample pdf file here : http://dl.dropbox.com/u/174941/Sample.pdf

Thanks !

Offline

#2 2012-06-12 16:50:06

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

Re: Drawing Tables in PDF using SynPDF

Directly calling SynPDF is a bit difficult, or you need to use its TCanvas-based version.

To easily produce a table with PDF you can use:
- The report engine included within SynPDF - see http://blog.synopse.info/post/2010/06/3 … -from-code
- Print from a RTF content - http://synopse.info/forum/viewtopic.php?id=76
- Use any other report engine then SynPDF to render it, e.g. QuickReport - see http://synopse.info/forum/viewtopic.php?pid=4098#p4098

Online

#3 2012-06-12 17:27:43

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

Re: Drawing Tables in PDF using SynPDF

After a look at the PDF, i think our syngdipages unit (first référence ) is exactly what you need.

smile

Online

#4 2012-06-12 18:12:55

madj
Member
Registered: 2012-06-12
Posts: 2

Re: Drawing Tables in PDF using SynPDF

Yes this is what i exactly need smile
Thanks !

btw, can i add a user password / owner password to the PDF and change the user permissions [ReadOnly/CopyOnly] etc ?
Using synpdf that is

Offline

#5 2012-06-12 20:49:48

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

Re: Drawing Tables in PDF using SynPDF

There is no password protection implemented yet.

Perhaps in the future!

But you have PDF/A1 generation, if you need.

Online

Board footer

Powered by FluxBB