I want to export a document created in my program (made out of JPanels, JTextAreas, JLabels, etc...) into a pdf using iText library.
I will manually recreate the whole look of my document in iText and that is where I come to a problem.
In order for them to be to 1:1 to scale, I'll visually compare the two as I'm writting the code, hardcoding any spacing, height and such.
However, I want to know which unit to use in MiG so that when somebody runs my program in a different resolution doesn't get deifferent results.
Ideas?