Johnny Brown
Johnny Brown

Reputation: 1000

iText PDF library - What units are the return values for PdfPtable.getTotalHeight() or calculateHeights() in? Points?

The method in question

I imagine it's points since the library uses that for some other values, but if anyone has used this and knows for sure it would be nice.

Upvotes: 1

Views: 2444

Answers (1)

Mark Storer
Mark Storer

Reputation: 15868

Points. 1/72 of an inch. This is the standard PDF unit of measurement...

Unless a relatively new PDF feature is used to change that for the current document. Unless you're working with architectural drawings, or geospatial data I wouldn't worry about it.

Upvotes: 4

Related Questions