Results 1 to 4 of 4

Thread: Is there a way to set the number of pages for sheet with QPrinter?

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

    Question Is there a way to set the number of pages for sheet with QPrinter?

    Hi, in my app I need to generate a PDF doc. I want to know if there's a way to set the number of pages for sheet using QPrinter or I have to set this value directly in the driver used or maybe, in the worst case, I have to achieve it manually? Thanks.
    Last edited by SkripT; 20th April 2006 at 17:10.

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

    Default Re: Is there a way to set the number of pages for sheet with QPrinter?

    The number of pages depends on the amount of data sent to the printer and it is you who decides when to make a page feed. Maybe I don't understand your question Could you explain?

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

    Default Re: Is there a way to set the number of pages for sheet with QPrinter?

    Quote Originally Posted by wysota
    The number of pages depends on the amount of data sent to the printer and it is you who decides when to make a page feed. Maybe I don't understand your question Could you explain?
    Yes sorry wysota, I have the options in the printer in spanish and maybe I have not translated it correctly I mean the option that allows the user to set one or more pages from the source doc in a sheet (page) in the final doc. I attach an image of this option where I set two pages for sheet vertically.
    Attached Images Attached Images

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

    Default Re: Is there a way to set the number of pages for sheet with QPrinter?

    Aa... ok. This is not possible with QPrinter (at least not directly). You should redirect printing to the native printing mechanism (for example to kprinter under KDE) (or use applications which do multpile page layout -- like psnup under unix).

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

    SkripT (21st April 2006)

Similar Threads

  1. QPrinter without page number
    By estanisgeyer in forum Qt Programming
    Replies: 4
    Last Post: 15th October 2015, 13:19
  2. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13

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.