Skip to content

System Architecture

xPdf is a high-performance PDF generation service built with Rust.

Core Modules

1. xpdf-server (API Layer)

  • Role: Handles HTTP requests, authentication, and routing.
  • Key Files: api.rs, parallel.rs.
  • Parallelism: Uses rayon to process batch requests concurrently.

2. xpdf-label (Generator Layer)

  • Role: core logic for drawing PDF content.
  • Key Files: generator/mod.rs, profiles/level_b.rs.
  • Profiles: Segregates logic for "Level B" (standard/basic) vs "Level A" (strict accessibility).

3. xpdf-core (Shared Utilities)

  • Role: Common utilities, font management, and model definitions.