rrthomas / psutils

Utilities for manipulating PostScript documents
GNU General Public License v3.0
39 stars 11 forks source link

pstops does not recognise left from right #36

Closed opohorel closed 3 years ago

opohorel commented 3 years ago

Hi, I've got an report saying, that pstops doesn't recognise left from right.

These two commands :

$ pstops -pa4 -S '0L(1w,0)+0L(1w,.5h)' <file.ps

$ pstops -pa4 -S '0L(1w,0)+0R(1w,.5h)' <file.ps

produce the same output, yet the top half should be rotated to the left in the first case, to the right in the second. Also, in the second case, the offset (1w,.5h) should be (0,1h) to keep the result on the same page.
rrthomas commented 3 years ago

Thanks for this report; the problem was in normalizing the angle: one step of this process was both unnecessary and done incorrectly.

rrthomas commented 3 years ago

I have released version 2.06 with the fix.