Case Study: See how Formable built DOCX redlining with Apryse in two months

Last updated: November 2026

PyMuPDF vs Apryse Server SDK

PyMuPDF and the Apryse Server SDK both process PDFs in Python on your servers. Choose Apryse to sign with long-term validation, convert to PDF/A, redact by regex, or extract complex tables, key-value pairs and form fields. Choose PyMuPDF for a keyless install, OCR at no extra charge, and ready-made chunking for LangChain and LlamaIndex.

TL;DR

PyMuPDF and the Apryse Server SDK both extract text and images, OCR scans, redact, fill forms, rearrange pages, encrypt and convert Office files to PDF, in Python on your own servers.

Here's how they differ:

  • Apryse is one C++ core with add-ons for signing, PDF/A, compare, extraction, and OCR, and the Server SDK supports eight languages besides Python.
  • PyMuPDF is a Python binding over Artifex’s MuPDF engine, with AI output and Office conversion added as packages.
  • Choose Apryse for digital signatures with long-term validation, PDF/A conversion with a violation report, semantic document compare, regex search and redact, and extraction that keeps table structure across pages and exports to Excel.
  • Choose PyMuPDF for a no-key install from PyPI, a GNU AGPL v3 or Artifex commercial license, OCR at no extra charge, and ready-made chunking with LangChain and LlamaIndex connectors.

PyMuPDF vs Apryse at a Glance

Apryse Server SDK 12.2.1
PyMuPDF 2.1

Engine and languages

One C++ core with the same API in nine languages, Python included.

A Python binding over Artifex’s MuPDF engine, Python only.

Packaging and install

A base package plus paid add-ons, licensed through sales. Installs from pypi.apryse.com with a trial key.

One free package plus the commercial PyMuPDF Office add-on, GNU AGPL v3 or Artifex commercial. Installs from public PyPI with no key.

Text and structure for AI

Deeper structure: tables across pages, key-value pairs, form fields and page classification, through a paid add-on.

Faster start: Markdown, chunking and LangChain and LlamaIndex connectors in the free package.

OCR

A whole scanned PDF made searchable in one step, through a paid add-on.

Included at no extra charge for a page or part of a page; whole scanned PDFs need a separate tool.

Signing, PDF/A and compare

Digital signatures with long-term validation, PDF/A conversion with a violation report and semantic compare, each a paid add-on.

Not found in the docs; signature fields are read only.

Support and certifications

Support from the developers who build the products, with a written response guarantee; ISO/IEC 27001:2022 and yearly SOC 2 Type II.

Email support with the commercial license, no published response promise; SOC 2 Type II reported for PDF.co.

Trusted by Leaders

Join the ranks of over 20,000 innovative start-ups, governments and Fortune 500 companies - including more than 85 of Fortune 100 companies that trust Apryse

Sanity Image
Sanity Image
Sanity Image
Sanity Image
Sanity Image
Sanity Image
Sanity Image
Sanity Image
Sanity Image

OCR, Extraction and AI Output

Copied to clipboard

PyMuPDF gets text into an AI pipeline with less code and includes OCR at no extra charge. Apryse pulls more structure out of each document, with merged cells, tables across pages, key-value pairs and whole-file OCR, through paid add-ons.

Capability
Apryse Server SDK
PyMuPDF
Text extraction
Returns words and lines with position and style in a reconstructed reading order.
Returns characters, words and blocks with position, font and color, in reading order.
Images and drawings
The base package extracts images in every compression format, line drawings, fonts, embedded files and layers.
Extracts images and line drawings, and groups related drawings.
Pattern search (regex)
The base package searches by regular expression and wildcard pattern.
Exact text matches only. Regex search is not supported; the docs say “There is no way to do this.”
Markdown and JSON for RAG
The Smart Data Extraction add-on returns JSON with bounding boxes, or Markdown with headings, nested lists, merged table cells, alt text and links. Chunking and framework connectors are left to your code.
Markdown, JSON or text in reading order, with chunking and LangChain and LlamaIndex connectors, in the free package.
Tables
The Smart Data Extraction add-on keeps merged cells and multi-row headers and exports to JSON or Excel. It detects row and column structure across pages.
Exports tables to Markdown or pandas. Merged cells need an opt-in setting. On tables split across pages, a maintainer wrote: "There is currently no way to solve this problem inside 4LLM itself."
Key-value pairs, form detection and classification
The Smart Data Extraction add-on extracts key-value pairs with no template, turns flat or scanned forms into fillable fields, and sorts pages into 24 categories, each with a confidence score.
Reads values already in form fields. Form detection and page classification are not found in the docs.
OCR
The OCR Module add-on makes a whole scanned PDF searchable in one step and checks which pages need OCR, with a choice of engines; the default covers 80+ languages across Latin, Cyrillic, CJK, Devanagari, Arabic and other scripts, on Windows, Linux and macOS, with no GPU.
Tesseract, included at no extra charge, for a page or part of a page. For whole scanned PDFs, the docs point to OCRmyPDF, a separate tool.
Handwriting (ICR)
Handwritten text extracted to searchable PDF or JSON through the Handwriting ICR Module.
Not found in the docs.
Barcode reading
Detection, location and decoding in PDFs through the Barcode Extraction Module.
Not found in the docs.

