You are not logged in.
Pages: 1
Hello,
I just came across this and think its very cool. I am looking for some complete simple examples of generating a PDF from Code. I would like to use this in my web app to generate PDF docs.
Cheers!
- Lou
Offline
Search in the forum.
For instance:
- http://synopse.info/forum/viewtopic.php?pid=1909#p1909
- http://synopse.info/forum/viewtopic.php?id=216
- http://synopse.info/forum/viewtopic.php?pid=370#p370
- http://synopse.info/forum/viewtopic.php?id=41
In fact, you have two easy ways of generating pdfs:
- Use TMetaFile driven content - see TPdfDocumentGDI.VCLCanvas property and the TPdfCanvas.RenderMetaFile method - but you'll have to make the rendering by hand, since it is working at the page level (or use a third-party report generator - QuickReport and FastReport are reported to work with SynPdf);
- Use TGdiPages to easily create the content from code, with some report-oriented methods (including complex rtf with TGDIPages.AppendRichEdit).
I suspect that for your needs, the 2nd is the easiest.
See http://blog.synopse.info/post/2010/06/3 … -from-code and http://synopse.info/forum/viewtopic.php?id=76
For detailed documentation of the unit, see the corresponding pages in the "Software Architecture Document" of mORMot official documentation.
Including the report generation pages within the "SynFile Main Demo" description.
See http://synopse.info/fossil/wiki?name=Downloads
Offline
Thanks for reply. I also do use FastReport 4 and found code on this forum to export using SynPDF. Did some more digging and found the SQLite3PAges unit. I will explore this items and will hope to share back some simple examples I create as become familiar.
Cheers!
Lou
Offline
Pages: 1