pdflib-errors-fonts

Official

Fix pdf-lib font errors instantly

AuthorOpenAEC-Foundation
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Diagnoses and resolves pdf-lib font encoding and embedding failures that cause runtime errors or incorrect rendering, including WinAnsi encoding failures, missing fontkit registration, broken form field appearances, and missing glyphs in custom fonts. It clarifies when standard fonts are insufficient and prescribes the exact steps to register fontkit, embed Unicode-capable fonts, verify glyph coverage, and update form appearances to prevent crashes and visual glitches.

Core Features & Use Cases

  • Diagnostic decision tree covering WinAnsi errors, missing fontkit, form appearance problems, and diacritic/CJK failures.
  • Clear, prioritized remediation steps: install and register @pdf-lib/fontkit, embed a TTF/OTF font with subset enabled, verify font.getCharacterSet(), and call form.updateFieldAppearances(customFont) when filling forms.
  • Practical use cases: rendering multilingual text on pages, filling PDF forms with non-Latin names, embedding CJK fonts while minimizing file size, and proactively validating user input before drawing or saving.

Quick Start

Diagnose a pdf-lib WinAnsi or font embedding failure and recommend registering @pdf-lib/fontkit, embedding a Unicode-capable font with subsetting, verifying glyph coverage, and updating form appearances so the document saves without WinAnsi errors.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: pdflib-errors-fonts
Download link: https://github.com/OpenAEC-Foundation/pdf-lib-Claude-Skill-Package/archive/main.zip#pdflib-errors-fonts

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.