Coder Social home page Coder Social logo

pdf-seal's Introduction

PDF印章

介绍

在线加载PDF文档,并实现盖章效果,提交后可向服务器返回相应信息

起步

  1. 搭建静态服务器

  2. 运行index.html

  3. 浏览所需要的PDF文件,并进行操作

使用框架

  • jQuery.js

  • Bootstrap

  • PDF.js

  • jquery.stamper.js

项目目录

  • lib - 核心功能类库

  • pdf - 存储本地PDF文件

  • config.json - 存储提交网络请求的url地址

  • index.html - 项目入口

功能操作

  • 点击文件列表右侧的查看按钮打开PDF浏览器

    给按钮绑定viewPDF(pdfUrl, stamperUrl)函数即可通过点击调用PDF阅读功能,第一个参数为PDF文件的url路径,第二个参数为章图片的url路径

    文件列表

  • 点击"我要盖章"按钮,图标将会变成印章图案,此时单击需要印章出进行盖章

    PDF浏览

  • 可以在页面上同时盖多个章,每个章的圆心部分会显示序号/页码/坐标等信息

    PDF盖章

  • 在已经印章的区域单击,则会取消点击区域的盖章

  • 操作完毕后,点击"提交数据"按钮,则会将数据以字符串形式发送到指定服务器

    提交数据

pdf-seal's People

Contributors

isyangyuhao avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.