Changed DocumentMaker to write to file and then call pdflatex;