Pentaho

 View Only

 How to produce the PDF output for the HTML code in Pentaho Report Designer

  • Pentaho
  • Pentaho
Kiruthika M's profile image
Kiruthika M posted 03-26-2019 06:44

Pentaho PDF output for the HTML code:

Kindly help me to run the html code in penthao PRPT pdf output.

Am able to acheive the same in HTML output with the help of rich text property.

Why We need: Java Integration team will share the HTML code (chart object) to Pentaho Report designer. Report desigher should accept the html code and should produced as PDF output of that chart image.

<!DOCTYPE HTML>

 

<html><head>  <script>window.onload = function () {var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, theme: "light2", title:{ text: "Simple Line Chart" }, axisY:{ includeZero: false }, data: [{  type: "line",  dataPoints: [ { y: 450 }, { y: 414}, { y: 520, indexLabel: "highest",markerColor: "red", markerType: "triangle" }, { y: 460 }, { y: 450 }, { y: 500 }, { y: 480 }, { y: 480 }, { y: 410 , indexLabel: "lowest",markerColor: "DarkSlateGrey", markerType: "cross" }, { y: 500 }, { y: 480 }, { y: 510 } ] }]});chart.render();}</script></head><body><div id="chartContainer" style="height: 300px; width: 100%;"></div><script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script></body></html>


#Pentaho
Data Conversion's profile image
Data Conversion
Attachment  View in library