Redaction and Encryption

Copied to clipboard

Both remove content permanently and both OCR scans first. Apryse finds content by regex and built-in patterns, strips hidden copies afterwards and adds a reviewer's pass in the browser; PyMuPDF excludes form fields from redaction by design.

Capability
Apryse Server SDK
PyMuPDF
Redaction
Permanent removal of text, images and vector content in the region (Redaction add-on).
Removes text, images and drawings in the marked area when saved with a cleanup setting. A maintainer wrote: "Form fields do not count as being redactable."
Search and redact by pattern
Search and redact by text, wildcard or regex, with built-in patterns for SSNs, credit cards and other PII (Redaction add-on).
Exact text only. Pattern matching runs in your own code.
Scanned documents
OCR Module and Handwriting ICR Module make scans and handwriting searchable first.
Built-in Tesseract OCR makes scanned text findable before redaction.
Hidden data after redaction
Sanitization strips metadata, scripts, attachments, hidden text and layers, form data and comments in one call.
One step with 13 on and off choices, such as hidden text, links and form values.
Encryption
AES-128, AES-256, permissions and custom security handlers (Security add-on).
Current and older encryption standards, passwords and permissions.
Human review before applying
Human review before applying A reviewer marks and applies redactions in the Apryse Web SDK (WebViewer), from the same core, without the file leaving the browser.
No viewer in PyMuPDF. Artifex sells MuPDF WebViewer separately.

Forms and Signatures

Copied to clipboard

Both fill forms. Apryse exchanges form data as XFDF and FDF and signs with long-term validation; PyMuPDF's docs describe signature fields as read only.

Capability
Apryse Server SDK
PyMuPDF
Form creation and filling
Fills from JSON data and flattens in the base package. Field creation needs the Digital Signature add-on.
Reads, fills and creates most field types.
XFA forms
Limited. The Server SDK fills, reads, imports, exports and flattens XFA form data; live dynamic XFA filling in the browser is not offered. iText pdfXFA flattens dynamic XFA to static PDF.
Not found in the docs.
Form data exchange
The base package imports and exports form data as XFDF and FDF.
XFDF and FDF are not found in the docs.
Digital signatures
Sign, certify and verify with PKI, LTV and DocTimeStamp, with PAdES support and custom signature handlers (Digital Signature add-on). iText by Apryse signs at PAdES B-B through B-LTA with signature validation (Java and .NET).
Signature fields are "read only", with "no update or creation of signatures and no signing support". Verification is not found in the docs.

Markup, Annotations and Editing

Copied to clipboard

Both annotate, rearrange pages, compress files and reach the low-level object model. Apryse stores markup as XFDF, edits existing text in place and compares versions; PyMuPDF's documented route for text edits is redact, then insert.

Capability
Apryse Server SDK
PyMuPDF
Annotations
The base package covers the same annotation types, with XFDF import and export.
Adds, edits and flattens the standard annotation types. XFDF export is not found in the docs.
Merge, split, rotate, crop
The Page Manipulation add-on reorders, inserts, deletes, rotates, crops, splits and merges pages, stamps pages and generates thumbnails.
Merges, splits, inserts, moves, rotates and crops pages, with several pages per sheet and page overlays for stamps and watermarks, in the free package.
Optimize and compress
The base package linearizes, flattens layers, removes redundant objects and trades image quality for size.
Saves only what changed, removes unused objects and deflates streams.
Undo and redo
The base package undoes and redoes to any earlier state.
Undo, redo and saved snapshots through journaling.
Editing existing text
The PDF Editing add-on finds and replaces text with layout-preserving reflow, and applies XLIFF 2.0 translations, including Arabic and Hebrew onto left-to-right documents.
Not found in the docs. The documented route is redact then insert, which "may not exactly be positioned on the same line like the old one".
Document comparison
The Compare add-on runs a semantic text compare and outputs the differences as colored annotations in reading order.
Not found in the docs. A sample lists word differences with Python's built-in tools.
Low-level access
The base package exposes the full COS/SDF object model.
Documented low-level interfaces to PDF objects.

