You can use Flying Saucer to generate PDF files directly from XML/CSS input. Note that the image is always rendered to an internal «canvas» of a certain size. Click on the map and draw a box where the label should be. In the Item Properties tab, expand the Label section and enter the text as shown below. We can enter the text as HTML as well. See also setCreator(). QString QPrinter::docName() const Returns the document name. Checked sends ^SLT T = Time Now Mode.