Added PDF functionality