PHP Document Viewer Library

PSPDFKit for Web includes support for client-side rendering of PDF, Word, Excel, and PowerPoint documents directly on any browser — no external dependencies or MS Office licenses required. It offers developers a way to quickly embed a highly configurable document viewer in any PHP-based web application.

Launch Demo

PSPDFKit SDKs are deployed in some of the world’s most popular applications, such as those made by Autodesk, Disney, DocuSign, Dropbox, IBM, and Lufthansa.

Key Capabilities

  • PDF and MS Office — Open PDF, Word, Excel, and PowerPoint documents

  • Client-side — Workload is offloaded to client (no server needed)

  • Customizable UI — Hide or add buttons, and match your look and feel

  • Responsive — Mobile-friendly UI auto-adjusts to all screen sizes

  • Accessible — Built-in assistive technology-friendly features

  • Browser support — Works on all modern browsers and devices

  • Extendable — Convert to PDF for collaboration, editing, and more

Information

Opening MS Office and image files requires the Office Files and Image Documents components to be enabled in your license.

File Type Support

  • PDF, PDF/A (1, 2, 3, 4)

  • DOCX, DOC, DOTX, DOCM, XLSX, XLS, XLSM, PPTX, PPT, PPTM

  • PNG, JPEG, JPG, TIFF, TIF

Document Viewer Guides

PDF Files
How to open PDF files

Office Documents
How to open MS Office documents

Images and Photos
How to display images in the viewer

Page Layout and Scroll
How to configure single- or double-page spreads and scrolling modes

Mobile Responsive
Learn about the responsive capabilities of the user interface

Fullscreen Mode
How to implement fullscreen mode using the fullscreen API

Magazine Viewer
How to implement a magazine viewer

Presentation Mode
How to display presentation slides

Zooming
How to manage zooming and configure automatic zoom

Accessibility
Learn about the viewer’s accessibility features

Performance Best Practices
Learn the best way to build a fast document viewer

Annotation Diff
Learn about transferring annotations efficiently

Caching Techniques
How to make your assets load quickly

Rendering PDF Pages
How to render single PDF pages as images

Render in Canvas
How to render a single PDF page as an image in a canvas element

Coordinate Space
How to convert to and from the PDF coordinate space

Watermark Rendering
How to render watermarks on top of a PDF

Font Rendering
How to configure custom fonts for rendering PDF documents

PDF JavaScript Support
How to enable PDF JavaScript support

Permissions
Learn about the document permissions that can be set

Free Trial

Enjoy unlimited trial usage of all our products. Get guidance and tech support from developers who built the product, and get started within minutes.