Take 3 screenshots and save in pdf

i have question i want to take 3 screen shot at a time and all these 3 screenshot save in pdf file
can you tell how this thing is possible

Hi @Jack,

It’s possible to do this in JavaScript, using native methods and third party libraries.

You can start with this example to handle your screen taking code:

https://developer.playcanvas.com/en/tutorials/capturing-a-screenshot

From there you can find some JS canvas tutorials to append all three screenshots to a single bigger canvas.

And last using a JS library (there are several if you do a search) convert that canvas to a PDF.

1 Like