We have the general need to render HTML disclosure web pages to PDF, so that they can be appended to the receipt PDF. I've tested with PhantomJS from the command-line and it does a fairly good job. And I've created a test using iText XmlWorker - which will take more work to get looking good because of CSS and <img> tags.
Is there a preferred approach for doing this from service code? PhantomJS (which I'm not sure yet how to launch from a service) or iText? And would anyone have an example of making a fairly complex page look good?
did you make any progress with this issue?
We have some 'not so pretty' pdf receipts, that we would like to make 'pretty' and we are investigating iText.
At the moment we have a proof of concept working in legacy service code to convert a html doc to pdf. But we would like to get iText working in Fluent service code.
An even better solution would be to get Maestro default receipts 'looking good', but there are a few challenges with that at the moment. Hence our approach to create a html receipt, then convert to pdf.
any feedback would be appreciated.
We did not make any progress on this. Instead we had the client change their supplied disclaimers as PDFs so that we didn't need to render HTML to PDF.
no problem, thanks for the feedback; I'll have to search a bit further.