Giter Site home page Giter Site logo

editpdfdemo's Introduction

[toc]

editpdfdemo

editpdfdemo是vue使用pdf-lib库加载原有pdf文件添加内容。

原文件: image

处理后文件: image

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

技术调研

调研查阅文档

1. jspdf

  1. git库:https://github.com/parallax/jsPDF
  2. api文档:http://raw.githack.com/MrRio/jsPDF/master/docs/index.html
  3. 参考文档:基于PDF和JSPDF实现调整pdf文件大小功能 JSPDF – 基于 HTML5 的强大 PDF 生成工具
  4. 结论:jspdf能添加文本、图片、以及根据html代码生成pdf,如果是修改原有pdf需要把原来的pdf每页变成图片然后再添加内容,生成新的pdf文件(变成图片可能存在大小尺寸问题)--未核实

2. pdftron

  1. 官网地址:https://www.pdftron.com/webviewer/
  2. 功能:注释和协作、数字签名、校订、页面操作、创建表单、文档生成...
  3. 结论:在线的pdf编辑器,免费试用,需要收费。

3. pdf-lib

  1. git库地址:https://github.com/Hopding/pdf-lib
  2. api接口文档:https://pdf-lib.js.org/docs/api/
  3. 功能:创建编辑pdf文档(官方文档提及不提供创建数字签名的功能)

editpdfdemo's People

Watchers

morangqian avatar SmartPanda 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.