Bug 691465 - PDF file is rotated by 180°
Summary: PDF file is rotated by 180°
Status: RESOLVED INVALID
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: 8.71
Hardware: PC Windows XP
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-16 13:04 UTC by Info2
Modified: 2010-07-16 14:11 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
two OK files and two nOK files (175.04 KB, application/zip)
2010-07-16 13:04 UTC, Info2
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Info2 2010-07-16 13:04:38 UTC
Created attachment 6498 [details]
two OK files and two nOK files

I have a technical drawing.

The symbols and the text in the drawing are rotated by 90°, if i wrote more text or draw one more symbol, as it is now, the pdf file ist rotated by 180°.

In the drawing, it's the text -U10.1 in field D0.

I tested it with GS 8.64, 8.70, 8.71 and 8.72, allways the same problem
I used GV 4.9
Comment 1 Ken Sharp 2010-07-16 14:11:18 UTC
(In reply to comment #0)
> Created an attachment (id=6498) [details]
> two OK files and two nOK files
> 
> I have a technical drawing.
> 
> The symbols and the text in the drawing are rotated by 90°, if i wrote more
> text or draw one more symbol, as it is now, the pdf file ist rotated by 180°.

By default pdfwrite attempts to 'auto rotate' pages so that the majority of the text is horizontal. 

When text occurs in multiple orientations, the orientation chosen is the one with the most text. If you then add more text in a different orientation that orientation can suddenly become 'more dominant' and the page will be rotated to make that text orient horizontally instead.

You can prevent the auto rotation by using -dAutoRotatePages=false on the Ghostscript command line.