Skip to content
CAI
Software that uses CAICheck a score

ninjarobot/FsPdf

59.2

Adequate · 15 November 2026

1.2k

lines of production code

F#

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Initial release of FsPdf with core PDF generation capabilities

This entry introduces the FsPdf library, enabling developers to generate PDFs programmatically using F\# without external dependencies beyond a .NET Standard 2.0 runtime. The release includes a higher-level DSL for simple page layout, shapes, and formatted text, with specific support for word wrapping. It also embeds Adobe Font Metrics (AFM) to allow accurate text measurement and wrapping. The project structure is established with a solution file targeting Visual Studio 16, configured for the .NET SDK 10.0.202, and includes MIT licensing and CI badges.

(repo-wide) · high confidence

Initial release of FsPdf with multi-page document generation and TrueType font embedding

This change introduces the FsPdf library, providing a high-level DSL for building PDF documents with automatic multi-page pagination, text wrapping, and layout management. Users can now create documents using paragraphs and page breaks, with support for standard media sizes (Letter, A4, etc.) and custom dimensions. The library includes drawing primitives for shapes like rectangles, circles, and triangles, as well as specific shapes like holiday candles. A key feature is the support for embedding TrueType fonts, allowing for rich text rendering beyond basic Type1 fonts. The implementation is structured into separate modules for font metrics (Afm), document layout (Document), PDF instructions (Instructions), and shape definitions (Shapes).

src/FsPdf · high confidence

Behavioural changes

1 commit (0 fixes) modifying afm

A change to existing behaviour in afm — 1 commit, 15 files: “Embedding Adobe Font Metrics and using them to measure and wrap text”.

afm · medium confidence · unverified

Test coverage

Expanded test coverage for PDF generation features

The test suite in tests/FsPdf.Tests has been significantly expanded to cover new PDF generation capabilities. Tests now verify wrapped text rendering using embedded font metrics, the drawing of various shapes (including rectangles, circles, and holiday candles), and the use of multiple fonts (Times-Roman and Helvetica). The test infrastructure was also updated to use the higher-level FsPdf API and layout modules instead of manual PDF object construction.

tests · high confidence

Dependencies

Migrate from Paket to native .NET SDK package management and upgrade test framework

The project has removed the Paket dependency manager (deleting paket.dependencies and paket.lock) and switched to native .NET SDK package references. The main library (FsPdf) now uses FSharp.Core 5.0.0 and includes SourceLink for symbol publishing, while the test project has been upgraded to .NET 10.0 and updated to use xUnit 2.9.3, Microsoft.NET.Test.Sdk 18.0.1, and coverlet.collector 6.0.4.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 60 → 59 (-1.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 95 → 93 (-2.3)
  • Architecture 96 → 94 (-1.4)
  • Maturity 52 → 52 (+0.0)
  • Readiness 51 → 51 (+0.0)
  • Security 77 → 71 (-5.8)

Resolved (1)

  • IL efficiency: 3 authored method(s) exceed the IL budget (src/FsPdf/Layout.fs)

Changes since last survey

  • 1 commits — 1 feature/other, 0 fixes

By area

  • .github/workflows — 1 commit

Notable commits

  • change: Pin GH actions

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

ninjarobot/FsPdf was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit f3b2d14311996fff5a0554d6ea966a0e5c8950c9 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.