Added if/then statements to deal with all platforms

Added if/then for how to split newdocument
Added if/then for pdftohtml command