Got it, I was thinking about finding and replacing all the links with JavaScript app.launchURL()
but it seems this wouldn't be easy (or even doable) from within the jsreport processing pipeline.
peterlitvak
@peterlitvak
Posts made by peterlitvak
-
RE: Is there a way to have a link in PDF to open in a new browser's tab?
-
RE: Is there a way to have a link in PDF to open in a new browser's tab?
Just to close this, is there a way to add javascript to PDF file via JSReport?
-
RE: The PDF preview doesn't load in Chrome 85.0.4183.121 MacOS 10.15.6
it appears to be a local issue with chrome, incognito mode works just fine
-
RE: The PDF preview doesn't load in Chrome 85.0.4183.121 MacOS 10.15.6
No errors, not in the jsreport console output nor in the Chrome's console, here is the debug output is I click debug:
+49 Executing recipe wkhtmltopdf +52 wkhtmltopdf --debug-javascript --disable-local-file-access --dpi 96 --javascript-delay 3000 --page-size Letter --margin-bottom 4mm --margin-top 6mm --disable-smart-shrinking /var/folders/p8/b1rks_v54wlf13c0nn_jydnm0000gp/T/jsreport/autocleanup/8fd11555-3120-47f2-b8f8-effbab66c0e6.html /var/folders/p8/b1rks_v54wlf13c0nn_jydnm0000gp/T/jsreport/autocleanup/8fd11555-3120-47f2-b8f8-effbab66c0e6.pdf +5634 Loading pages (1/6) [> ] 0% [======> ] 10% [=========================> ] 43% [===========================> ] 46% [============================> ] 48% [============================> ] 48% [==============================> ] 50% [================================> ] 54% [=================================> ] 56% [==================================> ] 58% [====================================> ] 60% [=====================================> ] 62% [======================================> ] 64% [=======================================> ] 66% [=========================================> ] 69% [==========================================> ] 71% [=============================================> ] 75% [==============================================> ] 77% [===============================================> ] 79% [==================================================> ] 84% [===================================================> ] 86% [====================================================> ] 88% [============================================================] 100% Counting pages (2/6) [============================================================] Object 1 of 1 Resolving links (4/6) [============================================================] Object 1 of 1 Loading headers and footers (5/6) Printing pages (6/6) [> ] Preparing [========> ] Page 1 of 7 [================> ] Page 2 of 7 [=========================> ] Page 3 of 7 [==================================> ] Page 4 of 7 [==========================================> ] Page 5 of 7 [===================================================> ] Page 6 of 7 [============================================================] Page 7 of 7 Done +5638 Skipping storing report. +5638 Rendering request 13 finished in 5638 ms
-
Is there a way to have a link in PDF to open in a new browser's tab?
We have a template with a link written like so
<a href="{{:#data.assetLink}}" target="new">REVIEW</a>
When PDF is generated the link would open in the same browser window as the PDF itself, replacing it. Is there a way to specify anything that would open link in a new browser's tab?
We are using wkhtmltopdf and JSReport 2.6.1 -
The PDF preview doesn't load in Chrome 85.0.4183.121 MacOS 10.15.6
We are using JSReport version 2.6.1 and noticed that in the web app designer PDF previews rendered by wkhtmltopdf are not showing up.
It works on the latest version of Safari though. -
RE: Error when processing render request reporter.getAvailableRenderTimeout
thank you, would be nice to have a compatibility matrix available somewhere in the download and install section of the doc.
-
Error when processing render request reporter.getAvailableRenderTimeout
After installing the JSReport 2.x on ubuntu 16.04 and trying the sample report I receive the following error:
2020-03-04T19:21:52.911Z - error: Error when processing render request reporter.getAvailableRenderTimeout is not a function TypeError: reporter.getAvailableRenderTimeout is not a function at HtmlToPdf.conversion (/home/ubuntu/jsreportapp/node_modules/jsreport-wkhtmltopdf/lib/wkhtmltopdf.js:294:26) at /home/ubuntu/jsreportapp/node_modules/jsreport-wkhtmltopdf/lib/wkhtmltopdf.js:266:17 at <anonymous>``` The wkhtmltopdf is of version 0.12.5 Whe jsreport starts it prints the following warning before the regular logging statements:
Warning: jsreport-cli version mismatch:
Global jsreport-cli is 2.2.1
Local jsreport-cli is 2.1.1