pdflib-syntax-text

Official

Accurate PDF text rendering with pdf-lib.

AuthorOpenAEC-Foundation
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill ensures correct text placement in PDFs created with pdf-lib by emphasizing the bottom-left origin and providing text measurement utilities.

Core Features & Use Cases

  • Draw text on PDF pages with full option support (x, y, font, size, color, opacity, rotate, xSkew, ySkew, lineHeight, maxWidth, wordBreaks).
  • Measure and layout text accurately using widthOfTextAtSize, heightAtSize, and sizeAtHeight, enabling precise centering, right-alignment, and wrapping.
  • Reusable patterns and defaults via page-level methods (setFont, setFontSize, setFontColor, setLineHeight) for consistent styling.

Quick Start

Embed a font, create a page, and use page.drawText with proper x and y coordinates based on the page height to place text correctly.

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-syntax-text
Download link: https://github.com/OpenAEC-Foundation/pdf-lib-Claude-Skill-Package/archive/main.zip#pdflib-syntax-text

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.