Conversion and Archiving

Copied to clipboard

Both convert Office files and images to PDF, render pages to images and create PDFs in code. Apryse converts in both directions, handles full web pages, email and CAD, converts to PDF/A and linearizes for the web; PyMuPDF opens ebooks, comics and Markdown in the free package.

Capability
Apryse Server SDK
PyMuPDF
Office to PDF
DOCX, XLSX, PPTX, legacy Office formats, RTF, EML and MSG to PDF, with no Microsoft Office installed (Office Conversion add-on).
Converts Word, Excel, PowerPoint and Korean HWP through PyMuPDF Office, a commercial-only add-on. Without a key, only the first 3 pages convert.
PDF to Office
The Structured Output Module converts PDF to Word, Excel, PowerPoint and HTML.
PDF to Word runs through pdf2docx, a separate library whose README says it is "no longer actively maintained by Artifex". Excel and PowerPoint are not found.
HTML to PDF
The HTML2PDF Module converts full web pages with modern CSS and JavaScript on a Chromium engine, with content flowing across pages.
Lays out simple web pages in the free package.
Image to PDF
The base package converts JPG, PNG, GIF, TIFF and BMP to PDF. HEIC, PSD, RAW and DICOM need the Advanced Imaging Module.
Opens PNG, JPEG, BMP, TIFF and other images as single-page documents.
Pages to images
The Basic Conversion add-on renders to PNG, JPEG, SVG, XPS and EMF/WMF, with resolution and color settings.
Renders to PNG, JPEG, SVG and other types, with resolution, cropping, transparency and color settings.
Input formats beyond PDF
Opens XPS, RTF, HTML, text and images in the base package. CAD (DWG, DXF, DGN and DWF on Windows and Linux, RVT on Windows) needs the CAD Conversion Module. No ebook or comic input.
Opens XPS, EPUB, MOBI, FB2, CBZ, SVG, Markdown, text and images in the free package.
Code-first PDF creation
The Document Creation API builds paragraphs, tables, lists, images, shapes and charts, with headers, footers and page numbers, under the Template add-on. The Template add-on also merges JSON into DOCX, XLSX and PPTX templates.
Adds text, shapes, images and fonts, and lays out simple HTML through the Story class, in the free package.
PDF/A
Convert and validate PDF/A-1A through PDF/A-4F, with violation reporting (Archive add-on).
Not found in the docs.
Large files on the web
The base package saves incrementally, reduces file size and linearizes, so page one displays while the rest downloads.
Saves incrementally and shrinks files. Linearized (Fast Web View) saving was removed in 1.26.0.

Deployment, Licensing and Support

Copied to clipboard

PyMuPDF is free under the AGPL, but shipping or hosting a closed-source application on it needs an Artifex license. Apryse is commercial and comes with a two-business-day response guarantee, ISO 27001 and SOC 2 Type II.

Capability
Apryse Server SDK
PyMuPDF
Install
pip install apryse-sdk from pypi.apryse.com, with a trial key from dev.apryse.com. The older PDFNetPython3 package on public PyPI is no longer updated.
pip install pymupdf from public PyPI, with no key.
Telemetry and license checks
A license key is passed at initialization. API-call names, counts and page counts are collected by default, never document content. A no-tracking key is available on request.
The PyPI page states “no telemetry calls, no license validation callbacks”.
Where it runs
On-premise, cloud VM, container or AWS Lambda, including air-gapped sites when the license key allows it. Document content never reaches Apryse.
In your environment, with no online license check per the PyPI page.
Languages
The same API in C#, Java, Python, Node.js, C++, PHP, Ruby, Go and Objective-C.
Python. MuPDF.NET and MuPDF.js are separate Artifex products.
API style and docs
Follows the C++ core’s naming in every binding, with get-started guides and samples per language.
A Python-style API with recipe-style docs.
Concurrency
Read and write locks on shared documents in every binding. The threaded sample is C# only.
No threads, per the FAQ. Process helpers are shipped, and open documents do not pass between processes.
Licensing model
Commercial, quote-based, scoped to deployment; some capabilities need add-on licenses.
Dual-licensed: AGPL open source, or a commercial license from Artifex, quote-based.
Support
Support from the developers who build the products. Apryse aims to respond within a few hours and guarantees a response within 2 business days, Monday to Friday Pacific. No 24/7 tier.
Community channels under the AGPL option. Email support with the commercial license, with no published hours or response promise found.
Security certifications
ISO/IEC 27001:2022, held since 2018, and a SOC 2 Type II audit every year.
Artifex reports SOC 2 Type II for its PDF.co service.

