Added PDF support and added an option to include error information and standardoutput
Added support for PDF and added support to include error info and standard output

Added support for PDF and added support to include error info and
standard output