Skip to content

Commit 392ff5d

Browse files
Update README.md
rebranded to React PDF Kit
1 parent 28a8edb commit 392ff5d

1 file changed

Lines changed: 82 additions & 60 deletions

File tree

README.md

Lines changed: 82 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<a href="https://www.react-pdf.dev/?utm_source=github&utm_medium=referral" target="_blank">
33
<picture>
44
<source srcset="./assets/img/react-pdf_cover.webp" width="100%">
5-
<img alt="React PDF" src="./assets/img/react-pdf_cover.webp width="100%">
5+
<img alt="React PDF Kit" src="./assets/img/react-pdf_cover.webp width="100%">
66
</picture>
77
</a>
88
</div>
@@ -15,22 +15,22 @@
1515

1616
<div align="center">
1717

18-
[React PDF Home][reactpdf] - [License](#page_facing_up-license) - [Documentation][reactpdf-docs]
18+
[React PDF Kit Home][reactpdf] - [License](#page_facing_up-license) - [Documentation][reactpdf-docs]
1919

2020
[![NPM Version](https://img.shields.io/npm/v/%40pdf-viewer%2Freact)][npm]
2121
[![Twitter](https://img.shields.io/twitter/follow/ReactPDF?label=ReactPDF&style=social)][twitter]
2222

2323
</div>
2424

25-
# :star: Why React PDF
25+
# :star: Why React PDF Kit
2626

27-
- **Save Weeks of Development Time**: React PDF simplifies PDF integration with ready-to-use tools, minimizing the need for custom development and saving you valuable time.
27+
- **Save Weeks of Development Time**: React PDF Kit simplifies PDF integration with ready-to-use tools, minimizing the need for custom development and saving you valuable time.
2828
- **Tailored for React.js**: React PDF is native to React.js, ensuring smooth integration into your projects.
2929
- **Customizability at Its Core**: Built with flexibility in mind, allowing you to match your application’s unique style and functionality.
3030
- **High-Performance & Rapid Rendering**: Optimized for rendering large PDFs efficiently, React PDF delivers lightning-fast load times with features like virtual scrolling.
31-
- **Accessibility**: Designed with inclusivity in mind, React PDF supports ARIA attributes, catering to diverse user bases.
32-
- **Modern Browser Compatibility**: Works seamlessly across modern browsers, eliminating compatibility headaches.
33-
- **Active Development & Support**: With regular updates and a responsive support team, React PDF evolves to meet developer needs.
31+
- **Accessibility**: Designed with inclusivity in mind, React PDF Kit supports ARIA attributes, catering to diverse user bases.
32+
- **Modern Browser Compatibility**: The React PDF Viewer components seamlessly across modern browsers, eliminating compatibility headaches.
33+
- **Active Development & Support**: With regular updates and a responsive support team, React PDF Kit evolves to meet developer needs.
3434

3535
# 📜 Background
3636

@@ -47,41 +47,63 @@ As developers ourselves, we faced many issues such as browser incompatibility an
4747
- 📂 **Document Management Tools**, including features like downloading and printing.
4848
- 👁️ **Accessibility Support** to built-in support for ARIA attributes and tooltips, catering to diverse user bases.
4949

50-
For the full feature set, visit [React PDF Features](https://www.react-pdf.dev/features?utm_source=github&utm_medium=referral).
50+
For the full feature set, visit [React PDF Kit Features](https://www.react-pdf-kit.dev/features?utm_source=github&utm_medium=referral).
5151

5252
# :zap: Quick Start Guide
5353

54-
Here’s how to get started with React PDF in your React.js project:
54+
Here’s how to get started with React PDF Kit in your React.js project:
5555

5656
## 1. Check Prerequsities
5757

58-
Here are the basic system requirements to run the React PDF component:
58+
Here are the basic system requirements to run the React PDF Viewer component:
5959

6060
- React version: >= 18.0
6161
- React version: >= 19.0
6262

63-
If you are working with a React framework such as Next and Gatsby, React PDF can run smoothly as long as you are using React 18 and above.
63+
If you are working with a React framework such as Next.js (App Router and Pages Router) or Gatsby, React PDF can run smoothly as long as you are using React 18 and above.
6464

65-
React PDF viewer also works well with other React.js UI libraries such as MUI, Ant Design and Chakra UI.
65+
React PDF also works well with other React.js UI libraries such as MUI, Ant Design and Chakra UI.
6666

67-
Although React PDF can run on most JavaScript module bundlers, it is more vigorously tested on Vite and Webpack.
67+
Although React PDF Kit can run on most JavaScript module bundlers, it is more vigorously tested on Vite and Webpack.
6868

6969
_Remark: <br/>- If using TypeScript, it requires >= TypeScript 4.6._
7070

7171
### Browser support
7272

73+
Starting from [`@react-pdf-kit/viewer@^2.0.0`](https://www.npmjs.com/package/@react-pdf-kit/viewer), we officially support PDF.js 5 and default to PDF.js `5.4.530`.
74+
75+
As newer PDF.js versions rely on more modern browser APIs, minimum supported browser versions have changed. Please review the compatibility details below before choosing a PDF.js version.
76+
77+
#### Default (PDF.js 5.4.530)
78+
79+
React PDF Kit v2.0.0 defaults to PDF.js `5.4.530`.
80+
7381
| Chrome | Firefox | Edge | Safari | Safari iOS | Chrome Android |
7482
| ------ | ------- | ---- | ------ | ---------- | -------------- |
75-
| 115+ | 115+ | 115+ | 16.5+ | 16.5+ | 126+ |
83+
| 126+ | 126+ | 126+ | 18.4+ | 18.4+ | 126+ |
84+
85+
<Aside>
86+
It's currently not recommended to use a PDF.js worker version beyond `5.4.530` because it will support fewer browser versions.
87+
</Aside>
88+
89+
#### Using PDF.js 4.10.38
90+
91+
If you need broader browser compatibility, you can continue using PDF.js `4.10.38`, which supports:
92+
93+
| Chrome | Firefox | Edge | Safari | Safari iOS | Chrome Android |
94+
| ------ | ------- | ---- | ------ | ---------- | -------------- |
95+
| 119+ | 115+ | 115+ | 17.4+ | 17.4+ | 126+ |
96+
97+
To change the version of PDF.js used, refer to [Dependency Override](/usage-guide/overriding-dependency) guide.
7698

7799
## 2. Install the Package
78100

79-
There are a few ways you can install React PDF, namely `bun`, `npm`, `pnpm` or `yarn`.
101+
There are a few ways you can install React PDF Kit, namely `bun`, `npm`, `pnpm` or `yarn`.
80102

81103
### Using bun:
82104

83105
```bash
84-
bun add @pdf-viewer/react
106+
bun add @react-pdf-kit/viewer
85107
```
86108

87109
##### Caching of previous Worker version with `bun`
@@ -96,103 +118,103 @@ rm -R node_modules
96118
### Using npm:
97119

98120
```bash
99-
npm install @pdf-viewer/react
121+
npm install @react-pdf-kit/viewer
100122
```
101123

102124
### Using yarn:
103125

104126
```bash
105-
yarn add @pdf-viewer/react
127+
yarn add @react-pdf-kit/viewer
106128
```
107129

108130
### Using pnpm:
109131

110132
```bash
111-
pnpm add @pdf-viewer/react
133+
pnpm add @react-pdf-kit/viewer
112134
```
113135

114-
For more information on how to use different package managers, please visit our [installation guide](https://docs.react-pdf.dev/introduction/getting-started/#installation?utm_source=github&utm_medium=referral).
136+
For more information on how to use different package managers, please visit our [installation guide](https://docs.react-pdf-kit.dev/introduction/getting-started/#installation?utm_source=github&utm_medium=referral).
115137

116138
## 3. Import and Use the Component
117139

118140
The following structure demonstrates how to build a React PDF viewer by importing and assembling components. This modular approach gives you the flexibility to customize the viewer as needed.
119141

120142
```tsx
121-
<RPConfig> {/* Configuration license and pdfjs-dist worker */}
122-
<RPProvider> {/* Viewer context provider */}
123-
<RPTheme> {/* Theme customization (optional) */}
124-
<RPDefaultLayout> {/* Default layout container */}
125-
<RPPages /> {/* PDF pages renderer */}
126-
</RPDefaultLayout>
127-
</RPTheme>
143+
<RPConfig> {/* Configuration license and pdfjs-dist worker */}
144+
<RPTheme> {/* Theme customization (optional) */}
145+
<RPProvider> {/* Viewer context provider */}
146+
<RPLayout toolbar> {/* Provide the default toolbar structure */}
147+
<RPPages /> {/* Render the actual PDF content */}
148+
</RPLayout>
128149
</RPProvider>
129-
</RPConfig>
150+
</RPTheme>
151+
</RPConfig>
130152
```
131153

132154
_Remark: For more information on each component, please refer to [Component](https://docs.react-pdf.dev/components/overview?utm_source=github&utm_medium=referral)._
133155

134156
### Basic Usage
135157

136-
The most basic usage of React PDF viewer needs four components, namely: `RPConfig`, `RPProvider`, `RPDefaultLayout`, and `RPPages`.
158+
The most basic usage of React PDF viewer needs four components, namely: `RPConfig`, `RPProvider`, `RPLayout`, and `RPPages`.
137159

138160
Here's how to implement a basic PDF viewer in a React application:
139161

140162
```jsx
141-
import { RPProvider, RPDefaultLayout, RPPages, RPConfig } from '@pdf-viewer/react'
163+
import { RPProvider, RPLayout, RPPages, RPConfig } from '@pdf-viewer/react'
142164

143165
const App = () => {
144166
return (
145167
<RPConfig>
146168
<RPProvider src="https://cdn.codewithmosh.com/image/upload/v1721763853/guides/web-roadmap.pdf">
147-
<RPDefaultLayout style={{ height: '660px' }}>
169+
<RPLayout toolbar style={{ height: '660px' }}>
148170
<RPPages />
149-
</RPDefaultLayout>
171+
</RPLayout>
150172
</RPProvider>
151173
</RPConfig>
152174
)
153175
}
154176
export default App
155177
```
156178

157-
The PDF viewer will automatically adjust to fit its container's dimensions. You can control the size by setting the `style` prop on `RPDefaultLayout`. For more information on using React PDF, visit our [basic usage guide](https://docs.react-pdf.dev/introduction/basic-usage?utm_source=github&utm_medium=referral)
179+
The PDF viewer will automatically adjust to fit its container's dimensions. You can control the size by setting the `style` prop on `RPLayout`. For more information on using React PDF, visit our [basic usage guide](https://docs.react-pdf-kit.dev/introduction/basic-usage?utm_source=github&utm_medium=referral)
158180

159181
You may also check out our [Starter Toolkit](#pushpin-starter-toolkit) for examples to get you started.
160182

161183
### 4. Customize with Hooks and Props
162184

163-
To enhance React PDF further, we offer built-in hooks and props that let you fine-tune functionality, adjust appearance, and integrate custom behaviors into your application.
185+
To enhance React PDF Kit further, we offer built-in hooks and props that let you fine-tune functionality, adjust appearance, and integrate custom behaviors into your application.
164186

165187
For detailed usage, refer to our [Documentation][reactpdf-docs].
166188

167189
# :pushpin: Starter Toolkit
168190

169191
Here are some sample projects to get started on React PDF quickly:
170192

171-
1. [React (webpack) - JavaScript](https://github.com/react-pdf-dev/starter-rp-react-js-webpack)
172-
2. [React (webpack) - TypeScript](https://github.com/react-pdf-dev/starter-rp-react-ts-webpack)
173-
3. [React (vite) - JavaScript](https://github.com/react-pdf-dev/starter-rp-react-js-vite)
174-
4. [React (vite) - TypeScript](https://github.com/react-pdf-dev/starter-rp-react-ts-vite)
175-
5. [React (vite) - TypeScript - Turborepo](https://github.com/react-pdf-dev/starter-rp-react-vite-ts-turborepo)
176-
6. [Next.js - JavaScript (App Router)](https://github.com/react-pdf-dev/starter-rp-nextjs-app-router-js)
177-
7. [Next.js - TypeScript (App Router)](https://github.com/react-pdf-dev/starter-rp-nextjs-app-router-ts)
178-
8. [Next.js - TypeScript - Turborepo](https://github.com/react-pdf-dev/starter-rp-next-ts-turborepo)
179-
9. [Remix - JavaScript](https://github.com/react-pdf-dev/starter-rp-remix-js)
180-
10. [Remix - TypeScript](https://github.com/react-pdf-dev/starter-rp-remix-ts)
181-
11. [Gatsby - JavaScript](https://github.com/react-pdf-dev/starter-rp-gatsby-js)
182-
12. [Gatsby - TypeScript](https://github.com/react-pdf-dev/starter-rp-gatsby-ts)
183-
13. [Docusaurus - JavaScript](https://github.com/react-pdf-dev/starter-rp-docusaurus-js)
184-
14. [Docusaurus - TypeScript](https://github.com/react-pdf-dev/starter-rp-docusaurus-ts)
185-
15. [Electron - JavaScript](https://github.com/react-pdf-dev/starter-rp-electron-js-vite)
186-
16. [Electron - TypeScript](https://github.com/react-pdf-dev/starter-rp-electron-ts-vite)
187-
17. [TanStack - JavaScript](https://github.com/react-pdf-dev/starter-rp-tanstack-router-js)
188-
18. [TanStack - TypeScript](https://github.com/react-pdf-dev/starter-rp-tanstack-router-ts)
189-
19. [React Router - JavaScript](https://github.com/react-pdf-dev/starter-rp-react-router-js)
190-
20. [React Router - TypeScript](https://github.com/react-pdf-dev/starter-rp-react-router-ts)
193+
1. [React (webpack) - JavaScript](https://github.com/react-pdf-kit/starter-rp-react-js-webpack)
194+
2. [React (webpack) - TypeScript](https://github.com/react-pdf-kit/starter-rp-react-ts-webpack)
195+
3. [React (vite) - JavaScript](https://github.com/react-pdf-kit/starter-rp-react-js-vite)
196+
4. [React (vite) - TypeScript](https://github.com/react-pdf-kit/starter-rp-react-ts-vite)
197+
5. [React (vite) - TypeScript - Turborepo](https://github.com/react-pdf-kit/starter-rp-react-vite-ts-turborepo)
198+
6. [Next.js - JavaScript (App Router)](https://github.com/react-pdf-kit/starter-rp-nextjs-app-router-js)
199+
7. [Next.js - TypeScript (App Router)](https://github.com/react-pdf-kit/starter-rp-nextjs-app-router-ts)
200+
8. [Next.js - TypeScript - Turborepo](https://github.com/react-pdf-kit/starter-rp-next-ts-turborepo)
201+
9. [Remix - JavaScript](https://github.com/react-pdf-kit/starter-rp-remix-js)
202+
10. [Remix - TypeScript](https://github.com/react-pdf-kit/starter-rp-remix-ts)
203+
11. [Gatsby - JavaScript](https://github.com/react-pdf-kit/starter-rp-gatsby-js)
204+
12. [Gatsby - TypeScript](https://github.com/react-pdf-kit/starter-rp-gatsby-ts)
205+
13. [Docusaurus - JavaScript](https://github.com/react-pdf-kit/starter-rp-docusaurus-js)
206+
14. [Docusaurus - TypeScript](https://github.com/react-pdf-kit/starter-rp-docusaurus-ts)
207+
15. [Electron - JavaScript](https://github.com/react-pdf-kit/starter-rp-electron-js-vite)
208+
16. [Electron - TypeScript](https://github.com/react-pdf-kit/starter-rp-electron-ts-vite)
209+
17. [TanStack - JavaScript](https://github.com/react-pdf-kit/starter-rp-tanstack-router-js)
210+
18. [TanStack - TypeScript](https://github.com/react-pdf-kit/starter-rp-tanstack-router-ts)
211+
19. [React Router - JavaScript](https://github.com/react-pdf-kit/starter-rp-react-router-js)
212+
20. [React Router - TypeScript](https://github.com/react-pdf-kit/starter-rp-react-router-ts)
191213

192214

193215
# 📝 Changelog
194216

195-
Check out our latest release [v1.19.0 (16 February 2026)](https://docs.react-pdf.dev/introduction/changelog/#v1190-16-february-2026?utm_source=github&utm_medium=referral)
217+
Check out our latest release [v1.19.0 (16 February 2026)](https://docs.react-pdf-kit.dev/introduction/changelog/#v1190-16-february-2026?utm_source=github&utm_medium=referral)
196218

197219

198220
# :raising_hand: Need Help?
@@ -201,9 +223,9 @@ We are more than happy to help you. If you have any questions, run into any erro
201223

202224
# :page_facing_up: License
203225

204-
React PDF is distributed under our proprietary license. Please refer to our [License page](https://www.react-pdf.dev/license-agreement?utm_source=github&utm_medium=referral) file for more details.
226+
React PDF Kit is distributed under our proprietary license. Please refer to our [License page](https://www.react-pdf-kit.dev/license-agreement?utm_source=github&utm_medium=referral) file for more details.
205227

206-
If you would like to use React PDF commercially, please purchase a license from [our website][reactpdf] or reach out to us directly at [https://www.react-pdf.dev/contact-us](https://www.react-pdf.dev/contact-us?utm_source=github&utm_medium=referral).
228+
If you would like to use React PDF commercially, please purchase a license from [our website][reactpdf] or reach out to us directly at [https://www.react-pdf-kit.dev/contact-us](https://www.react-pdf-kit.dev/contact-us?utm_source=github&utm_medium=referral).
207229

208230

209231
# Acknowledgement
@@ -212,7 +234,7 @@ If you would like to use React PDF commercially, please purchase a license from
212234
- [Img Shields](https://shields.io)
213235
- [React.js](https://reactjs.org/)
214236

215-
[reactpdf]: https://www.react-pdf.dev/?utm_source=github&utm_medium=referral
216-
[reactpdf-docs]: https://docs.react-pdf.dev/?utm_source=github&utm_medium=referral
217-
[npm]: https://www.npmjs.com/package/@pdf-viewer/react
237+
[reactpdf]: https://www.react-pdf-kit.dev/?utm_source=github&utm_medium=referral
238+
[reactpdf-docs]: https://docs.react-pdf-kit.dev/?utm_source=github&utm_medium=referral
239+
[npm]: https://www.npmjs.com/package/@react-pdf-kit/viewer
218240
[twitter]: https://www.x.com/ReactPDF

0 commit comments

Comments
 (0)