Beyond the Overlap: The Rest of the Apryse SDK

Copied to clipboard

PyMuPDF is a server-side library. Apryse ships a browser viewer, Office editors and a mobile SDK from the same core as the Server SDK; Artifex sells its viewer and mobile products separately.

Capability
Apryse Server SDK
PyMuPDF
PDF viewer
WebViewer renders PDF, Office, CAD and images in the browser from the same C++ core, compiled to WebAssembly; documents stay in the browser. UI source available on GitHub, WCAG 2.2 Level AA, 30 languages.
None in PyMuPDF. Artifex sells MuPDF WebViewer separately.
DOCX and XLSX editing
DOCX Editor edits the DOCX itself as native OOXML, client-side, with no document server. Spreadsheet Editor edits XLSX in the browser. Not yet available in mobile browsers.
PyMuPDF Office (DOCX, XLSX, PPTX, HWPX input) is a separate product.
Mobile SDK
The Apryse Mobile SDK views, annotates and edits on iOS and Android, on-device, from the same core.
None in PyMuPDF. Artifex offers separate MuPDF viewer apps.

What Our Customers Say

Sanity Image

"The speed at which they integrate is superior to their competition and their product roadmap has been good -- they’ve invested in the right things."

Marcus O'Brien

Global Head of Product Management, AutoCAD

Sanity Image

“Document integrity is critical for us as a company because we have to not only ensure that data accuracy exists, but the formatting of the document also remains the same.”

Uma Natarajan

Chief Technology Officer, Juume AI

Sanity Image

"Apryse [PDFTron] demonstrated superior speed and functionality out of the box. In contrast, the competition took a lot of shortcuts and it was obvious in the user experience."

Alistair Michener

Founder and CEO, Drawboard

When to choose PyMuPDF

You want PDF text in an AI pipeline fast

Copied to clipboard

Chunking and LangChain and LlamaIndex connectors ship in the free package. Apryse documents neither.

You want a dual license and a keyless install

Copied to clipboard

GNU AGPL v3 or Artifex commercial, from public PyPI, with a public issue tracker. Terms are at artifex.com/licensing and pymupdf.io/licensing.

You want OCR at no extra charge

Copied to clipboard

Tesseract is built in, including OCR for just the parts of a page that need it.

Your work splits by file or page

Copied to clipboard

PyMuPDF's FAQ recommends processes and ships helpers for them. You also get EPUB, MOBI, FB2, CBZ and Markdown input, and Korean HWP through PyMuPDF Office.

When to choose Apryse

Copied to clipboard

You need signing, PDF/A or compare

Copied to clipboard

Digital signatures with LTV, PDF/A conversion with a violation report, semantic compare and PDF to Excel and PowerPoint have no documented PyMuPDF equivalent.

You redact by pattern

Copied to clipboard

Find every SSN or phone number with regex or built-in patterns and redact it, reach text in scans through OCR first, and strip the hidden copies afterwards with Sanitization.

You need more than text from your documents

Copied to clipboard

Tables across pages with Excel export, key-value pairs without templates, fillable fields from flat forms, page classification, barcodes and handwriting, from one add-on package.

Your backend runs in more than Python

Copied to clipboard

One core and the same API in C#, Java, Python, Node.js, C++, PHP, Ruby, Go and Objective-C, with Web and Mobile SDKs on the same engine, plus ISO/IEC 27001:2022, a SOC 2 Type II audit every year and a written support response guarantee.

Apryse is the top choice for document processing technology.
Sanity Image
Sanity Image
Sanity Image
Sanity Image
Sanity Image

Backed by a Team of Experts

Instant Demo

Start exploring our capabilities instantly with our interactive demo.

Personalized Walk-through

Chat with one of our solutions engineers to discover the best solution for your unique needs.

Free Trial

Sign up in seconds to access an unlimited trial, all SDK downloads and access to the developer community.

FAQ

PyMuPDF is a Python binding over Artifex's MuPDF engine. Artifex sells MuPDF.NET, MuPDF.js and MuPDF WebViewer as separate products.

