fix for sag text to pdf