Hi,
Maybe you can use this marketplace module?
https://marketplace.mendix.com/link/component/27069
It creates a screenshot of the target as JPEG of PNG, what you need and and puts it on a pdf.