Results 1 to 2 of 2

Thread: Get PDF file and put text on it

  1. #1
    Join Date
    May 2019
    Posts
    9
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Get PDF file and put text on it

    Hello!
    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
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    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; 28th May 2019 at 23: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, 07:32
  2. Replies: 7
    Last Post: 5th February 2014, 11:20
  3. Replies: 0
    Last Post: 2nd August 2010, 09:37
  4. Replies: 3
    Last Post: 3rd May 2009, 08:58
  5. Replies: 1
    Last Post: 3rd September 2008, 14:16

Tags for this Thread

Bookmarks

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.