Merge pull request #529 from r2evans/add/524_pdf

add pdf and general graphics-device support