Results 1 to 17 of 17

Thread: Why QPrinter always generates PDF docs with the same size?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default Re: Why QPrinter always generates PDF docs with the same size?

    Quote Originally Posted by Brandybuck
    That's sounds very wrong to me. I just uninstalled my PDF driver (pdf995), then ran the Text Edit demo. I'm not having any problems exporting to PDF without a separate PDF driver.
    I don't understand this. What I'm sure is that before installing PDFCreator there wasn't any printer in my system and I've tried to run the code above and it alerted me that no driver was found (for sure). But nevermind, my real problem is that, with or without a printer driver, if i try to paint an image with QPainter under a QPrinter, the resulting doc has a big size
    I would like to know if there's some other way to convert a succesion of images into a PDF doc?
    Last edited by SkripT; 22nd April 2006 at 09:53.

  2. #2
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default Re: Why QPrinter always generates PDF docs with the same size?

    Well, I add a new post but I don't know if anyone can help me . I've installed Adobe Acrobat Reader 7.0 and has an option that allows working with the images of a PDF document. If I open the document created with Qt, the option is disabled. Otherwise, if I open another doc not created with Qt where the images are compressed, the option is enabled and allows extract the images of the doc. Maybe the problem is the driver that I use (PDfCreator). Anyone knows if there's some way to generate docs with QPrinter where the images are compressed? Can anyone check if, using Qt, can generate docs where the images are compressed using the code that I've posted above or some other way?
    Last edited by SkripT; 22nd April 2006 at 15:47.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Why QPrinter always generates PDF docs with the same size?

    It might be a good idea to take a look at the source code responsible for generating images in pdf files in Qt4. The answer for your problem may be there. If that doesn't help, writing to Trolltech is an option too. I doubt we'll be able to help much here...

  4. The following user says thank you to wysota for this useful post:

    SkripT (22nd April 2006)

  5. #4
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default Re: Why QPrinter always generates PDF docs with the same size?

    If anybody is interested, I have asked my problem in Qt Interest mailing list, and the response from a trolltech's member is the following:
    The problem is not compression but the fact that the image is embedded
    multiple times, even though it is the same. You can either wait until Qt
    4.1.3, which will contain a fix for that, or you can try the current
    snapshots which should have it, too
    .
    So, finally seems that's just a bug... Does anybody knows how much should I have to wait until the next release?

  6. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Why QPrinter always generates PDF docs with the same size?

    You can always use a snapshot as suggested.

  7. #6
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default Re: Why QPrinter always generates PDF docs with the same size?

    Quote Originally Posted by wysota
    You can always use a snapshot as suggested.
    Yes but I'm a little lazy to build it all (> 2hrs)

  8. #7
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default Re: Why QPrinter always generates PDF docs with the same size?

    Finally the Trolls have opened a new task tracker with my bug (ID: 111669): http://www.trolltech.com/developer/t...9&method=entry.
    I hope it will be fixed soon.

Similar Threads

  1. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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
  •  
Qt is a trademark of The Qt Company.