Adds an open-pdf feature

I think (*think*) this time I got everything setup properly. Let me know if it is ok.