Results 1 to 2 of 2

Thread: QPrinter and images in a pdf

  1. #1
    Join Date
    Mar 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QPrinter and images in a pdf

    Hello,

    I dont know the PDF format, but i wonder if its possible to embed a image with its original image size into a PDF file, but to show it bigger or smaller.

    I used QPrinter/QPainter to create a PDF file that contains a image and has some border, but I have to scale the image first before I can draw it.

    My question is, if is possible to embed an image with its original size into the pdf and make it appear bigger or smaller, can I do this with Qt ?

    The reason for that is, that I want to print large images with some markings and borders and I want do let the printer do the image scaling.

    Any advice will be greatly appreciated.

  2. #2
    Join Date
    Mar 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QPrinter and images in a pdf

    I could solve the Problem now, QSvgRenderer did the trick.

Similar Threads

  1. Qt 4.4.0 printing images
    By ad5xj in forum Newbie
    Replies: 1
    Last Post: 3rd June 2008, 23:07
  2. Replies: 1
    Last Post: 5th December 2006, 11:07
  3. Replies: 16
    Last Post: 25th April 2006, 12:41

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.