How to print a PDF from the browser

前端 未结 7 1589
天涯浪人
天涯浪人 2020-11-28 07:53

In a Web application, is it possible to force a PDF file to be printed on the client? If the browser is configured to open the PDF inside the window, I guess that calling wi

7条回答
  •  感动是毒
    2020-11-28 08:23

    you can set a http header to application/pdf and then force a new window open with javascript and print that way. but who would really do that? i mean come on now.

提交回复
热议问题