Open jsPDF created pdf in Chrome's new tab/window

前端 未结 5 689
我寻月下人不归
我寻月下人不归 2021-01-03 16:01

How can I open with javascript link data:application/pdf;filename=generated.pdf;base64;DATA in Chrome 71?
Link from console opened successfully, but not fro

5条回答
  •  旧巷少年郎
    2021-01-03 16:19

    You're generating a PDF from its raw data using Javascript. Why not use a reader like Adobe to render it? That is what is happening when you are clicking the link from the console. You could literally just open the link and it will open as a PDF. I think you are possibly over complicating this task.

提交回复
热议问题