View Full Version : Get PDF file and put text on it

28th May 2019, 22:13
I have a PDF file - for example 10004234.pdf.
I would like to put the some text on it (in specific place - for example 4 cm from the bottom and 2cm from the left) and send it to the printer...

How to read (open) and put the text on the PDF file?

29th May 2019, 00:41
Qt does not have any direct support for reading / displaying / editing PDF files. You can print to PDF if you install a PDF printer on your system or you can use QPdfWriter to write PDF directly to a file using QPainter commands. There are third-party libraries (poppler is one) that allow you to manipulate PDF files, but these are not part of the Qt framework.