1
0
-1

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?

Thanks,

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Jamie,

      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.

      Thanks

      Mark

      1. Jamie Kunkel

        Hi Mark,

        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.

        Jamie


      2. Mark Murray

        Hi Jamie,

        no problem, thanks for the feedback; I'll have to search a bit further.

        Thanks

      CommentAdd your comment...