added pdf functions
change pdf: phase 1