FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
02-23-2024 10:53 AM
Hello, I wanted to know if it was possible somehow to create in WebIQ a PDF of everything on screen.
For example, if I want to generate a PDF of a chart updated in real time in a specific range, is this possible?
Thank you very much.
Solved! Go to Solution.
02-23-2024 03:00 PM
02-23-2024 03:38 PM
For an exact screenshot rather than generating a PDF and adding all information manually this might help:
https://hackernoon.com/how-to-take-screenshots-in-the-browser-using-javascript-l92k3xq7
02-26-2024 08:53 AM
Hi @Sgilk ,
one of my clients is interested in WebIQ and asked me if he could create a report in PDF of everything on screen with WebIQ.
I posted his question here because I wanted to know if WebIQ could satisfy his request and was therefore the right solution for him.
02-26-2024 09:05 AM
02-26-2024 09:15 AM - edited 02-26-2024 09:15 AM
It depends: WebIQ can do everything any other website can do, but it cannot do more than any other website can do client-wise.
So as you can create PDFs with JavaScript using e.g. pdfmake or pdf.js if that it an option then that's ok - though this is not "everything that's on screen", but "if you include everything shown on the screen manually in your script than that will include everything shown on the screen implicitly".
If you want to create a PDF showing *exactly* what's shown on screen (i.e. a screenshot) I have linked some examples above, however that questions is not a WebIQ, but a general web technology question because with a web HMI the browser decides what and how to render contents, i.e. if something wraps etc. which is why the server cannot render any screen content as PDF, only the client could.