<div dir="ltr"><br><br>
<br><br><div class="gmail_quote">On Sun, Feb 6, 2011 at 19:29, Marcos Douglas <span dir="ltr"><<a href="mailto:md@delfire.net">md@delfire.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Sat, Feb 5, 2011 at 8:59 AM, ik <<a href="mailto:idokan@gmail.com">idokan@gmail.com</a>> wrote:<br>
><br>
> Webkit already translated to Pascal, and you use the API, and the amount of<br>
> time to use the API is shorter then the amount of time to translate the<br>
> header files imho.<br>
<br>
</div>Well... I didn't know that...<br>
<div class="im"><br>
> You need to load the page to the browser and use the printer api to print it<br>
> to pdf (you can also control how exactly it is done), and tell it where to<br>
> store the pdf.<br>
<br>
</div>Not. My program receive a HTML file and convert to PDF file. Just it.<br>
This program will be used from a site coded in (old) ASP, via an<br>
(wrapper) ActiveX. </blockquote><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
My first option is use the wkhtmltopdf lib (dll) in my ActiveX. The<br>
second option is use the wkhtmltopdf binary together at my program<br>
(easy way).<br></blockquote><div><br>Does the html contain all of the style that requires including images (if existed) ?<br>Please note that the CSS need to be set for printing that is a bit different then viewing.<br> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I got the the lib to Win<br>
<a href="http://users.telenet.be/Jan.Van.hijfte/qtforfpc/win_bin-qt4pas-V2.1_Qt4.5.3.zip" target="_blank">http://users.telenet.be/Jan.Van.hijfte/qtforfpc/win_bin-qt4pas-V2.1_Qt4.5.3.zip</a><br>
There are many functions in qt4.pas... Could you tell me what<br>
functions I can use to do the convertion above?<br></blockquote><div><br>It contain examples on how to use webkit (please look at them, they does all you require), but you do not require to use the whole API, only small parts of it of <a href="http://doc.qt.nokia.com/4.7/qprinter.html"></a>webkit and the <a href="http://doc.qt.nokia.com/4.7/qprinter.html">printing API</a>.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
There is a SVN from sources? Who works in this project?<br></blockquote><div><br>There are few people who work on this some are on this and Lazarus malling lists. <br></div><div><br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5"><br>
<br>
Marcos Douglas<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br><br>Ido<br clear="all">LINESIP - Opening the source for communication<br><a href="http://www.linesip.com/" target="_blank">http://www.linesip.com</a><br><a href="http://www.linesip.co.il/" target="_blank">http://www.linesip.co.il</a><br>
<br></div>