This is a basic example of using Lector, a headless PDF viewer for React.
- PDF rendering with canvas layer
- Text selection and copying
- Responsive layout
- Dark mode support
- Loading state handling
- Clone the repository:
git clone https://github.com/unriddle-ai/lector.git
cd lector/examples/basic
- Install dependencies:
pnpm install
- Start the development server:
pnpm dev
- Open http://localhost:5173 in your browser.