I need to make a printscreen and save it as a pdf file.
I have tried “[color=#0000FF]system.print.printToImage(event.source.parent, “Screen.jpg”)[/color]” to generate an image.
And also I have tried this code:
[color=#0000FF]windowName = system.nav.getCurrentWindow()
rc = system.gui.getWindow(windowName).getRootContainer()
job = system.print.createPrintJob(rc)
job.showPageFormat = 0
job.orientation = system.print.LANDSCAPE
# window not opened
If I have the “Pdf Creator” as primary printer, it works. But I would like to ask if there is other way to generate a pdf file without using the “Pdf Creator”??
Maybe with “[color=#0000FF]fpmi.system.execute()[/color]” or importing a library…
Thanks for the help!