Skip to content

fix: stamp annotations now support /CA opacity (v2) - #810

Open
marinaionel wants to merge 1 commit into
embedpdf:v2from
marinaionel:fix/stamp-annotation-opacity-v2
Open

marinaionel wants to merge 1 commit into
embedpdf:v2from
marinaionel:fix/stamp-annotation-opacity-v2

Conversation

@marinaionel

@marinaionel marinaionel commented Sep 12, 2026

Copy link
Copy Markdown

Fixes #795 on the v2 line. Stamp annotations had no opacity field, so patching one was silently accepted but never actually rendered.

Adds opacity: number to PdfStampAnnoObject, matching every other annotation type (Highlight, Ink, Square, etc). The pdfium engine now sets /CA when a stamp's appearance is authored and reads it back when parsing a stamp annotation. commitStamp now defaults to tool.defaults.opacity ?? 1, the same fallback every other handler already uses.

@vercel

vercel Bot commented Sep 12, 2026

Copy link
Copy Markdown

@marinaionel is attempting to deploy a commit to the CloudPDF Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant