Changed PDF text positioning calculations

-Changed way of calculating where the text is placed on the pdf
-Removed some comments