fixed a couple of problems with do=getpdf