Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, June 2007
Printing to a pdf file with a custom paper format


Message 1 in thread

Hi,

I would like to export a picture to a .pdf file and set the default size of
the .pdf page to for example 5cm x 5cm. (The user should be able to change
it).

How can I achieve this with Qt? I think that the way is to use QPrinter with
the PDF output format and setting the PageSize to Custom. But I cannot find
the method to set the width and height of the custom page.

Where are the functions to set the custom page size?

Greetings
Christoph

--
 [ signature omitted ]