Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. want to add PDF in Qt

want to add PDF in Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 706 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PraviN3738
    wrote on last edited by
    #1

    hello QtChamps,,
    i want to add a pdf file to my GUI, to add result data in blank space of table in it.. is that possible.?
    if yes, tell me how to do that..,
    any one there to help me.?
    thank you in advance..

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      There is no easy way to edit pdf files directly in Qt.
      You can draw the table directly to a new pdf but you cannot
      edit them, as in - added to it.

      Does it have to be a pdf where you add to ?
      Qt can produce pdf, so you could have the content as HTML
      and add data to that , then print to a pdf.

      Adding to a pdf would require 3rd party lib and lots, and lots coding.

      How ever, if you really must add to to a pdf. this tool
      https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
      has a cmdline version that can merge pdf. so you could
      print the table data to other pdf and then over lay to the original.

      1 Reply Last reply
      2
      • P Offline
        P Offline
        PraviN3738
        wrote on last edited by
        #3

        thank u, but i need an example to do that guys, anyone here..?

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          I assume you mean generate/print an html table.
          https://stackoverflow.com/questions/29236485/draw-populate-and-print-a-table-to-pdf-file-with-qt

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved