various pdf fixes