Created
April 14, 2020 16:12
-
-
Save maxymania/569c5240a45d4137eb09564c792f9f04 to your computer and use it in GitHub Desktop.
The units for Unit to Inch Conversion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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