Anyone knows what unit system does iTextSharp uses? My first assumption would be pixels but I'm not sure about it.
Thanks!
EDIT: Sorry to not being more specific, and thanks for letting me know. I'm talking about units for measures in the PageSize and Margins.
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).
pointsValue = iTextSharp.text.Utilities.MillimetersToPoints(mmValue)
and more options here https://sourceforge.net/p/itextsharp/itextsharp/ci/31e03918bb1eedc8f0d9efe56b982dfcee7aaa4d/tree/src/core/iTextSharp/text/Utilities.cs#l189
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With