Licensing
Authenticate Your License
A valid key and an approved domain are required to remove the watermark on React PDF from such sites.
Add a license key
After making a license purchase, you should receive a license key. You could also access the License Manager to retrieve your license key.
Here is how you can implement the license key in your React 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 component */} <AppPdfViewer /> </RPConfig> )}export default App
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 component */} <AppPdfViewer /> </RPConfig> )}export default App
Remark: For more detailed explanation, refer to Basic Usage.
Manage a License Key
A license key is restricted to a corresponding domain, subdomain or IP address. To manage your license keys, please access the License Manager.
On the Manage License Key page for each purchased license, you can generate as many license keys as needed. Each license key can only bind to a single domain based on one of the two options: Specific Host and Wildcard.
Specific Host
A specific host license key binds to an exact domain, subdomain or IP address. Accepted values include:
- Localhost (e.g.,
localhost
,localhost:3000
) 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
)
Domains are matched based on exact matches only. If you add
example.com
, onlyexample.com
will be approved. Subdomains likewww.example.com
orxyz.example.com
will not work unless you add them separately.
Wildcard
A wildcard license key binds to a single domain and automatically includes all of its subdomains.
For instance, if you bind your-domain.com
to a license key, subdomains such as app.your-domain.com
, dev.your-domain.com
and admin.your-domain.com
will also be included under this license key.
Wildcard is only supported in an Organization license.
Remark: For more information on the licensing detail.