Added PDF Creation handling.