Licensing
You can test both developer and organization features for free. However, to remove watermark from React PDF, a valid license is required. Please purchase a commercial license
Manage a License Key
Section titled “Manage a License Key”A license key is a unique key that unlocks React PDF for a domain, subdomain, or IP address. It authenticates your licensed usage and removes the watermark in the viewer.
After purchasing a license, you will receive an email with instructions on how to generate license keys for your corresponding domains. Each key must be bound to a corresponding domain, subdomain or IP address.
You could also access the License Manager page directly to create and manage your keys.
On the Manage License Key page, you can generate multiple keys per license. However, each token can only be linked to a single domain or subdomain/IP, using one of the following types: Specific Host and Wildcard.
Specific Host
Section titled “Specific Host”A specific host license key binds to an exact domain, subdomain or IP address. Accepted values include:
- Localhost (e.g.,
localhost:3000,localhost:5173) for local development - Domain names (e.g.,
test.example.com,www.example.com) - IP addresses and non-standard ports (e.g.,
192.168.1.1,127.0.0.1:5173)
⚠️ Only exact matches are supported. For example, a token for
example.comwill not cover subdomains likewww.example.comorxyz.example.com. These must be added separately.

Wildcard
Section titled “Wildcard”Wildcard is only available with an Organization license.
A Wildcard license key binds to a single root domain and automatically includes all of its subdomains.
For example, a key binded to your-domain.com will also cover:
app.your-domain.comdev.your-domain.comadmin.your-domain.com

Remark: For more details, refer to the License Agreement
Use a license key
Section titled “Use a license key”After creating a license key for your domain on the License Manager page, here is how you can add a license key in your project.
import { RPConfig } from '@pdf-viewer/react'import AppPdfViewer from './AppPdfViewer'
const YOUR_LICENSE_KEY = ''
function App() { return ( <RPConfig licenseKey={YOUR_LICENSE_KEY}> {/* A reusable React PDF viewer component */} <AppPdfViewer /> </RPConfig> )}export default Appimport { RPConfig } from '@pdf-viewer/react'import AppPdfViewer from './AppPdfViewer'
const YOUR_LICENSE_KEY = ''
function App() { return ( <RPConfig licenseKey={YOUR_LICENSE_KEY}> {/* A reusable React PDF viewer component */} <AppPdfViewer /> </RPConfig> )}export default App