Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@livelybone/easy-pdf
Advanced tools
Readme
pkg.module supported
, which means that you can apply tree-shaking in you project
An easy-to-use PDF rendering library in browser, can be used as a solution to customize the display of PDF in App. Based on mozilla/pdf.js, the js/css is loaded via CDN asynchronously.
https://github.com/livelybone/easy-pdf.git
https://github.com/livelybone/easy-pdf#readme
Your can see the usage by run the example of the module, here is the step:
git clone https://github.com/livelybone/easy-pdf.git
cd your-module-directory
npm i
(use taobao registry: npm i --registry=http://registry.npm.taobao.org
)npm run dev
http://127.0.0.1:3000/examples/test.html
) in your browsernpm i -S @livelybone/easy-pdf
umd
bundleEasyPDF
See what method or params you can use in index.d.ts
import * as EasyPDF from '@livelybone/easy-pdf'
const container = document.getElementById('container')
/** Render all page */
EasyPDF.renderPdf('./sample.pdf', { container }).then(res => {
console.log(res)
})
/** Render single page */
EasyPDF.readPdf('./sample.pdf').then(pdf => {
EasyPDF.renderPdfPage(pdf, 1, { container }).then(res => {
console.log(res)
})
})
Use in html, see what your can use in CDN: unpkg
<-- use what you want -->
<script src="https://unpkg.com/@livelybone/easy-pdf/lib/umd/<--module-->.js"></script>
FAQs
An easy-to-use PDF rendering library in browser, can be used as a solution to customize the display of PDF in App. Based on mozilla/pdf.js, the js/css is loaded via CDN asynchronously. 一个简便易用的,原生使用方式的(适用于各大框架)网页端 PDF 渲染插件,也可作为小程序/App webview 中自定义展示 pdf 的解
The npm package @livelybone/easy-pdf receives a total of 9 weekly downloads. As such, @livelybone/easy-pdf popularity was classified as not popular.
We found that @livelybone/easy-pdf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.