Removed unused pdf code