Hello,
I'm in the process of writing a wkhtmltox library wrapper. I got most parts working despite my small C experience.
My problem at the moment is retrieving the output PDF. Since I don't want to let the library write the PDF file into some kind of temp dir, I plan to use the wkhtmltopdf_get_output method[1].
This method writes the PDF data into a const unsigned char **
My question is: Is there a possibility to directly provide a fitting variable or do I need to write a C wrapper function that calls a exported Go method. I would like to minimize data copies.
Jan
[1]
https://github.com/wkhtmltopdf/wkhtmltopdf/blob/master/src/lib/pdf.h#L75