fixes to pdf linking