Hacker News 中文摘要

RSS订阅

Show HN:我开发了一个免费的Adobe Acrobat PDF阅读器替代品 -- Show HN: I built a free alternative to Adobe Acrobat PDF viewer

文章摘要

EmbedPDF是一个开源的JavaScript PDF查看器,适用于任何JavaScript项目,支持React、Vue、Svelte等多种框架。它提供流畅的阅读体验和简洁的开发者API,具备注释、搜索、缩放等功能,采用MIT许可证,并包含PDFium的Apache 2.0许可证。

文章总结

EmbedPDF:开源JavaScript PDF阅读器

EmbedPDF是一款基于MIT许可证的开源PDF阅读器,适用于任何JavaScript项目。无论您使用React、Vue、Svelte、Preact还是原生JS进行开发,EmbedPDF都能提供流畅的现代阅读体验和简洁的开发者API。

📚 文档
完整的文档、安装指南、API参考和示例请访问:
👉 https://www.embedpdf.com

🚀 在线演示
立即试用——上传您的PDF或使用示例文件:
👉 https://app.embedpdf.com

✨ 主要功能
- 注释功能(高亮、便签、自由文本、手写)
- 真正的文本擦除(内容被实际移除)
- 搜索、文本选择、缩放、旋转
- 流畅的虚拟化滚动
- 可插拔架构与支持Tree-Shaking的插件

🤝 贡献
我们欢迎贡献!请阅读贡献指南并参与GitHub讨论。

📄 许可证
本项目采用MIT许可证,详情请参阅LICENSE文件。
此外,项目包含PDFium,其基于Apache 2.0许可证。

评论总结

  1. 性能与实现

    • 正面评价:作者billconan分享了自己使用pdfium和C++实现PDF查看器的经验,认为其在WebAssembly中表现优异,并展示了相关演示视频。
      • "I implemented a tiling technique to balance memory usage and performance."
      • "I didn’t realize pdfium could be so performant in WebAssembly."
    • 负面评价:looperhacks和gurjeet指出注释功能在不同浏览器中的表现不一致,Firefox中完全无法使用。
      • "Annotations didn’t work at all in Firefox."
      • "The annotation didn’t show up."
  2. 用户体验与功能

    • 正面评价:typpilol称赞移动端网站运行流畅,响应迅速。
      • "The mobile site works well. Quite fast and snappy."
    • 负面评价:lucfranken提到在切换模式时,标注工具会干扰滚动操作,需刷新页面才能解决。
      • "Impossible to scroll because it still redacts."
      • "Refresh fixes it."
  3. 代码与许可

    • 正面评价:gorgoiler和slig对项目的MIT许可证表示赞赏,认为其非常慷慨。
      • "MIT license is generous. Good for you, and thanks!"
      • "Thank you for sharing and being so generous with the licensing."
    • 负面评价:lysace指出项目未明确标注pdfium的开发者,认为应给予适当的致谢。
      • "It would be polite to credit the developers of the actual PDF engine."
  4. 设计与动机

    • 正面评价:NooZ对项目表示赞赏,并询问开发时长。
      • "Very nice! Thanks for sharing. How long are you working on that?"
    • 负面评价:thyristan认为项目标志设计存在问题,建议修改。
      • "Please change the logo, looks like a swastika."
  5. 项目动机与替代性

    • 正面评价:stronglikedan指出该项目是Adobe Acrobat的免费替代品。
      • "You’re building a free alternative to Acrobat."
    • 负面评价:wewewedxfgdf对项目的动机表示好奇,询问为何在已有Mozilla PDF查看器的情况下仍开发此项目。
      • "I’m curious to know why you built this when the Mozilla PDF viewer exists."
  6. 其他观点

    • 极端观点:lerp-io认为最好的解决方案是直接不使用PDF。
      • "The best solution is simply to not use PDF."