Doko's new lair
React Native PDF Editor

What is this?

Native PDF editing, rendering, encryption, and PAdES signing for React Native.

@doko/react-native-pdf-editor is a React Native library for creating, editing, rendering, encrypting, and digitally signing PDF files on iOS and Android. Built with Nitro Modules, New Architecture only.

It's built on top of my fork of PoDoFo, a C++ 17 PDF manipulation library. PDF is processed in C++ side for best performance while keeping it cross-platform.

However it's just a PDF processing lib. It doesn't provide PDF view component as there are many great libs out there can do the job better.

What it can do

AreaSupported today
DocumentsCreate, open, save, merge, split/copy page ranges
PagesAdd, remove, rotate, resize, reorder
DrawingText, images, lines, rectangles, circles, colors, graphics state
FontsPDF standard 14 fonts, custom font files, in-memory font buffers
ImagesEmbed encoded image buffers and draw them on pages
AnnotationsCreate/read common annotation base data: type, rect, contents
FormsText boxes, checkboxes, field inspection
MetadataTitle, author, subject, creator
EncryptionAES-256 encryption, passwords, permissions, encryption inspection
RenderingRender saved PDF pages to RGBA bitmap, write PNG/JPEG
Text extractionExtract page text entries, optionally filtered by regex
SigningSigner-agnostic PAdES B-B, B-T, B-LT, B-LTA
VerificationCheck signature byte-range integrity, without trust-chain validation

What it is not

  • Not a PDF viewer UI.
  • Not a full PDF content parser that returns every text/image/vector element as structured JS objects.
  • Not a trust-store or certificate-revocation validation framework.
  • Not old-bridge compatible.

For viewing PDFs, pair it with a dedicated PDF viewer; this library is the toolbox for editing them.

Package entry points

import { PdfDocument, PdfRenderer } from "@doko/react-native-pdf-editor";
import { signPdf, createSigner } from "@doko/react-native-pdf-editor/signing";

Signing is intentionally exposed from a separate /signing entry point so apps that only edit or render PDFs do not need to import the signing helpers and types.

Status

The library is still alpha. I try to minimize the API changes and, ideally, make the API set stable at v1.0.0.

On this page