pdfstudio-impl-annotation-pipeline

Enforce annotation integrity across PDF.js and pdf-lib pipelines.

1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/OpenAEC-Foundation/Open-PDF-Studio-Claude-Skill-Package --skill pdfstudio-impl-annotation-pipeline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdfstudio-impl-annotation-pipeline
Source: https://github.com/OpenAEC-Foundation/Open-PDF-Studio-Claude-Skill-Package/tree/main/skills/source/pdfstudio-impl/pdfstudio-impl-annotation-pipeline
Command: npx skills add https://github.com/OpenAEC-Foundation/Open-PDF-Studio-Claude-Skill-Package --skill pdfstudio-impl-annotation-pipeline

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill documents and enforces the complete annotation lifecycle in open-pdf-studio: loading, coordinate transforms, rendering, editing, and saving. It prevents data loss or misalignment of annotations across the full pipeline.

Core Features & Use Cases

  • End-to-end flow coverage: from PDF file bytes to PDF.js parsing, app state, canvas rendering, user edits, and pdf-lib serialization back to disk.
  • Guardrails for coordinate transforms: ensures CropBox, viewport, and app coordinates are consistently applied.
  • Safer save strategy: employs a strip-and-rewrite approach to keep the PDF in sync with the app model.

Quick Start

Load a PDF in the editor and verify that annotations load, render, edit, and save without drift into the PDF.

Frequently Asked Questions about pdfstudio-impl-annotation-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I maintain PDF annotation integrity across PDF.js and pdf-lib?

PDF annotation coordinate drift happens when CropBox and viewport transforms are inconsistent between PDF.js and pdf-lib. Enforce end-to-end pipeline guardrails to keep app state and canvas rendering synchronized.

What is the best way to save PDF annotations without data loss?

Use a strip-and-rewrite saving strategy to prevent PDF annotation data loss. This method clears stale entries and serializes the current app state back to disk via pdf-lib, keeping the file perfectly synchronized.

How do I fix annotation misalignment caused by CropBox coordinate transforms?

Fix annotation misalignment by enforcing consistent CropBox coordinate transforms across the rendering pipeline. Validate that viewport and app coordinates map correctly during PDF.js parsing and canvas rendering.

Why do my PDF annotations disappear after editing and saving with pdf-lib?

Annotations disappear when the saving strategy fails to sync the app model with the PDF. Implement a strip-and-rewrite saver to clear stale data and rewrite annotations directly from the application state.

Does PDF.js viewport coordinate conversion work with pdf-lib serialization?

PDF.js viewport coordinate conversion works with pdf-lib serialization by applying consistent CropBox transforms. Enforce staleness checks and a strip-and-rewrite saver to maintain alignment during the export process.