The Apryse Server SDK compiles one C++ core to native code and exposes the same PDFNet API in C#, Java, Python, Node.js, C++, PHP, Ruby, Go and Objective-C. The same core runs in the browser as the Apryse Web SDK (WebViewer) and on iOS and Android as the Apryse Mobile SDK. If your services span languages, or your product needs a viewer, one API and one vendor cover them.

Install apryse-sdk from pypi.apryse.com with a trial key from dev.apryse.com and call PDFNet.Initialize() once at startup. Page operations, text extraction, forms, annotations and redaction map to the PDFNet API; OCR, extraction, PDF to Office and CAD are add-on modules you install into the same SDK directory. If your pipeline uses PyMuPDF4LLM chunking or LangChain and LlamaIndex loaders, that step stays in your code. Apryse solutions engineers scope migrations on request.

PyMuPDF is dual licensed: GNU AGPL v3 or Artifex commercial. Terms are at artifex.com/licensing and pymupdf.io/licensing. We found no published commercial prices. The Apryse Server SDK is a commercial license through sales, with add-ons licensed as packages, not metered per page.

PyMuPDF’s FAQ says it does not support multithreaded use and recommends separate processes, with helpers shipped for that. Apryse supports multithreaded use with document locks in C#, Java, C++ and Go bindings.

PyMuPDF's docs describe signature fields as "read only" with "no signing support". The Apryse Server SDK signs, certifies, timestamps and verifies PDFs through the Digital Signature add-on, including long-term validation so signatures stay checkable for years.

Yes. PyMuPDF marks an area with a redaction annotation, then removes the text, images and drawings inside it when the file is saved with a cleanup setting. Two limits are by design: form fields are excluded from redaction, and matching is exact text only, so finding every SSN or phone number means writing the pattern search yourself.

The Apryse Redaction add-on searches by string, regex or built-in PII patterns and destroys the content in the region, the OCR and Handwriting ICR modules reach text in scans first, and Sanitization strips the hidden copies afterwards. Whichever you pick, copy and paste from the redacted area and check form fields before you ship.

Yes. PyMuPDF reads, fills and creates most AcroForm field types, including text and date fields, and flattens them. XFA forms and XFDF or FDF exchange are not found in its docs.

The Apryse Server SDK fills from JSON data and flattens in the base package, imports and exports form data as XFDF and FDF so it travels between PDF applications, creates fields through the Digital Signature add-on, and detects fields on flat or scanned forms and writes them back as fillable fields through Smart Data Extraction. Apryse’s XFA support is limited.

Yes. PyMuPDF compiles in the Tesseract engine at no extra charge and can OCR a page or just the parts of a page that need it. For whole scanned PDFs, its docs point to OCRmyPDF, a separate tool.

The Apryse OCR Module add-on makes a whole scanned PDF searchable in one step, checks which pages need OCR, covers 80+ languages across six script groups, needs no GPU, and outputs a searchable PDF or JSON with text positions. The Handwriting ICR Module does the same for handwriting.

PyMuPDF is the better choice for getting PDF text into a pipeline quickly. Apryse is the better choice when the pipeline needs the document’s structure and data, not just its text.

PyMuPDF gets a PDF into a pipeline with less code. Its free package outputs Markdown, JSON or text in reading order, finds tables, splits text into model-sized chunks and connects to LangChain and LlamaIndex. Its documented limits are structural: merged cells need an opt-in setting, tables split across pages are not reassembled, and its maintainers say heading misreads cannot be fixed case by case.

Apryse pulls more structure out of each document through the Smart Data Extraction add-on. You get JSON with bounding boxes, or Markdown that keeps headings, lists, merged table cells, images and links, and the same module detects table structure across pages, exports tables to Excel, extracts key-value pairs without templates, classifies pages and turns flat forms into fillable fields.

PyMuPDF's PyPI page says it sends no usage data and makes no online license check. The Apryse Server SDK runs on-premise, in your cloud VM, in a container or on AWS Lambda, and supports air-gapped sites when the license key allows it; no document content leaves your infrastructure.

Apryse packages OCR, extraction, signing, PDF/A, compare, PDF to Office and CAD as add-on modules or licenses on the same binary and the same API, so each one plugs into the pipeline you already run.

PyMuPDF has one free package plus the commercial PyMuPDF Office add-on, and routes PDF to Word to pdf2docx and whole-document OCR to OCRmyPDF, two separate projects with their own release cycles. The tradeoff is cost: merge and split, redaction and encryption are free in PyMuPDF and paid add-ons in Apryse.