/ SDK / PDF

PDF SDK for web.

Render, annotate and measure PDF inside your own product with the Viewer SDK or the documented iframe path. Self-hosted, with no client-side plugin.

Open docs
app.yourcompany.com / projects / north-tower / drawings
Main_Elevation_v1.pdf
Rasterex Canvas
Technical drawing rendered by RasterexTechnical drawing rendered by RasterexTechnical drawing rendered by RasterexTechnical drawing rendered by RasterexTechnical drawing rendered by Rasterex
/ what the PDF SDK does

Built for engineering PDF, not just office documents.

High-fidelity rendering

Vector and raster PDF rendered in the browser with no client-side plugin.

Annotations & markups

Notes, stamps, freehand, shapes. Events stream back so you store them where your data already lives.

Measurement tools

Distance, area, calibration. Scale-aware on engineering PDFs.

Compare & overlay

Compare two PDF revisions visually. Spot every change without an extra tool.

Need CAD or BIM too? The same engine reads DWG, DXF and DGN and IFC 3D models — one integration, every format.

← Back to the SDK overview

/ try it yourself

AI-ready. Prompt it, or install it yourself.

@rasterex/viewer is a small, typed, zero-dependency SDK with full docs and runnable examples. Point your AI assistant at it, or install it by hand, and run a project against our backend in minutes. The backend runs as a hosted sandbox for evaluation and proof of concept, so there is nothing to set up on your side to get started.

01

Install

terminal · bash
$ npm install @rasterex/viewer
02

Mount a viewer and open a drawing

application code · typescript
01import { createViewer } from "@rasterex/viewer";02 03const viewer = createViewer({ container: "#rx-viewer" });04await viewer.mount();05await viewer.ready();06 07await viewer.documents.open({08  url: "<file URL reachable by the viewer>",09  displayName: "sample.pdf",10  cacheId: "<stable file id from your app>",11  mime: "<file mime type>"12});

Works with Vite, Next.js, Angular, React, Vue or any bundler. Full setup and runnable examples live in the docs and the examples repo.

Building against it and hit a snag? Reach us on GitHub.

From proof of concept to production.

When you can see it working and want to move toward your own integration, get in touch. We go into dialogue, build a commercial model around your case, and you install the full backend yourself, on-prem or in your own cloud, with complete control of your data and infrastructure. Rasterex never touches your files or your servers.

/ get started

Ready to put CAD, BIM and PDF inside your app?

Explore documentation