我们如何在已经上传到同一角度应用的角度应用程序内打开PDF文件
我正在开发一个角度应用程序,其中我上传了一个PDF文件。我需要在ModalWindow中的同一应用程序中打开同一PDF文件。 我尝试使用但没有用。我不应该使用任何PDF观看器
I am developing an angular application in which I uploaded a pdf file. I need to open the same pdf file onClick of it inside same application in a modalwindow.
I tried using and but no use. I should not use any pdf-viewers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您只需在新的选项卡中重新使用上传的PDF,然后将其打开:
如果您不想在新选项卡中打开它,则需要找到一个插件来显示HTML内的BLOB。或者也许是iframe。
尝试使用元素,将资源作为blob
html
javaScript
- >也看
使用pdfobject嵌入斑点
Yes you can just re-use your uploaded pdf like blob and open it in a new Tab:
If you don't want to open it in a new tab, you need to find a Plugin to display blob inside your html. Or maybe with iframe.
Try using element, requesting resource as a Blob
html
javascript
-> Also see
Embed a Blob using PDFObject