How to save a .pdf from a browser?
问题 I tried to save .pdf file using different methods I found on stackoverflow including FileUtils IO , however, I would always get it damaged. As I opened the damaged file using a notepad I got the following stuff: <HEAD> <TITLE> 09010b129fasdf558a- </TITLE> </HEAD> <HTML> <SCRIPT language="javascript" src="./js/windowClose.js"></SCRIPT> <LINK href="./theme/default.css" rel="stylesheet" type="text/css"> <LINK href="./theme/additions.css" rel="stylesheet" type="text/css"> <BODY leftmargin="0"