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.
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 -
RE: JSReport 1.x + Google charts + wkhtmltopdf - is there a way to ensure that charts are loaded before rendering the report?
The problem is that it happens only in production and pretty intermittently but thank you for the suggestion.
By the way, to your knowledge did anyone complained about similar problem as well? -
RE: JSReport 1.x + Google charts + wkhtmltopdf - is there a way to ensure that charts are loaded before rendering the report?
Unfortunately we still experiencing this issue with google charts not showing up in some renders of the same report.
How much likely that this will resolve if we migrate to JSReport 2.x and chrome-pdf ? -
RE: JSReport 1.x + Google charts + wkhtmltopdf - is there a way to ensure that charts are loaded before rendering the report?
yep, in testing so far seems to be working as expected, thank you!
-
RE: JSReport 1.x + Google charts + wkhtmltopdf - is there a way to ensure that charts are loaded before rendering the report?
Thank you! I think the
--window-status
is already passed to the engine since it is one of the params that can be set in the designer so no need for thewkhtmltopdf.js
change -
RE: JSReport 1.x + Google charts + wkhtmltopdf - is there a way to ensure that charts are loaded before rendering the report?
What renderer would you suggest to use when we switch to JSReport 2.x?
-
JSReport 1.x + Google charts + wkhtmltopdf - is there a way to ensure that charts are loaded before rendering the report?
We have a situation where from time to time the Google charts components are not rendered in the PDF.
The only reason I can think of is that Google charts JS code is not loaded in time for rendering.
There is a parameterjavascriptdelay
that can be set for wkhtmltopdf which we currently have set to 3000 but this is a very imprecise way of trying to address this issue.
Is there any way to truly wait for the JS to completely load? -
RE: JSReport 1.x exception when rendering report that contains S3 image links
Thank you, I think just replacing broken links with empty URLs should be fine in my case.
-
RE: JSReport 1.x exception when rendering report that contains S3 image links
Is there a way to write a helper that would check if a particular link (image) would return 404 when requested? The wkhtmltopdf seems to be still broken even at the latest version.
-
RE: JSReport 1.x exception when rendering report that contains S3 image links
Thank you, is there any way to pass additional flags to it from jsreport?
-
RE: JSReport 1.x exception when rendering report that contains S3 image links
it happens on the image that cannot be retrieved. Seems to be an issue in the wkhtmltopdf, is there any way to try a newer version of it with JSReport 1.x?