Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ doc.apply_visible_stamps({

Raises `ArgumentError` if the config hash cannot be deserialized, and `RuntimeError` if a stamp cannot be applied (e.g. a font cannot be registered into a page's `/Resources`) — discard the document on error rather than saving it.

`/Font` inside a page's `/Resources` is handled as either a direct dictionary or an indirect reference (both legal per ISO 32000 §7.8.3); a `/Font` reference that does not resolve to a dictionary raises rather than silently leaving the stamp text unrendered. Fonts registered on a page with inherited (parent-level) resources never mutate the shared parent dictionaries — the page gets its own resources copy.
`/Font` inside a page's `/Resources` is handled as either a direct dictionary or an indirect reference (both legal per ISO 32000 §7.8.3), and entries inside it are found whether stored as references or direct dictionaries; a `/Font` reference that does not resolve to a dictionary raises rather than silently leaving the stamp text unrendered. A `/Resources` entry that is an unresolvable indirect reference — on the page itself or on a `/Parent` ancestor consulted for inheritance — also raises, rather than being silently replaced or skipped over. Fonts registered on a page with inherited (parent-level) resources never mutate the shared parent dictionaries — the page gets its own resources copy.

Colour channels outside 0.0–1.0 are clamped into range (DeviceRGB operands must be in [0.0, 1.0] per the PDF spec).

Expand Down
Loading