Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要一个 PDF 查看器。我手头有 pdf 文件内容(不是 PDF 文件)。
如何将其显示为 pdf 查看器。就像在pdfjs中一样。
请帮忙。
提前致谢
我想通了。PDFjs 仍然可以解决问题。当我们手头有 pdf 内容时,我们可以给一个后端脚本文件名作为 pdfjs 的 src。
例如:openpdf.php
然后将 pdf 内容作为响应回显(输出)。确保在响应标头中使用内容类型作为“应用程序/pdf”。
就是这样……干杯……!!!