Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Copy and Paste Images from PDF
Forum Updated to NodeBB v4.3 + New Features

Copy and Paste Images from PDF

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 3.0k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    CosmicKeys
    wrote on 16 May 2011, 04:21 last edited by
    #1

    Hello,

    I'm working on a project which at it's core utilizes the tool wkhtmltopdf. You may have heard of it, it is a basic wrapper around QtWebkit used for generating PDFs from HTML pages.

    However I'm having one problem which has become an urgent issue, hopefully someone will be able to help me find a solution. Images cannot be copy/pasted from PDFs generated by QtWebkit - instead a black square/transparent layer is generated.

    Details are here: http://code.google.com/p/wkhtmltopdf/issues/detail?id=606&start=200

    I have been looking at the QPrintEngine code but cannot see any obvious problems - is there anyone that can help me out to resolve this problem?

    Regards

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rajeevpodar
      wrote on 16 May 2011, 12:50 last edited by
      #2

      I have implemented something similar in my last project.
      you need to get the painter from the Printer and then draw the images using that painter on to the printer.

      The main thing in this need to be care is that every printer has different pixel size so you must have a use case to handle that.

      1 Reply Last reply
      0

      1/2

      16 May 2011, 04:21

      • Login

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