Author: firstname.lastname@example.org (rogerw)
Hi, Does anyone have a way to convert an Uniface-string containing html to a Uniface-string containing a pdf-file (raw or base64) without writing to a temporary html-file and pdf-file? Writing to temporary files I can use eg. spawn "#wkhtmltopdf.exe %%htmlFile%%% %%pdfFile%%%" Then I can use fileload/raw to get the pdf into an variable. But in this case, due to security restrictions, it would be better not writing any temporary files, although they can be deleted afterwards. There is a wkhtmltopdf C-library that probably contains the needed functions, but I'll see if I find some easier way before starting to compile something containing the wkhtmltopdf library. There is quite a long time since I made som C-routines/C++routines for Uniface..... The goal is to send the pdf-file (string), base64 coded, into a web-service. Regards RogerW.