Easy React PDF Viewer for tablet/phone base on pdf-dist.js.
npm install @ogs-ltd/react-pdf-viewerEasy React PDF Viewer for tablet/phone base on pdf-dist.js.
> \*Componnent computer browser base on iframe
``bash`
npm i @ogs-ltd/react-pdf-viewer

`js`
import PDFViewer from "@ogs-ltd/react-pdf-viewer";
import "@ogs-ltd/react-pdf-viewer/dist/style.css";
`html`
| Prop name | Description | Default |
| --------- | ----------- | ------- |
| src or "url" - URL | n/a |(curent: number, totals: number) => string
| pageInfoTextFormat(optional) |
| (curent: number, totals: number) => หน้า ${curent} จาก ${totals} |object
| optionText(optional) | Custom option text by { save: string; save_loading: string; zoom: string; expand: string; exit_expand: string;} | object { save: "บันทึกไฟล์", save_loading: "กำลังบันทึกไฟล์", zoom: "ซูม", expand: "ขยายเต็มจอ", exit_expand: "ออกจากโหมดเต็มจอ"} |
json
node: ">=18.0.0"
``