@aecworks/pdfjs-obvdoc

OBVDoc 采用了 pdf.js 来展示 doc 类型的文件。基于 pdf.js 官方的 viewer.js 进行定制。 该仓库fork了github上的官方仓库:[pdf.js@github](https://github.com/mozilla/pdf.js)。 会定期的对官方的修改进行同步,解决重大的bug和功能的升级。

Usage no npm install needed!

<script type="module">
  import aecworksPdfjsObvdoc from 'https://cdn.skypack.dev/@aecworks/pdfjs-obvdoc';
</script>

README

PDF.js for OBVDoc

OBVDoc 采用的了pdf.js 来展示 v2d 类型的文件。基于 pdf.js 官方的viewer进行小范围修改。 该仓库fork了github上的官方仓库:pdf.js@github。 需要定期的对官方的修改进行整合,解决重大的bug和功能的升级。

OBVDoc 主要是使用 dist/lib 目录中的源代码和生成的 web viewer。aecwroks 文件夹存放 OBVDoc 的文档和发布相关的配置等等

branch 管理

OBVDoc的修改需要在 aecworks/master 分支上进行修改,该 master 分支是从 master branch 上 直接创建的,保持了历史变更关系。

常用命令

  • npm install: 安装依赖
  • npm run dist: 从 build/dist 和 其他位置复制文件到 aecworks

如何发布到 npm registry

  • npm config set registry https://registry.npmjs.org/ 或者 npm run set:registry 将 registry 源切换到 nmpjs.org
  • npm adduser: 登录到 npm.org
  • npm publish --access public: 发布

PDF.js

PDF.js is a Portable Document Format (PDF) library that is built with HTML5. Our goal is to create a general-purpose, web standards-based platform for parsing and rendering PDFs.

This is a pre-built version of the PDF.js source code. It is automatically generated by the build scripts.

See https://github.com/mozilla/pdf.js for learning and contributing.