Copy link to clipboard
Copied
Hi all, I'm trying to get my node.js app to generate a PDF of a table with some data on it.
I am using createPdfFromDynamicHtml.
My data got successfully rendered, but not their row color.
row.style.backgroundColor = `green`;
This results in:
Notice that the my bootstrap rounded edge style at <th> is poorly applied also.
It seems to me that the parser is somehow taking a snapshot earlier than it should?
Here is a snippet of where I put my code in index.html
</head>
<body class="spectrum spectrum--medium spectrum--light" onload = "initial()">
<script src="./json.js"></script>
<script type="text/javascript">
function initial() {
var document = window.document;
When looking at index.html in a browser, the rows are colored as intended.
Have something to add?