Render Web Page to PDF | window.JSREPORT_READY_TO_START does not work
-
I am unable to print a web page to PDF.
I want to convert https://tomastrajan.github.io/angular-ngrx-material-starter#/examples/stock-market to PDF. But it should wait for the page to complete visually. and then start the PDF generation. But seems it is not working.
Tried the following approach, but it times out.
Template:
Script:
-
That script triggering the print with
window.JSREPORT_READY_TO_START
would need to be in that stock-market page. This means your template will just wait until it times out.You can try waiting for the network instead
-
Why don’t the other properties, like
pdf margin top
, get applied to this PDF?
-
It gets applied for me.
I can setmarginTop
in script and also in the studio.