Skip to content

Instantly share code, notes, and snippets.

@maxymania
Created April 14, 2020 16:12
Show Gist options
  • Save maxymania/569c5240a45d4137eb09564c792f9f04 to your computer and use it in GitHub Desktop.
Save maxymania/569c5240a45d4137eb09564c792f9f04 to your computer and use it in GitHub Desktop.
The units for Unit to Inch Conversion
// https://stackoverflow.com/questions/21520015/pdfbox-converting-inches-or-centimeters-into-the-coordinate-system
private static final int DEFAULT_USER_SPACE_UNIT_DPI = 72;
private static final float MM_TO_UNITS = 1/(10*2.54f)*DEFAULT_USER_SPACE_UNIT_DPI;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment