use logging instead of print, right
fix annoying PDF link location problem when the link has a sub-tag inside it