有没有什么方法处理下?
@Ok("raw:application/pdf") public byte[] pdf(HttpServletResponse resp) {
既然是预览,哪来的文件名?
Where is the file name? And how do you know that which file is the user requesting?
@wendal网页打开PDF的title是乱码,下面这样
代çç½ç人API项ç®ä¸å¡ææ¡£
@qq_4f9057d2
look up ,the garbled code happen when open page
把入口方法将要返回的byte[]输出到一个文件, 然后打开看看, 看看是否能打开
例如打赏区的证书也是pdf, 格式合法的情况下, 浏览器会识别的
Looks like the PDF file is generated using an ISO-8859-1 or something.