update to use latest addon api
moved pdf class