← All bug reports

FS#1193Landscape print lacks rotation

Type
Bug
Status
Closed
Resolution
Won't fix
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3.9.1
Operating system
Other (Unsupported)
Reported
2015-03-15 by bsdphk
Closed
2015-03-16 by andrew

I have spent a couple of days banging my head against this.

If I print the attached drawing in landscape mode to my printer, the drawing is not rotated, and the paper only contains ~2/3rds, oriented the wrong way.

If I print to PDF-File, open in gv(1), and change the size field from "Automatic" to the chosen papersize, same thing happens.

If I print to Postscript-File, open in gv(1), change the size field to the chosen papersize, the rotation is correct.

Many PDF viewers will autodetect missing rotations and other such stuff, and you will never notice a mistake like this, but gv(1) does it the "old-school" way and shows the mistake.

The crucial bit of the Postscript output is:

  /pageinit {
  % 210 *297  mm (landscape)
   90 rotate 0.060000000 -0.060000000 scale } def

Something similar is missing in the PDF and the output to the printer.

PS: This is also on FreeBSD, but I doubt that matters at all for the "print to file" operations.

Comments (4)

andrew 2015-03-15

This looks OK on other systems.

Many PDF viewers will autodetect missing rotations and other such stuff

This would be news to me. The PDF definitely looks fine here in Adobe Reader and Preview. Perhaps you can attach the PDF file you get, so I can check if the viewers are playing a part in this or the PDF is flawed when generated on your system.

In any case, there's not much we could do about the PDF internals here. QCAD uses the Qt tool kit for printing and PDF output.

bsdphk 2015-03-16

I've attached the pdf file.

You can also see the problem with 'pdfinfo' which says:

Title:
Creator:
Producer:       Qt 4.8.6
CreationDate:   Sun Mar 15 16:29:30 2015
Tagged:         no
UserProperties: no
Suspects:       no
Form:           none
JavaScript:     no
Pages:          1
Encrypted:      no
Page size:      842 x 1191 pts (A3)
Page rot:       0
File size:      2494 bytes
Optimized:      no
PDF version:    1.4

Notice the "Page size", and "Page rot" fields, neither indicate landscape as far as I can tell.

andrew 2015-03-16

Thanks. Definitely a portrait PDF, in all viewers on all platforms I've tested.
In other words, the PDF produced by QCAD on your particular system / installation is a PDF in portrait mode, not landscape.
Perhaps, there is a printer driver setting somewhere that forces this behaviour?
I will close this report now, since I see no chance for this to get solved from my side. It's either a problem with the configuration of your system (could only be fixed on your side) or of Qt on your system (could possibly be fixed by the Qt team).

bsdphk 2015-03-16

FYI: This pdf was made with "export PDF" so printer settings does not come into it.