Reworked PDF library a little to be a bit more forgiving with regards setting constants