# gjTool/pdfh5

web/h5/移动端PDF预览插件，可手势缩放。支持npm install和script标签引入

Repository: https://github.com/gjTool/pdfh5
Canonical: https://ross.abutalabs.com/products/pdfh5
Homepage: https://pdfh5.gjtool.cn/pdfh5/pdf.html
Language: JavaScript
License: MIT
License Family: permissive
Topics: pdfjs, pdf-viewer, jquery-plugin, mobile, javascript-plugin, pdf-pdfh5, pdf, pdfh5, pdfh5js, mobile-web, mobile-pdf, javascript, react, vue
Last push: 2025-10-19T14:56:10+00:00

## Health v2 (maintenance only)
Score: 51/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 47, release rhythm 29, longevity 100
- inputs: {"age_days": 2955, "days_push": 318, "days_rel": 318, "gap_med": 154, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1101, forks 244 (observed 2026-08-28T04:03:35.735817+00:00)

## What it is
pdfh5.js is a JavaScript plugin for rendering and previewing PDF files in web and mobile (H5) browsers, built on top of PDF.js. It supports gesture zoom, lazy and segmented loading, password-protected PDFs, and integrates via script tag or npm with Vue and React.

## Use cases
- preview pdf files on mobile web pages
- embed a pdf viewer in a vue app
- render pdfs with pinch-to-zoom on h5
- display password-protected pdfs in the browser
- lazy load large pdf files in web frontend
- add pdf preview to a react project

## When to choose
- you need mobile-friendly pdf viewing with gesture zoom in a browser
- you want a lightweight drop-in pdf viewer via script tag or npm
- your project uses Vue or React and needs pdf rendering

## When to avoid
- you need a native mobile pdf viewer outside the browser
- you need heavy pdf editing or annotation features
- you need server-side pdf processing

## Facets
- artifact type: plugin
- maturity: active
- function: pdf-viewer, ui-components, image-processing
- domain: pdf, web-development, frontend, mobile-development
- platform: browser, cross-platform
- tags: pdfjs, jquery-plugin, mobile-web, gesture-zoom, vue, react, h5, web-server

## Member repositories
- gjTool/pdfh5 (main) score 51

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:35.735817+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:45:42.585404+00:00, confidence not recorded.
  - readme: https://github.com/gjTool/pdfh5 (fetched 2026-08-28T04:03:35.735817+00:00, sha 4a5c18d297f7)
  - homepage: https://pdfh5.gjtool.cn/pdfh5/pdf.html (fetched 2026-08-29T12:48:43.415555+00:00, sha 3052c07191b1)
  - registry_npm: https://registry.npmjs.org/pdfh5 (fetched 2026-08-29T12:48:43.417931+00:00, sha 235f11b79d44)
- Data as of 2026-08-30T08:39:29.467469+00:00.
