How can I find(in mm) the width and the height of a pdf page using PDFBox? Currently, I\'m using this:
System.out.println(page.getMediaBox().getHeight()); Sy
Coordinates in DTP points are defined as: 1 pt = 1/72 inch = 25.4/72 mm
You could write a method like this:
public float pt2mm(float pt) { return pt * 25.4f / 72; }