Creating a PDF from a QtQuick 2 scene in SlideViewer

There are situations in which the slide deck needs to be available in PDF format in addition to the QML source
Source: Ziobudda.net