QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category QCAD (main)
  • Assigned To
    Andrew
  • Operating System Other (Unsupported)
  • Severity Low
  • Priority Very Low
  • Reported Version 3.9.1
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by Poul-Henning Kamp - 15.03.2015
Last edited by Andrew - 16.03.2015

FS#1193 - Landscape print lacks rotation

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.

   tst.dxf (42.5 KiB)
Closed by  Andrew
16.03.2015 09:12
Reason for closing:  Won't fix
Admin
Andrew commented on 15.03.2015 19:38

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.

Poul-Henning Kamp commented on 16.03.2015 09:07

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.

(application/pdf)    _.pdf (2.4 KiB)
Admin
Andrew commented on 16.03.2015 09:12

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).

Poul-Henning Kamp commented on 16.03.2015 09:49

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

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing