[Qt-interest] Printing to pdf on windows

Diego Schulz dschulz at gmail.com
Tue Mar 3 14:51:00 CET 2009


On Sun, Mar 1, 2009 at 10:57 AM, Christopher Rasch-Olsen Raa
<christopher at technophile.info> wrote:
>
> Hi again,
>
> The usual story: you figure it out just after having asked. The addition of
> printer.setOutputFormat(QPrinter::PdfFormat);
> did the trick.
>
> Thanks anyway.
>
> Btw; why did the code _just work_ on Linux without the above statement?
>

Can you post the output of the command 'file' on your output file?

prompt at linuxbox $  file my_output_file.pdf
my_output_file.pdf: PDF document, version 1.4



More information about the Qt-interest-old mailing list