<div dir="ltr">2013/1/17 Marcos Douglas <span dir="ltr"><<a href="mailto:md@delfire.net" target="_blank">md@delfire.net</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5">On Thu, Jan 17, 2013 at 7:52 AM, silvioprog <<a href="mailto:silvioprog@gmail.com">silvioprog@gmail.com</a>> wrote:<br>
><br>
> 2013/1/17 Michael Van Canneyt <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>><br>
>><br>
>> On Thu, 17 Jan 2013, Sven Barth wrote:<br>
>><br>
>>> Am 17.01.2013 08:52, schrieb Michael Van Canneyt:<br>
>>>><br>
>>>> Some time ago, I started a new reporting engine exactly for this reason.<br>
>>>><br>
>>> And how far is your progress with that? Which reminds me that I should finally test the new database search provided in packages... -.-<br>
>><br>
>><br>
>> It is currently dormant; I had finished the looping logic, if memory serves well.<br>
>><br>
>> Michael.<br>
><br>
><br>
> I've been thinking of porting jsPDF for Free Pascal:<br>
><br>
> <a href="http://jspdf.com" target="_blank">http://jspdf.com</a><br>
><br>
> But, using inheritance, something like (a pseudo example):<br>
><br>
> VLabel.Text := 'Hello';<br>
> VLabel.Font.Style := [fsBold];<br>
> VMemo.Lines.Add('Line 1');<br>
> VMemo.Lines.Add('Line 2');<br>
> VMemo.Font.Align := faJustify;<br>
> ...<br>
> pdf.LoadFromJSON(<JSON>); // or pdf.LoadFromDataSet<br>
> pdf.AutoPaginate := True;<br>
> pdf.AddPage;<br>
> pdf.AddObject(VLabel);<br>
> pdf.AddObject(VMemo);<br>
> pdf.AddObject(VImage);<br>
> pdf.Print('print.pdf'); // or pdf.Print to print as DataURI<br>
<br>
</div></div>Why jsPDF and no FPDF (<a href="https://github.com/jepafi/Free-JPDF-Pascal" target="_blank">https://github.com/jepafi/Free-JPDF-Pascal</a>)?<br>
<span class=""><font color="#888888"><br>
Marcos Douglas<br>
</font></span>PS: or my fork <a href="https://github.com/mdbs99/Free-JPDF-Pascal" target="_blank">https://github.com/mdbs99/Free-JPDF-Pascal</a></blockquote></div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">jsPDF have more reatures. :)</span><br>
</div><div><br></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>