{"id":26685928,"url":"https://github.com/phuoc-ng/react-pdf-viewer","last_synced_at":"2025-03-26T11:01:12.869Z","repository":{"id":37011936,"uuid":"235939479","full_name":"react-pdf-viewer/react-pdf-viewer","owner":"react-pdf-viewer","description":"A React component to view a PDF document","archived":false,"fork":false,"pushed_at":"2024-08-19T18:31:17.000Z","size":12243,"stargazers_count":2401,"open_issues_count":356,"forks_count":271,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-03-25T18:42:10.576Z","etag":null,"topics":["pdf-viewer","pdfjs","react","react-hooks","typescript"],"latest_commit_sha":null,"homepage":"https://react-pdf-viewer.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-pdf-viewer.png","metadata":{"files":{"readme":"README.md","changelog":"changelogs/v1.0.0.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-24T04:31:13.000Z","updated_at":"2025-03-25T10:38:25.000Z","dependencies_parsed_at":"2024-01-06T15:30:20.383Z","dependency_job_id":"6ed02c17-c7ac-4421-8b05-9e1ae1c9dccf","html_url":"https://github.com/react-pdf-viewer/react-pdf-viewer","commit_stats":{"total_commits":2613,"total_committers":3,"mean_commits":871.0,"dds":0.006888633754305373,"last_synced_commit":"a9e65324d4e4f8fed563aedaa0544a8edcc8197f"},"previous_names":["phuoc-ng/react-pdf-viewer"],"tags_count":51,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-pdf-viewer%2Freact-pdf-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-pdf-viewer%2Freact-pdf-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-pdf-viewer%2Freact-pdf-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-pdf-viewer%2Freact-pdf-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-pdf-viewer","download_url":"https://codeload.github.com/react-pdf-viewer/react-pdf-viewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245641426,"owners_count":20648641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pdf-viewer","pdfjs","react","react-hooks","typescript"],"created_at":"2025-03-26T11:01:12.460Z","updated_at":"2025-03-26T11:01:12.845Z","avatar_url":"https://github.com/react-pdf-viewer.png","language":"TypeScript","funding_links":[],"categories":["Podcast","Uncategorized","UI Components","React [🔝](#readme)"],"sub_categories":["Uncategorized","Miscellaneous","Viewer"],"readme":"# React PDF viewer\n\nA React component to view a PDF document. It's written in TypeScript, and powered by React hooks completely.\n\n![React PDF viewer](https://raw.githubusercontent.com/react-pdf-viewer/react-pdf-viewer/master/assets/screenshot.png)\n\n```javascript\n// Core viewer\nimport { Viewer } from '@react-pdf-viewer/core';\n\n// Plugins\nimport { defaultLayoutPlugin } from '@react-pdf-viewer/default-layout';\n\n// Import styles\nimport '@react-pdf-viewer/core/lib/styles/index.css';\nimport '@react-pdf-viewer/default-layout/lib/styles/index.css';\n\n// Create new plugin instance\nconst defaultLayoutPluginInstance = defaultLayoutPlugin();\n\n\u003cViewer\n    fileUrl='/assets/pdf-open-parameters.pdf'\n    plugins={[\n        // Register plugins\n        defaultLayoutPluginInstance,\n        ...\n    ]}\n/\u003e\n```\n\n## Features\n\n**Basic features**\n\n-   [x] Support password protected document\n-   [x] Zooming: Support custom levels such as actual size, page fit, and page width\n-   [x] Navigation between pages\n-   [x] Can go to the first and last pages quickly\n-   [x] Search for text\n-   [x] Preview page thumbnails\n-   [x] View and navigate the table of contents\n-   [x] List and download attachments\n-   [x] Rotating\n-   [x] Text selection and hand tool modes\n-   [x] Different scrolling modes\n-   [x] Full screen mode\n-   [x] Can open a file from local. Users can drag and drop a local file to view it\n-   [x] Download file\n-   [x] View the document properties\n-   [x] Support SSR\n-   [x] Print\n-   [x] Theming\n-   [x] Dark mode\n-   [x] Accessibility\n\n**Customization**\n\n-   [x] The toolbar can be customized easily\n-   [x] All text items can be localized in another language\n\n## License\n\nYou have to purchase a Commercial License at the [official website](https://react-pdf-viewer.dev).\n\n## About\n\nThis project is developed by _Nguyen Huu Phuoc_. I love building products and sharing knowledge.\n\n-   [DEV](https://dev.to/phuocng)\n-   [Github](https://github.com/phuocng)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuoc-ng%2Freact-pdf-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphuoc-ng%2Freact-pdf-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuoc-ng%2Freact-pdf-viewer/lists"}