pdf: fixing link generation