Fix #1515 "Rich text containing links still appears in PDF"