Download function works. Added method to disable print and download buttons if there is no file loaded (clicking download if this is the case actually breaks the program).
Print function brings up the print dialog window, but the content to print comes up as null or undefined.