1
votes

I want to make a kind of Python wrapper for wkhtmltopdf, build from C/C++ sources.

For this i've expected to use ctypes but wkhtmltopdf uses various structures who contain specific types like QPrinter and many others.

Does anybody knows how to use non-standard ctypes fields with Python and the ctypes module ?

I'm also searching informations about using Python-ctypes with c++ source ( .dll library) if someone knows more than me about this, i'll enjoy to learn about those things :)

Thanks a lot !

1

1 Answers

1
votes

I'd recommend that you use a wrapper like py-wkhtmltox instead of trying to use the C API for libwkhtmltox via ctypes.