You are not logged in.
Pages: 1
I wrote *linked*:
Sample code
In fact, you have at least three ways of generating pdfs using the library:
Directly call of a TPdfCanvas as published by a TPdfDocument instance - this is the most direct but also more difficult way of rendering;
Use regular VCL TCanvas methods thanks to TMetaFile support - see TPdfDocumentGDI.VCLCanvas property and the TPdfCanvas.RenderMetaFile method - this is very easy if you want to use "regular" TCanvas methods to draw the page content, especially if you have some existing printing code;
Use TGDIPages of the supplied mORMotReport.pas unit (extracted from our mORMot ORM/SOA framework) to easily create the content from code, with some report-oriented methods (including complex rtf with TGDIPages.AppendRichEdit) - for basic reporting features, it is pretty much the solution.The 2nd and 3rd ways are preferred, for most applications.
However it works in Delphi 2007 without any changes, and this is more important for me.
I forgot to mention, all sample codes linked here:
https://github.com/synopse/SynPDF
work well.
Ensure to re-test it with latest version of the library, i.e. 1.18.4161.
Do you mean Gdiplus.dll? I use 10.0.16299.125.
I've changed all "object" to "record", now all compiles well, but when I try to install got message:
[DCC Fatal Error] F2092 Program or unit '.mORMotReport' recursively uses itself
Delphi XE Prof, on Windows 10 Prof.
Hello!
When I try to install "TGDIPages" component from "mORMotReport.pas" got problems several times, first occurs in line 1914 "TSynSigner = object". When I change "object" to "class", got problems in other lines.
greetings
Marcin
Pages: 1