Expand description
Document-structure read APIs: outlines, annotations, attachments.
These close the three items the prior core-PDF closure left as
out-of-scope, per PHASE1_PRODUCT_SCOPE_DECISIONS.md:
- Outlines / bookmarks: read + write (
PdfDocument::outlines/set_outlines), backed bypdf_manip::bookmarks. - Annotations: read/list (
PdfDocument::annotations). Write/CRUD on the Rust facade is intentionally not exposed for v1 — the v1 annotation-authoring surface is the WASM binding /pdf-annotbuilder. - Attachments / embedded files: read/list + extract
(
PdfDocument::attachments/attachment_bytes). Write (adding embedded files) is intentionally not exposed for v1.
All reads operate on the in-memory lopdf::Document already held by
PdfDocument; no new crate dependency is introduced.
Structs§
- Annotation
Info - Read-only view of a single page annotation.
- Attachment
- Read-only view of an embedded-file attachment.
- Outline
- A document outline (bookmark) entry.