21

任何人都知道 iTextSharp 使用什么单位制?我的第一个假设是像素,但我不确定。

谢谢!

编辑:很抱歉没有更具体,感谢您让我知道。我说的是 PageSize 和 Margins 中的度量单位。

4

2 回答 2

26

If I remember correctly it uses "points", the same unit of measurement as a font (as PDF is centered around correct font rendering).

One "point" is 1/72 of an inch (or about 0.353mm).

于 2009-09-16T18:17:00.140 回答
4
pointsValue = iTextSharp.text.Utilities.MillimetersToPoints(mmValue)

以及更多选项在这里 https://sourceforge.net/p/itextsharp/itextsharp/ci/31e03918bb1eedc8f0d9efe56b982dfcee7aaa4d/tree/src/core/iTextSharp/text/Utilities.cs#l189

于 2016-11-13T15:09:43.073 回答