Bug 691465

Summary: PDF file is rotated by 180°
Product: Ghostscript Reporter: Info2
Component: PDF WriterAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P4    
Version: 8.71   
Hardware: PC   
OS: Windows XP   
Customer: Word Size: ---
Attachments: two OK files and two nOK files

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.