[fpc-pascal] wkhtmltopdf - trying use h2pas...
ik
idokan at gmail.com
Mon Feb 7 09:18:32 CET 2011
On Sun, Feb 6, 2011 at 19:29, Marcos Douglas <md at delfire.net> wrote:
> On Sat, Feb 5, 2011 at 8:59 AM, ik <idokan at gmail.com> wrote:
> >
> > Webkit already translated to Pascal, and you use the API, and the amount
> of
> > time to use the API is shorter then the amount of time to translate the
> > header files imho.
>
> Well... I didn't know that...
>
> > You need to load the page to the browser and use the printer api to print
> it
> > to pdf (you can also control how exactly it is done), and tell it where
> to
> > store the pdf.
>
> Not. My program receive a HTML file and convert to PDF file. Just it.
> This program will be used from a site coded in (old) ASP, via an
> (wrapper) ActiveX.
> My first option is use the wkhtmltopdf lib (dll) in my ActiveX. The
> second option is use the wkhtmltopdf binary together at my program
> (easy way).
>
Does the html contain all of the style that requires including images (if
existed) ?
Please note that the CSS need to be set for printing that is a bit different
then viewing.
>
> I got the the lib to Win
>
> http://users.telenet.be/Jan.Van.hijfte/qtforfpc/win_bin-qt4pas-V2.1_Qt4.5.3.zip
> There are many functions in qt4.pas... Could you tell me what
> functions I can use to do the convertion above?
>
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 <http://doc.qt.nokia.com/4.7/qprinter.html>webkit and the printing
API <http://doc.qt.nokia.com/4.7/qprinter.html>.
>
> There is a SVN from sources? Who works in this project?
>
There are few people who work on this some are on this and Lazarus malling
lists.
>
>
> Marcos Douglas
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
Ido
LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110207/7c03e662/attachment.html>
More information about the fpc-pascal
mailing list