[fpc-pascal] wkhtmltopdf - trying use h2pas...

Marcos Douglas md at delfire.net
Sat Feb 5 11:23:29 CET 2011


On Sat, Feb 5, 2011 at 7:13 AM, Michael Van Canneyt
<michael at freepascal.org> wrote:
>
> With an editor, open pdf.h, and replace the CAPI macro with an empty string.

I thought that, but I'm not good on C so... what do this macro?

> Then, run
>
> h2pas libwkhtmltox-0.10.0_rc2\include\wkhtmltox\pdf.h -l wkhtmltox0.dll -o
> wkhtmltox0.pas -D -p
>
> (do not forget the -D)
>
> If you're on windows, open the file and do a search and replace:
> cdecl
> with
> {$ifdef MSWINDOWS}stdcall{$else}cdecl{$endif}
>
> Then it should function.

OK, no errors. I can't test the code now, but I will and tell you later. Thanks!

Marcos Douglas



More information about the fpc-pascal mailing list