1
0
-1

Hi,

In Maestro, under preview → receipt → html receipt, I can get the generated html before sending to phantomJs for PDF rendering.


I am thinking about trying out another html to PDF tool, and I am wondering is there some way to generate html along with images and fonts in TM, so  I pipe the html into another PDF rendering engine?

Cheers

Mike Chen 

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Mike,

      You can use JQuery to get the HTML of the 'html' element in the code below.

      If you want to send the HTML to a Dynamic Data Service, you will need to encode it as base64 using btoa().

      var html = $('html').html();
        DynamicData.call('A Service', {"html": btoa(html)}).then(function(reply) {

        ...
      });

        CommentAdd your comment...