made pdf dpi configurable #12085

I guess the one thing that I'm not so happy about is that I need to pass the dpi to every function that uses stringToPointSize. 

I'm very keen to contribute this so anything you'd like me to change, please let me know.