Skip to content

Add pdf-view-coords to Files - #1211

Closed
AlonDrilich wants to merge 1 commit into
sorrycc:masterfrom
AlonDrilich:add-pdf-view-coords
Closed

AlonDrilich wants to merge 1 commit into
sorrycc:masterfrom
AlonDrilich:add-pdf-view-coords

Conversation

@AlonDrilich

Copy link
Copy Markdown

Adds pdf-view-coords under Files, after PDF.js.

pdf-lib draws in raw PDF user space and ignores the page's /Rotate and CropBox. Viewers such as PDF.js show the rotated, cropped page with a top-left origin. So a stamp or signature placed where the user clicked lands in the wrong spot on rotated or cropped pages. This small library (MIT, TypeScript) converts between the two coordinate systems. Demo: https://alondrilich.github.io/pdf-view-coords/

Disclosure: I'm the author.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gokaygurcan

Copy link
Copy Markdown
Collaborator

thanks @claude

@gokaygurcan gokaygurcan closed this Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants