PSPDFKit for Web Documentation
PSPDFKit for Web is a drop-in solution for web apps enabling your users to view, edit and collaborate on PDF documents. Web comes with the same usability, performance and support you've come to expect from our industry-leading mobile PDF frameworks.
Our PDF Web Viewer is highly configurable and comes with a rich API to customize appearance, behavior, and content. The product is fully responsive and provides all features on desktop as well as tablet or mobile views.
All modules can be used independently from your current backend and frontend languages. We provide example projects for Server-backed installations on Node.js and Ruby on Rails as well as a client-only webpack installation. We also have a hosted example app, if you want to quickly inspect features.
If you experience any problems with PSPDFKit for Web or PSPDFKit Server, please look at our Troubleshooting section.
PSPDFKit for Web comes with two deployment options out of the box: Server-backed and Standalone.
More information about PSPDFKit Server can be found in the PSPDFKit Server guides.
Server-backed deployment requires the installation of our PSPDFKit Server component. This component needs to be integrated with your existing backend and enables pre-processing of your PDF documents on our dedicated server.
With rendering happening on the server, the experience is smooth no matter the device. The client intelligently downloads pages on demand, so even large documents can be browsed quickly. Your users' data remains safe with you, where it belongs by using fine-grained access control using JWT.
With this deployment option, you receive access to a docker container that can be deployed on-premise or in the cloud (AWS, Azure, Google Cloud and others). It requires a PostgreSQL database and can work with a dedicated storage server or Amazon S3 cloud storage.
To successfully use PSPDFKit for Web with the server backed option, you must first upload a document to the server using the backend API. This endpoint will return a unique document identifier, which is used to load the document with PSPDFKit for Web.
- Enable collaboration in your browser with PSPDFKit Instant
- Open large PDF documents in milliseconds
- Only downloads requested pages
- Built-in document and annotation management and archiving on S3 or a dedicated file serves
- Fine-grained authentication control let you control who has access to the original PDF document
When using the standalone deployment, opening documents requires additional loading time (necessary for the browser to download and compile the WebAssembly or asm.js code). The absence of a server component makes it easier to integrate this solution and allows you to rapidly deploy it into your existing website. PDF documents and annotations need to be persisted on your server – to help with this process, we developed Instant JSON – a small layer that includes only the changes to a PDF file and thus avoids to transfer the PDF file, whenever your users make changes.
- Workload is offloaded to clients
- Runs in contexts where no server is available