ITextSharp A4 rounding

In accordance with ISO standard A4 is 210x297 mm or about 595.2756x841.8898 points. Is there any reason in iTextSharp, the point values ​​are rounded, i.e. 595x842 although they swim?

enter image description here

+4
source share
2 answers

I am a member of the ISO committee responsible for the PDF standard. The standard defines that all measurements in PDF format are expressed in user units ( NOT ).

One user unit by default roughly corresponds to one printing point, but the ISO committee is aware of the fact that they are not exactly the same.

. ISO -, . ISO-32000-2 (PDF 2.0), ISO-32000-1 , - , , ISO -32000-2..

: , A4 PDF 595 842 (, , ) iText.

+6

. PageSize.A4.Right PageSize.A4.Top - (, ), A4 ( iTextSharp). PageSize.cs:

  /** This is the a4 format */
  public static readonly Rectangle A4 = new RectangleReadOnly(595,842);

, .

EDIT:

. . :

, ,

+4

All Articles