Results 1 to 2 of 2

Thread: Get PDF file and put text on it

  1. #1
    Join Date
    May 2019
    Qt products

    Default Get PDF file and put text on it

    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?

  2. #2
    Join Date
    Jan 2008
    Alameda, CA, USA
    Thanked 776 Times in 766 Posts
    Qt products
    Windows Android

    Default Re: Get PDF file and put text on it

    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.
    Last edited by d_stranz; 29th May 2019 at 00:45.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 1
    Last Post: 31st October 2014, 08:32
  2. Replies: 7
    Last Post: 5th February 2014, 12:20
  3. Replies: 0
    Last Post: 2nd August 2010, 10:37
  4. Replies: 3
    Last Post: 3rd May 2009, 09:58
  5. Replies: 1
    Last Post: 3rd September 2008, 15:16

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.