General Write In PDF Functionality