[#1002] Update text/pdf previews to new method