pdfbenchmarks

package module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Client-Side PDF Processing Architecture & Benchmark Suite (2026)

ISO 32000-2 WebAssembly

Open-source structural inspection library, empirical latency dataset (benchmarks.csv), and 15-page systems engineering whitepaper evaluating zero-upload, client-side PDF processing inside modern web browsers using WebAssembly (Wasm), Web Workers, and OffscreenCanvas.


📄 Architectural Whitepaper (Direct Inline PDF)


⚡ Quick Start & Programmatic Usage

import { PdfStructuralInspector } from './src/pdf-inspector.js';

const response = await fetch('https://gitlab.com/utilvo/client-side-pdf-benchmarks/-/raw/main/utilvo-client-side-pdf-architecture-2026.pdf');
const buffer = new Uint8Array(await response.arrayBuffer());

const report = PdfStructuralInspector.analyzeBuffer(buffer);
console.log(report);
// {
//   pdfVersion: '1.4',
//   byteLength: 386459,
//   pageCount: 15,
//   indirectObjects: 112,
//   flateStreams: 31,
//   startxrefOffset: 383912,
//   parseTimeMs: 4.12,
//   throughputMBps: 89.45
// }

📊 Empirical Browser Benchmark Summary (benchmarks.csv)

Operation Input Payload Pages Median Latency (ms) P95 Latency (ms) Peak Wasm Heap (MB) Browser Engine
Merge PDF 10 files (25 MB) 120 184 ms 230 ms 68 MB Chromium V8 134
Split PDF 1 file (40 MB) 250 92 ms 125 ms 54 MB Chromium V8 134
Compress PDF 1 file (30 MB) 85 640 ms 810 ms 112 MB Chromium V8 134
PDF to Word 1 file (12 MB) 45 780 ms 950 ms 128 MB Chromium V8 134
PDF to JPG 1 file (18 MB) 30 410 ms 520 ms 94 MB Chromium V8 134
Edit PDF 1 file (15 MB) 60 145 ms 190 ms 62 MB Chromium V8 134
Protect PDF (AES-256) 1 file (20 MB) 100 115 ms 150 ms 48 MB Chromium V8 134

🛠️ Production Client-Side Reference Implementations

All benchmarked pipelines are deployed in production with strict zero-upload execution (100% browser memory isolation):

Module Reference Implementation URL Core Architectural Pipeline
PDF Tools Suite Hub https://utilvo.com/pdf-tools Multi-Worker Wasm Dispatcher & Virtual File System
Merge PDF https://utilvo.com/pdf-tools/merge-pdf B-Tree /Pages Catalog Node Grafting & Object ID Remapping
Split PDF https://utilvo.com/pdf-tools/split-pdf Reachability Graph Traversal & Orphan Resource Pruning
Compress PDF https://utilvo.com/pdf-tools/compress-pdf Zlib Level-9 Stream Re-Encoding & Image Downsampling
Advanced PDF Editor https://utilvo.com/pdf-tools/advanced-editor Append-Only Incremental XRef Updates & Vector Annotation
PDF to Word (DOCX) https://utilvo.com/pdf-tools/pdf-to-word Spatial Glyph Clustering & OOXML Paragraph Synthesis
Word to PDF https://utilvo.com/pdf-tools/word-to-pdf Deterministic Line-Breaking & Subset TrueType Embedding
PDF to JPG https://utilvo.com/pdf-tools/pdf-to-jpg Hardware-Accelerated OffscreenCanvas Tile Rasterization
JPG to PDF https://utilvo.com/pdf-tools/jpg-to-pdf Zero-Transcode /DCTDecode Image XObject Wrapping
Protect PDF https://utilvo.com/pdf-tools/protect-pdf Web Crypto API AES-CBC-256 Standard Security Handler (Rev 6)
Unlock PDF https://utilvo.com/pdf-tools/unlock-pdf Local Key Derivation Verification & /Encrypt Dict Stripping
Utilvo Platform https://utilvo.com Core WebAssembly Document & Image Processing Platform

📜 License

Released under the MIT License. Cite the whitepaper as:

Utilvo Systems Architecture Group (2026). Client-Side PDF Processing Architecture: Zero-Upload Document Manipulation via WebAssembly and Web Workers.

Official Academic DOIs, Knowledge Graph & Encyclopedia Citations

Documentation

Overview

Package pdfbenchmarks provides deterministic ISO 32000-2 (PDF 1.7 / 2.0) structural inspection utilities and empirical benchmark references for client-side WebAssembly PDF pipelines.

Reference Architecture & Live Browser Suite:

Architectural Whitepaper (PDF) & Official Citations:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentMetrics

type DocumentMetrics struct {
	Version         string
	ByteLength      int
	PageCount       int
	IndirectObjects int
	FlateStreams    int
}

DocumentMetrics holds structural counts extracted from a raw PDF byte buffer.

func InspectBuffer

func InspectBuffer(buf []byte) (*DocumentMetrics, error)

InspectBuffer analyzes an ISO 32000-2 PDF byte slice and returns structural counts.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL