【发布时间】:2013-04-04 12:03:37
【问题描述】:
我想将一些单页后记文件转换为 eps。它们来自同一来源的多页 ps 文件,使用psselect 提取。当我做ps2eps $file 时,一些页面(短页面)相对于它们的原始方向旋转(向左90°)。在 ps2eps 手册页 (ftp://ftp.tex.ac.uk/tex-archive/support/ps2eps/doc/html/ps2eps.html) 我发现:
ps2eps filters also %%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
那么为什么它会改变方向,我该如何防止呢?请注意,我已指示查看器以原始方向显示它。
【问题讨论】:
-
grep Orientation tmp.ps说什么? -
它不打印任何输出。
-
我会尝试使用
-dAutoRotatePages=/None开关,我默认使用gs,因为我发现它总是出于某种原因自动旋转页面。 -
你会如何使用它?使用
psselect、djvups还是需要额外的转换gs -dAutoRotatePages=/None tmp.ps tmp_new.ps? -
我不认为 ps2eps 使用 ps2write 设备(我不确定它甚至使用 Ghostscript),因此该开关将无效。您如何检查 EPS 文件的方向?
标签: linux ghostscript postscript eps