@illassad/react-pdf-viewer-search
v3.12.0-illassad.19
Published
A React component to view a PDF document
Maintainers
Readme
@illassad/react-pdf-viewer-search
This is a fork of @react-pdf-viewer/search (v3.12.0) with custom modifications for PDF.js v3 compatibility and enhanced functionality.
Documentation
- DEVELOPMENT_GUIDE.md - Complete guide for making changes, building, and publishing
- FORK_CHANGES.md - Detailed list of all modifications from the original package
Quick Start
For Developers
Making changes to this package:
- Edit source files in
src/(neverlib/) - Run
npm run jsto build - Update version in
package.json - Run
npm publish --access public
See DEVELOPMENT_GUIDE.md for detailed instructions.
For Users
Install the package:
npm install @illassad/react-pdf-viewer-searchUse in your project:
import { searchPlugin } from '@illassad/react-pdf-viewer-search';
import '@illassad/react-pdf-viewer-search/lib/styles/index.css';
// Create plugin instance
const searchPluginInstance = searchPlugin({
autoJumpToFirstMatch: false // Optional: disable auto-jump
});Key Features
- ✅ PDF.js v3 Compatibility - Updated DOM selectors for PDF.js v3.x
- ✅ Optional Auto-Jump Control - Disable automatic jumping to first match
- ✅ Consistent Highlighting - Yellow highlights that work in dark theme
- ✅ Clean UX - Removed hover tooltips
Package Information
- NPM: @illassad/react-pdf-viewer-search
- Current Version: 3.12.0-illassad.17
- Original Package: @react-pdf-viewer/search v3.12.0
Important Notes
⚠️ The build process is NOT broken - it works correctly. Always modify source files and build, never edit build output files directly.
See the documentation files for complete details.
