Thanks for the quick response. So the only way would be to create new docx templates and use the docx recipe?
rrohan92
@rrohan92
Posts made by rrohan92
-
RE: Convert PDF templates to docx file
-
Convert PDF templates to docx file
Hi, I'm using chrome-pdf recipe to generate pdf reports. Is there a way to convert the pdf templates to a docx report?
-
JS report client timing out?
Hi,
I'm using the jsreport-client node sdk (https://www.npmjs.com/package/jsreport-client) to connect to docker remote jsreport 2.11.0 on AWS ECS. For large reports, I see that the docker container finishes the rendering of the report in about ~9 minutes but the js report client never gets the response back. I've explicitly set the timeout for the client and the timeout for AWS load balancer is also set to 900 seconds.
Here is the code that uses the client:
const PdfGenClient = require('jsreport-client'); class ReportProxy { static async generateReport(reportContext, secret) { const pdfGenClient = PdfGenClient(secret.baseUrl, secret.userName, secret.password); const response = await pdfGenClient.render(reportContext, { timeout: 9000000, maxBodyLength: Infinity, maxContentLength: Infinity }); return await response.body(); } } module.exports = ReportProxy;
This is the last 2 logs I see on the docker container:
2021-11-16T21:34:39.890Z - [32minfo[39m: Rendering request 12 finished in 506572 ms 2021-11-16T21:34:39.878Z - [32minfo[39m: pdf-utils pdf processing was finished
-
RE: Error: EACCES: permission denied, open '/app/data/fs.lock'
That worked! Thanks for the quick response.
-
Error: EACCES: permission denied, open '/app/data/fs.lock'
I updated jsreport/jsreport:2.5.0-full to jsreport/jsreport:2.7.0-full in docker but running into this: Error: EACCES: permission denied, open '/app/data/fs.lock'
when its trying to initialize the docker container.
Here is the docker file I'm using which worked for 2.5.0:
FROM jsreport/jsreport:2.7.0-full EXPOSE 5488 COPY ./data /app/data COPY ./jsreport.config.json /app/jsreport.config.json COPY ./prod.config.json /app/prod.config.json COPY ./node_modules /app/node_modules RUN export NODE_OPTIONS=--max_old_space_size=6096
-
RE: Dynamic images hosted on server don't show up in reports
The issue is not related to js report. The problem was that we were storing the image in s3 and the s3 signed url had an expiry of 3 minutes so large reports wouldn't be able to access those urls. I just increased the expiry time and it solved the issue. Thanks anyway!
-
RE: Dynamic images hosted on server don't show up in reports
Do you mean logs when the report is created or something else?
-
Dynamic images hosted on server don't show up in reports
Dynamic images hosted on server don't show up in reports that have chinese, korean and japanese characters/language bigger than 100 mb. We are using jsreport:2.5.0-full docker image running on AWS ECS with chrome-pdf recipe. The dynamic images show up normally when report language is different from above irrespective of pdf size.