I have the following code , the result is a pdf which doesn't have any visible text in it. (I guess it renders it as the same color of the background even thoguh we change its colour in the inline style of the html)
var client = require("jsreport-client")('https://localhost:443');
var output = '<html><body><h1 style="color:blue;margin-left:30px;">This is a heading.</h1></body></html>';
client.render({
template: { content: output }
}, function(err, pdfResp) {
pdfResp.pipe(res);
});
When we copy and paste the content of the pdf into a text pad , the result is :
ihsish issi aa gheadinhadinge
Any idea how to solve it ?