added pdf stuff
disable pdf weights by default