start of save as PDF support