質問

I want to convert some single page postscript files to eps. They are from the same source multiple page ps file, extracted with psselect. Some of the pages (the short ones) are rotated (by 90° to the left) with respect to their original orientation when I do ps2eps $file. In the the ps2eps man pages (ftp://ftp.tex.ac.uk/tex-archive/support/ps2eps/doc/html/ps2eps.html) I found: ps2eps filters also %%Orientation. But I checked with diff file.ps file.eps that the only difference between the files is

diff tmp.ps tmp.eps 
1c1,3
< %!PS-Adobe-3.0
---
> %!PS-Adobe-2.0 EPSF-2.0
> %%BoundingBox: 132 613 466 750
> %%HiResBoundingBox: 132.000000 613.500000 465.500000 749.500000
9d10
< %%Pages: 1 0
12a14,23
> % EPSF created by ps2eps 1.68
> %%BeginProlog
> save
> countdictstack
> mark
> newpath
> /showpage {} def
> /setpagedevice {pop} def
> %%EndProlog
> %%Page 1 1
14d24
< 
85d94
< 
476a486,490
> %%Trailer
> cleartomark
> countdictstack
> exch sub { end } repeat
> restore

So why does it change orientation and how can I prevent it? Note that I instructed my viewer to display it in original orientation.

役に立ちましたか?

解決

On my MacBook Pro in Terminal adding the flag "-R=-" preserves orientation:

ps2eps -R=- input.ps

他のヒント

If your generated eps file is rotated 90 degrees anti-clockwise for example, you can avoid this issue by amending the conversion command to 'ps2eps +R=+ file.ps' which rotates the generated eps file 90 clockwise.

Also looking at the options with '-R' under 'ps2eps --help' shows many options to rotate your generated eps file.

i found a work-around which works for me but some of you might not like. Here goes... First use ps2pdf then delete the original ps then use pdf2ps then use ps2eps

I know it sounds ridiculous but thats the only thing that works for me without any drawbacks and the quality seems to be still there in my case. Good luck

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top