ghostscript BoundingBox值 [英] ghostscript BoundingBox values
问题描述
我只是问自己,这些bbox值的打印方式是:
I'm just asking myself, what are those bbox values printed out by:
gs -dSAFER -dNOPAUSE -dBATCH -sDEVICE=bbox myfile.pdf
%%BoundingBox: 46 911 1668 4537
%%HiResBoundingBox: 46.080002 911.520035 1667.520064 4536.000173
左上角X,左上角Y ....?
top-left-X, top-left-Y, ....?
这些值(1/72英寸)的大小是多少?
And what's the measurement of those values (1/72")?
感谢您的帮助
推荐答案
这些值在PostScript点"中给出:
These values are given in PostScript "points":
72 points == 1 inch
所以是的,测量值是1/72英寸...
so yes, the measurement value is 1/72''...
需要将这四个值读取为两对坐标,以描述包围边界框的矩形的左下角和右上角点.
The four values need to be read as two pairs of coordinates describing the lower left and the upper right corner points of a rectangle enclosing the bounding box.
PostScript坐标系的原点在左下角.
The PostScript coordinate system has its origin in the lower left corner.
46 911
部分用于左下角点:距 right 左边缘的距离为46 points ,而从处的距离为911 points .底部边缘.
The 46 911
part is for the lower left corner point: 46 points distance from the right left edge and 911 points from the bottom edge.
1668 4537
部分用于右上角的点:距右左边缘的距离为1668 points ,而距右左边缘的距离为4537 points .底部边缘.
The 1668 4537
part is for the upper right corner point: 1668 points distance from the right left edge and 4537 points from the bottom edge.
(已纠正了一些偏瘫的错误,感谢Scolytus的发现.)
(Corrected a somewhat legasthenic error... Thanks to Scolytus for spotting it.)
这篇关于ghostscript BoundingBox值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!