我想将一些单页 postscript 文件转换为 eps。它们来自同一来源的多页 ps 文件,使用 psselect
提取。当我执行 ps2eps $file
时,一些页面(较短的页面)相对于它们的原始方向旋转(向左旋转 90°)。在 ps2eps 手册页 ( ftp://ftp.tex.ac.uk/tex-archive/support/ps2eps/doc/html/ps2eps.html ) 中,我发现:
ps2eps 过滤器也有 %%Orientation
。但是我检查了 diff file.ps file.eps
文件之间的唯一区别是
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
那么为什么它会改变方向,我该如何防止呢?请注意,我指示查看器以原始方向显示它。
最佳答案
在我的 MacBook Pro 终端中添加标志“-R=-”保留方向:
ps2eps -R=- input.ps
关于linux - 如何防止ps2eps旋转页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15810588/