![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@unriddle-ai/lector
Advanced tools
Simple primitives to compose powerful PDF viewing experiences.
powered by PDF.js
and React
lector
A composable, headless PDF viewer toolkit for React applications, powered by PDF.js
. Build feature-rich PDF viewing experiences with full control over the UI and functionality.
npm install @unriddle-ai/lector pdfjs-dist
# or with yarn
yarn add @unriddle-ai/lector pdfjs-dist
# or with pnpm
pnpm add @unriddle-ai/lector pdfjs-dist
Here's a simple example of how to create a basic PDF viewer:
import { CanvasLayer, Page, Pages, Root, TextLayer } from "@unriddle-ai/lector";
import "pdfjs-dist/web/pdf_viewer.css";
export default function PDFViewer() {
return (
<Root
fileURL='/sample.pdf'
className='w-full h-[500px] border overflow-hidden rounded-lg'
loader={<div className='p-4'>Loading...</div>}>
<Pages className='p-4'>
<Page>
<CanvasLayer />
<TextLayer />
</Page>
</Pages>
</Root>
);
}
We welcome contributions! Key areas we're focusing on:
Special thanks to these open-source projects that provided inspiration:
MIT © Unriddle AI
FAQs
Headless PDF viewer for React
The npm package @unriddle-ai/lector receives a total of 261 weekly downloads. As such, @unriddle-ai/lector popularity was classified as not popular.
We found that @unriddle-ai/lector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.