@qrcommunication/gigapdf-lib 0.72.0 → 0.105.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +640 -0
- package/dist/index.cjs +1374 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1227 -9
- package/dist/index.d.ts +1227 -9
- package/dist/index.js +1372 -15
- package/dist/index.js.map +1 -1
- package/gigapdf.wasm +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,646 @@ All notable changes to `@qrcommunication/gigapdf-lib` are documented here.
|
|
|
4
4
|
The format follows [Keep a Changelog](https://keepachangelog.com/) and the
|
|
5
5
|
project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.105.0] - 2026-06-26
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **Text extraction no longer corrupts subset fonts with repacked `/Differences`
|
|
14
|
+
glyphs.** When a simple font assigns real glyphs to ASCII-punctuation codes via
|
|
15
|
+
`/Encoding`+`/Differences` (`gNN` names) and ships a broken identity-aligned
|
|
16
|
+
`/ToUnicode` omitting those codes, the ASCII gap-filler used to invent a
|
|
17
|
+
`code → chr(code)` mapping that masked the real glyph (consulted first) — e.g.
|
|
18
|
+
`extractText` returned `'&are%ts'` for `'parents'`. The filler now defers to the
|
|
19
|
+
font's `/Encoding`+`/Differences` for those codes. Extraction-only fix; rendering
|
|
20
|
+
was already correct, and composite (Type0) fonts are unaffected.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- **Baked running header/footer excluded from the editable views.** A header/footer
|
|
25
|
+
baked with `setHeader`/`setFooter` (tagged `/GPHF`) is no longer returned by
|
|
26
|
+
`elements`, `textRuns` or `blocks` — re-opening a header-baked document never
|
|
27
|
+
turns the header into editable body content nor desyncs `replaceText` /
|
|
28
|
+
`transformElement` / `removeElement` / `reorderElement` indices. `headerFooter()`
|
|
29
|
+
still recovers it.
|
|
30
|
+
- **`renderPageExcludingMarkedContent(page, scale?, skipText?, marker?)`** — render
|
|
31
|
+
a page in one pass with a baked marked-content band (default `"GPHF"` = the
|
|
32
|
+
running header/footer) omitted, so the band shows in the raster but never doubles
|
|
33
|
+
against an editable overlay; with `skipText` it is the editor's text-free
|
|
34
|
+
background minus the band.
|
|
35
|
+
- **`setEditorMeta(json)` / `editorMeta()`** — store/read an opaque JSON
|
|
36
|
+
editor-metadata sidecar (catalog `/GigaPDF /EditorMeta`, compressed; ignored by
|
|
37
|
+
standard readers; survives save/open).
|
|
38
|
+
- **`setEditorMargins(page, m)` / `editorMargins(page)`** — per-page editor display
|
|
39
|
+
margins persisted in the sidecar (under `margins`), **without** touching
|
|
40
|
+
`/CropBox` (distinct from `setPageMargins`, the real recrop).
|
|
41
|
+
- **`setRunningHeaderFooter(def, opts?)` / `runningHeaderFooter()`** — a rich,
|
|
42
|
+
Word-like running header/footer (types `RunningHeaderFooter`, `HFZone`, `HFItem`,
|
|
43
|
+
`HFAlign`). The `def` is the source of truth (stored in the editor-meta sidecar
|
|
44
|
+
under `headerFooter`); its visible `/GPHF` band is regenerated per page, so it is
|
|
45
|
+
excluded from `elements`/`textRuns` and masked by
|
|
46
|
+
`renderPageExcludingMarkedContent`. A zone (`default`/`firstPage`/`evenPage`/`oddPage`)
|
|
47
|
+
holds `HFItem`s of `type: "text"` (drawn in an **embedded** font — the item's
|
|
48
|
+
`fontRef`, else the bundled OFL face, never base-14) or `type: "image"` (pixels
|
|
49
|
+
supplied via `opts.images`, an iterable of `[imageId, bytes]` — a `Map` works).
|
|
50
|
+
Tokens `{{page}}`, `{{pages}}`, `{{date}}` (pass `opts.date`) and `{{title}}` are
|
|
51
|
+
substituted at bake time; re-baking is idempotent. The flat
|
|
52
|
+
`setHeader`/`setFooter` API is unchanged.
|
|
53
|
+
|
|
54
|
+
## [0.104.0] - 2026-06-25
|
|
55
|
+
|
|
56
|
+
Four issue lists closed — [#75], [#76], [#77], [#78]: PDF→model reconstruction,
|
|
57
|
+
annotation appearances, serialization (linearization + PDF 2.0), and RTF-export
|
|
58
|
+
fidelity — plus the previously-unreleased PDF/A archival conformance
|
|
59
|
+
([veraPDF](https://verapdf.org/)-validated, ISO 19005).
|
|
60
|
+
|
|
61
|
+
### Added
|
|
62
|
+
|
|
63
|
+
- **PDF version selector for compact / linearized output ([#77]).** `saveOptimized`
|
|
64
|
+
accepts `{ version?: "1.7" | "2.0" }`, and `toLinearized(version)` /
|
|
65
|
+
`saveLinearized(version)` take the same; new exported type
|
|
66
|
+
`PdfVersion = "1.7" | "2.0"` (default `"1.7"`). The compact and Fast-Web-View
|
|
67
|
+
writers can now declare a PDF 2.0 header.
|
|
68
|
+
- **Selectable PDF/A conformance level.** `toPdfA(level?)` accepts `"pdfa-1b"` ·
|
|
69
|
+
`"pdfa-1a"` · `"pdfa-2b"` (default, backward-compatible) · `"pdfa-2u"` ·
|
|
70
|
+
`"pdfa-2a"` · `"pdfa-3b"`; core `to_pdfa_level(level)` + `PdfaLevel` enum.
|
|
71
|
+
Levels **1b/1a** emit a `%PDF-1.4` header (ISO 19005-1), the others `%PDF-1.7`;
|
|
72
|
+
**2u** keeps every glyph mapped to Unicode (`/ToUnicode`); **3b** permits
|
|
73
|
+
embedded files (`/AF`); **1a/2a** are level A (Tagged PDF, see below). All six
|
|
74
|
+
pass veraPDF (`isCompliant = true`).
|
|
75
|
+
- **Tagged PDF — level A conformance (`pdfa-1a`, `pdfa-2a`).** ISO 19005 level A
|
|
76
|
+
adds the logical-structure tree the engine already infers. On a level-A export
|
|
77
|
+
the catalog gains `/MarkInfo << /Marked true >>`, `/Lang`, and a `/StructTreeRoot`
|
|
78
|
+
whose tree is derived from the document structure (`Document` → `P` / `H1`…`H6`
|
|
79
|
+
/ `Table` / `TR` / `TH` / `TD` / `L` / `LI` / `LBody` / `Figure`), backed by a
|
|
80
|
+
`/ParentTree`. Content is marked up in the page streams — each tagged run wrapped
|
|
81
|
+
as `/<role> << /MCID n >> BDC … EMC`, non-tagged marks emitted as `/Artifact` —
|
|
82
|
+
so the structure is render-neutral (pixels are identical to the untagged
|
|
83
|
+
export). Validated `isCompliant = true` against veraPDF for **both** 2a and 1a.
|
|
84
|
+
- **Conformance CI gate** (`conformance.yml`). Generates fixtures from the SDK
|
|
85
|
+
and validates them against reference validators only — veraPDF for PDF/A (the
|
|
86
|
+
six levels), qpdf for PDF, structural OPC/ODF checks for the Office/ODF exports
|
|
87
|
+
— failing the build on any regression.
|
|
88
|
+
|
|
89
|
+
### Fixed
|
|
90
|
+
|
|
91
|
+
- **PDF/A-2b trailer `/ID`** (ISO 19005-2 cl. 6.1.3). `to_pdfa` set a
|
|
92
|
+
deterministic `/ID`, but `serialize::to_pdf` rebuilt the trailer and dropped
|
|
93
|
+
it; the classic serializer now preserves `/ID`, matching the compressed and
|
|
94
|
+
encrypted serializers.
|
|
95
|
+
- **PDF/A appearance & graphics-state sanitization.** On PDF/A export, annotation
|
|
96
|
+
appearance dictionaries are reduced to `/N` only (cl. 6.3.3), the `/TR`
|
|
97
|
+
transfer-function key is removed from ExtGState (cl. 6.2.5), and incomplete
|
|
98
|
+
`/CIDSet` entries are dropped (cl. 6.2.11.4.2) — all render-neutral.
|
|
99
|
+
|
|
100
|
+
### Improved
|
|
101
|
+
|
|
102
|
+
- **Serialization — linearization, incremental updates & versioned output ([#77]).**
|
|
103
|
+
The Fast-Web-View (linearized) hint stream now carries the true per-page
|
|
104
|
+
content-stream length and adds the document-outline (`/O`) and thread-information
|
|
105
|
+
(`/A`) hint tables (ISO 32000-1 Annex F.3.3); incremental updates (used by signing's
|
|
106
|
+
DSS / document-timestamp appends) now match the base file's cross-reference form — an
|
|
107
|
+
xref **stream** when the base uses one. `saveOptimized()` now emits a `%PDF-1.7`
|
|
108
|
+
banner by default (was 1.5).
|
|
109
|
+
- **Annotations — appearance fidelity ([#76]).** `regenerateAppearance()` now rebuilds
|
|
110
|
+
the appearance for FreeText, Stamp, Text, Link, Squiggly and FileAttachment, plus
|
|
111
|
+
Redaction and placeholder 3D / RichMedia / Movie / Sound annotations (several
|
|
112
|
+
previously returned “unsupported”; FreeText now succeeds). Rubber-stamp `/Name`
|
|
113
|
+
follows the label (ISO standard stamps recognised); FreeText centre/right alignment
|
|
114
|
+
uses the real Core-14 AFM advances of the `/DA` font; ink strokes are smoothed
|
|
115
|
+
(Catmull-Rom → Bézier) and squiggly markup renders as a true sinusoid.
|
|
116
|
+
- **RTF export — fonts & images ([#78]).** `modelToRtf` / `toRtf` emit a real per-run
|
|
117
|
+
font table (`\fonttbl` with `\froman` / `\fswiss` / `\fmodern` classes; each run
|
|
118
|
+
selects its `\fN`) instead of a single hardcoded font, and transcode GIF / WebP /
|
|
119
|
+
AVIF pictures to PNG (`\pict\pngblip`) instead of dropping them.
|
|
120
|
+
- **PDF → model reconstruction ([#75]).** Multi-paragraph table cells, header-row
|
|
121
|
+
detection by font size / shading (and footers), `Cell.shading` / `Row.is_header`
|
|
122
|
+
populated for ruled tables, decimal-column alignment on real glyph advances,
|
|
123
|
+
single-gutter fallback, 3-line heading promotion with a bold-subhead guard,
|
|
124
|
+
marker-format list nesting, ordered lists starting ≠ 1, document-wide leading
|
|
125
|
+
fallback, image-only header/footer (logo) detection, and a page-number digit-fold
|
|
126
|
+
guard — all flow through every PDF → Office/HTML/RTF/text conversion.
|
|
127
|
+
|
|
128
|
+
## [0.100.0] - 2026-06-25
|
|
129
|
+
|
|
130
|
+
Engine improvements only — no new SDK methods. The last in-scope Office-import
|
|
131
|
+
([#3](https://github.com/qrcommunication/gigapdf-lib/issues/3)) fidelity items.
|
|
132
|
+
|
|
133
|
+
### Improved
|
|
134
|
+
|
|
135
|
+
- **`officeToModel`** — XLSX/ODS sheet **column widths** are imported (and round-trip
|
|
136
|
+
through export); **DOCX track-changes** are accepted to the final version (insertions
|
|
137
|
+
kept, deletions dropped — deleted text no longer leaks), and comment markers no longer
|
|
138
|
+
corrupt parsing.
|
|
139
|
+
|
|
140
|
+
## [0.99.0] - 2026-06-25
|
|
141
|
+
|
|
142
|
+
Engine improvements only — no new SDK methods; `officeToModel` and the PDF→model
|
|
143
|
+
reconstruction get higher fidelity, and one roadmap closes.
|
|
144
|
+
|
|
145
|
+
### Improved
|
|
146
|
+
|
|
147
|
+
- **DOCX Office Math ([#37]) complete** — `officeToModel` now linearizes OMML
|
|
148
|
+
equations to readable Unicode math (fractions, radicals, sub/superscripts, ∑/∫,
|
|
149
|
+
matrices…) instead of dropping them. ([#37](https://github.com/qrcommunication/gigapdf-lib/issues/37))
|
|
150
|
+
- **Table header rows** — `Row.is_header` is detected in PDF→model reconstruction and
|
|
151
|
+
round-trips through DOCX/ODF/HTML/EPUB import+export+render (+ JSON).
|
|
152
|
+
- **PDF→model** — heading levels are clustered document-wide (consistent across pages),
|
|
153
|
+
and page `/Rotate` now applies to tagged-PDF block geometry.
|
|
154
|
+
|
|
155
|
+
## [0.98.0] - 2026-06-25
|
|
156
|
+
|
|
157
|
+
Engine improvements only — no new SDK methods; existing conversion methods reach
|
|
158
|
+
markedly higher fidelity, and two conversion roadmaps close.
|
|
159
|
+
|
|
160
|
+
### Improved
|
|
161
|
+
|
|
162
|
+
- **Office export ([#2]) complete** — `modelTo{Docx,Xlsx,Pptx,Odt,Ods,Odp}` now
|
|
163
|
+
preserve multi-section page setup, super/subscript, spreadsheet underline/strike,
|
|
164
|
+
ODT block shapes, internal page links, real PPTX/ODP non-slide structures, and
|
|
165
|
+
explicit run colour. ([#2](https://github.com/qrcommunication/gigapdf-lib/issues/2))
|
|
166
|
+
- **Other-format conversions ([#4]) complete** — RTF import decodes WMF/EMF/DIB
|
|
167
|
+
pictures (`\bin` + hex), finishing the rich RTF↔model / `toText` / `toRtf` / CSV /
|
|
168
|
+
Markdown / EPUB / PDF-A roadmap. ([#4](https://github.com/qrcommunication/gigapdf-lib/issues/4))
|
|
169
|
+
- **In-house WMF/EMF metafile decoder** — embedded Windows metafiles in `.rtf` and
|
|
170
|
+
Office packages now rasterize (previously dropped).
|
|
171
|
+
- **Office import ([#3])** — PPTX/ODP run styling + paragraph + lists, ODS
|
|
172
|
+
merges/number-formats/fills, DOCX `w:vMerge` row spans, internal hyperlink-anchor
|
|
173
|
+
resolution, speaker notes, and embedded-image format detection.
|
|
174
|
+
- **PDF→model ([#5])** — page `/Rotate` honored, tagged blocks land on their real pages.
|
|
175
|
+
|
|
176
|
+
## [0.97.0] - 2026-06-25
|
|
177
|
+
|
|
178
|
+
Engine improvements only — no new SDK methods; existing conversion/render/read
|
|
179
|
+
methods get markedly higher fidelity.
|
|
180
|
+
|
|
181
|
+
### Improved
|
|
182
|
+
|
|
183
|
+
- **JPEG 2000 (`JPXDecode`) images** now render and extract (a from-scratch
|
|
184
|
+
decoder wired into the image pipeline) — the third hand-written image codec
|
|
185
|
+
after CCITTFax and JBIG2. ([#35](https://github.com/qrcommunication/gigapdf-lib/issues/35))
|
|
186
|
+
- **`toPdfA` is now veraPDF-validated conformant** — every font embedded (or
|
|
187
|
+
metric-matched-substituted), encryption + JavaScript stripped, metadata from
|
|
188
|
+
the document. ([#4](https://github.com/qrcommunication/gigapdf-lib/issues/4))
|
|
189
|
+
- **Conversion fidelity** advanced across the open roadmaps: PDF→model recon
|
|
190
|
+
(FontDescriptor bold/italic, robust columns/lines, table spans/sparse/rotated,
|
|
191
|
+
tagged `/ColSpan`/`/ListNumbering`/`/Pg`/`/BBox`); Office import (DOCX symbols/
|
|
192
|
+
text-boxes/field-codes, footnotes, PPTX/ODP autoshapes, ODT lists/spans);
|
|
193
|
+
Office export (standard CSV, Markdown colour/shapes, PPTX para formatting, run
|
|
194
|
+
images, hyperlinks, ODT nested lists/borders); RTF/text model-aware export;
|
|
195
|
+
CSV typed-cell import.
|
|
196
|
+
|
|
197
|
+
## [0.96.0] - 2026-06-25
|
|
198
|
+
|
|
199
|
+
PDF linearization + from-scratch bilevel codecs, plus a broad conversion-fidelity
|
|
200
|
+
pass. New SDK surface:
|
|
201
|
+
|
|
202
|
+
### Added
|
|
203
|
+
|
|
204
|
+
- **`toLinearized()` / `saveLinearized()`** — produce a linearized ("Fast Web
|
|
205
|
+
View") PDF: ISO 32000-1 Annex F layout with `/Linearized` dict + page-offset
|
|
206
|
+
and shared-object hint streams, byte-exact and **qpdf-clean**.
|
|
207
|
+
([#67](https://github.com/qrcommunication/gigapdf-lib/issues/67))
|
|
208
|
+
|
|
209
|
+
### Improved (engine, via existing SDK conversion/render/read methods)
|
|
210
|
+
|
|
211
|
+
- **Scanned-document PDFs** now render and extract: `CCITTFaxDecode` (G3/G4) and
|
|
212
|
+
`JBIG2Decode` (full ITU-T T.88) are implemented from scratch — no third-party
|
|
213
|
+
codec. ([#34](https://github.com/qrcommunication/gigapdf-lib/issues/34))
|
|
214
|
+
- **Conversion fidelity** advanced across the board (open roadmaps #2/#3/#4/#5):
|
|
215
|
+
XLSX/ODS cell formulas, real image formats and PPTX/ODP speaker notes on export;
|
|
216
|
+
DOCX/ODT headers/footers, XLSX cell styling and DOCX footnotes on import; rich
|
|
217
|
+
RTF↔model and GFM Markdown→model; EPUB nested TOC + unique id + inline-SVG
|
|
218
|
+
shapes; and PDF→model gains header/footer stripping, stable heading levels and
|
|
219
|
+
list false-positive rejection.
|
|
220
|
+
|
|
221
|
+
## [0.95.0] - 2026-06-25
|
|
222
|
+
|
|
223
|
+
Thirteen roadmap issues (PDF authoring, PDF reading, Office round-trip, CI
|
|
224
|
+
conformance). New SDK surface:
|
|
225
|
+
|
|
226
|
+
### Added
|
|
227
|
+
|
|
228
|
+
- **`setPageTransition(page, opts)` / `getPageTransition(page)` /
|
|
229
|
+
`clearPageTransition(page)`** — presentation page transitions (`/Trans`: 12
|
|
230
|
+
styles + direction/dimension/motion/scale) and per-page `/Dur` auto-advance.
|
|
231
|
+
([#65](https://github.com/qrcommunication/gigapdf-lib/issues/65))
|
|
232
|
+
- **`scalePageContent(page, factor)` / `scalePageContentXy(page, sx, sy)` /
|
|
233
|
+
`scalePageTo(page, w, h)` / `setUserUnit(page, unit)`** — true content scaling
|
|
234
|
+
(stream + boxes + annotation rects) and `/UserUnit` for large-format pages.
|
|
235
|
+
([#68](https://github.com/qrcommunication/gigapdf-lib/issues/68))
|
|
236
|
+
- **`setCollection(config)` / `collection()`** — embedded-file portfolio
|
|
237
|
+
`/Collection` (view, `/Schema` columns, sort, default file, per-file `/CI`).
|
|
238
|
+
([#66](https://github.com/qrcommunication/gigapdf-lib/issues/66))
|
|
239
|
+
- **`setFigureAlt(index, alt)` / `figureCount()`** — per-figure `/Alt` accessible
|
|
240
|
+
alternate text for Tagged PDF / PDF/UA + PDF/A level-A exports.
|
|
241
|
+
([#20](https://github.com/qrcommunication/gigapdf-lib/issues/20))
|
|
242
|
+
|
|
243
|
+
### Improved (engine, via existing SDK conversion/render methods)
|
|
244
|
+
|
|
245
|
+
- PDF reading honors **optional-content (OCG/OCMD) visibility** during render
|
|
246
|
+
([#54](https://github.com/qrcommunication/gigapdf-lib/issues/54)) and **vertical
|
|
247
|
+
writing mode** (`Identity-V`, `/W2`/`/DW2`)
|
|
248
|
+
([#49](https://github.com/qrcommunication/gigapdf-lib/issues/49)).
|
|
249
|
+
- Office conversions gain document **outline/TOC** (#31), **named-style** lowering
|
|
250
|
+
(#30), **DOCX drawing** geometry + alt (#40), **super/subscript** (#32),
|
|
251
|
+
**flat-XML ODF + `.odg`** import (#53) and **table/cell vertical alignment** (#27).
|
|
252
|
+
- CI now validates exports against **ECMA-376 XSD + ODF RelaxNG** schemas (#19).
|
|
253
|
+
|
|
254
|
+
## [0.94.0] - 2026-06-25
|
|
255
|
+
|
|
256
|
+
Issue [#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) — the native
|
|
257
|
+
HTML/CSS + inline-SVG renderer — is complete (inline `@font-face` with
|
|
258
|
+
ttf/otf/woff/**woff2** via a from-scratch WOFF2/brotli decoder, full UAX#9 bidi,
|
|
259
|
+
SVG filters, COLRv1, patterns, sticky/float/flex, …), plus 21 PDF/font/Office
|
|
260
|
+
fixes. New SDK surface:
|
|
261
|
+
|
|
262
|
+
### Added
|
|
263
|
+
|
|
264
|
+
- **`addDocumentJavascript(name, script)` / `documentJavascripts()` /
|
|
265
|
+
`removeDocumentJavascript(name)`** — author document-level JavaScript actions in
|
|
266
|
+
the catalog `/Names /JavaScript` name tree (run by viewers on open).
|
|
267
|
+
([#64](https://github.com/qrcommunication/gigapdf-lib/issues/64))
|
|
268
|
+
- **`beginOptionalContent(page, ocg)` / `endOptionalContent(page)`** — assign drawn
|
|
269
|
+
page content to a toggleable optional-content (OCG) layer via marked content.
|
|
270
|
+
([#59](https://github.com/qrcommunication/gigapdf-lib/issues/59))
|
|
271
|
+
- **`placePage(target, source, x, y, sx, sy)` / `placePageMatrix(...)` /
|
|
272
|
+
`nUp(cols, rows, opts?)`** — N-up / imposition: place a source page as a scaled
|
|
273
|
+
Form XObject onto another page (2-up/4-up/contact sheets).
|
|
274
|
+
([#60](https://github.com/qrcommunication/gigapdf-lib/issues/60))
|
|
275
|
+
|
|
276
|
+
### Improved
|
|
277
|
+
|
|
278
|
+
- The HTML→PDF renderer now honours inline `@font-face` web fonts, RTL/bidi text,
|
|
279
|
+
SVG `filter`, COLRv1 colour fonts, `<pattern>` fills, `position: sticky`, floats,
|
|
280
|
+
flex column sizing, conic gradients and more — issue #1 in full.
|
|
281
|
+
- Office conversions gain: document metadata round-trip, DOCX paragraph/table
|
|
282
|
+
styling + page breaks + numbering, real slide tables, named styles, placeholder
|
|
283
|
+
roles, slide backgrounds; PDF reading gains inline images, hybrid `/XRefStm`,
|
|
284
|
+
type-1 shadings and Type1 glyph rasterisation.
|
|
285
|
+
|
|
286
|
+
## [0.93.0] - 2026-06-24
|
|
287
|
+
|
|
288
|
+
### Added
|
|
289
|
+
|
|
290
|
+
- **`appendPages(otherPdf, pages?)`** appends selected source pages (1-based; omit
|
|
291
|
+
for all); **`mergePdfs(parts)`** now accepts `(Uint8Array | { pdf, pages? })[]`,
|
|
292
|
+
with the new exported `MergePart` type, for page-range merges.
|
|
293
|
+
([#61](https://github.com/qrcommunication/gigapdf-lib/issues/61))
|
|
294
|
+
|
|
295
|
+
### Fixed (read/import, no SDK signature change)
|
|
296
|
+
|
|
297
|
+
- Type0 CJK composite fonts (predefined/embedded CMaps + non-Identity
|
|
298
|
+
`/CIDToGIDMap`) now decode/render correctly
|
|
299
|
+
([#46](https://github.com/qrcommunication/gigapdf-lib/issues/46)); PPTX import
|
|
300
|
+
gains run hyperlinks, table cell fill/borders, theme-colour resolution, and
|
|
301
|
+
mirror ([#47](https://github.com/qrcommunication/gigapdf-lib/issues/47)).
|
|
302
|
+
|
|
303
|
+
## [0.92.0] - 2026-06-24
|
|
304
|
+
|
|
305
|
+
### Added
|
|
306
|
+
|
|
307
|
+
- **`setViewerPreferences(prefs)` / `setPageLayout(layout)` / `setPageMode(mode)`**
|
|
308
|
+
author the catalog reading/UX hints. `ViewerPreferences` = optional
|
|
309
|
+
`hideToolbar`/`hideMenubar`/`hideWindowUI`/`fitWindow`/`centerWindow`/
|
|
310
|
+
`displayDocTitle` (omit = leave untouched) + `direction` (`'L2R'`/`'R2L'`);
|
|
311
|
+
`PageLayout` ∈ SinglePage/OneColumn/TwoColumn{Left,Right}/TwoPage{Left,Right};
|
|
312
|
+
`PageMode` ∈ UseNone/UseOutlines/UseThumbs/FullScreen/UseOC/UseAttachments.
|
|
313
|
+
([#63](https://github.com/qrcommunication/gigapdf-lib/issues/63))
|
|
314
|
+
|
|
315
|
+
### Fixed (read/import, no SDK signature change)
|
|
316
|
+
|
|
317
|
+
- Type3 `/CharProcs` glyphs now render
|
|
318
|
+
([#42](https://github.com/qrcommunication/gigapdf-lib/issues/42)); ODT import
|
|
319
|
+
gains paragraph styling, footnotes, body text boxes, table sizing/shading
|
|
320
|
+
([#52](https://github.com/qrcommunication/gigapdf-lib/issues/52)).
|
|
321
|
+
|
|
322
|
+
## [0.91.0] - 2026-06-24
|
|
323
|
+
|
|
324
|
+
PDF-read & Office-import fidelity (no SDK signature change): `LZWDecode`,
|
|
325
|
+
`ASCII85Decode`, `ASCIIHexDecode`, `RunLengthDecode` stream filters (chained
|
|
326
|
+
`/Filter` + `/DecodeParms`) now decode
|
|
327
|
+
([#33](https://github.com/qrcommunication/gigapdf-lib/issues/33)); ODS import
|
|
328
|
+
gains per-cell styling, number formats, merges, and column/row sizing
|
|
329
|
+
([#45](https://github.com/qrcommunication/gigapdf-lib/issues/45)).
|
|
330
|
+
|
|
331
|
+
## [0.90.0] - 2026-06-24
|
|
332
|
+
|
|
333
|
+
PDF-read & Office-import fidelity (no SDK signature change): image `/ImageMask`
|
|
334
|
+
stencils + `/Mask` (explicit & colour-key) now render
|
|
335
|
+
([#41](https://github.com/qrcommunication/gigapdf-lib/issues/41)); XLSX import
|
|
336
|
+
gains per-cell styling, number/date formats, shared formulas and hyperlinks
|
|
337
|
+
([#44](https://github.com/qrcommunication/gigapdf-lib/issues/44)).
|
|
338
|
+
|
|
339
|
+
## [0.89.0] - 2026-06-24
|
|
340
|
+
|
|
341
|
+
PDF-read fidelity (no SDK signature change): FlateDecode/LZW `/DecodeParms`
|
|
342
|
+
predictors (TIFF 2, PNG 10–15) for image **and** xref/object streams
|
|
343
|
+
([#57](https://github.com/qrcommunication/gigapdf-lib/issues/57)); CalGray/CalRGB
|
|
344
|
+
gamma + matrix + white-point colour conversion, ICCBased `/N` fallback corrected
|
|
345
|
+
([#58](https://github.com/qrcommunication/gigapdf-lib/issues/58)).
|
|
346
|
+
|
|
347
|
+
## [0.88.1] - 2026-06-24
|
|
348
|
+
|
|
349
|
+
HTML/CSS renderer: `box-shadow: inset` is now painted (a clipped shadow frame
|
|
350
|
+
inside the box) instead of dropped. HTML→PDF path only — no SDK signature change
|
|
351
|
+
([#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) item B).
|
|
352
|
+
|
|
353
|
+
## [0.88.0] - 2026-06-24
|
|
354
|
+
|
|
355
|
+
HTML/CSS renderer: `flex-basis` / `flex-grow` / `flex-shrink` now apply on the
|
|
356
|
+
**column** axis (flexing item heights against a definite container `height`), not
|
|
357
|
+
just the row axis. HTML→PDF path only — no SDK signature change
|
|
358
|
+
([#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) item A).
|
|
359
|
+
|
|
360
|
+
## [0.87.2] - 2026-06-24
|
|
361
|
+
|
|
362
|
+
HTML/CSS renderer: 3-D `border-style`s `inset`/`outset`/`groove`/`ridge` now shade
|
|
363
|
+
the sides for depth instead of rendering flat `solid`. HTML→PDF path only — no SDK
|
|
364
|
+
signature change ([#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) item C).
|
|
365
|
+
|
|
366
|
+
## [0.87.1] - 2026-06-24
|
|
367
|
+
|
|
368
|
+
HTML/CSS renderer: `aspect-ratio` now derives a block's height from its width
|
|
369
|
+
(`width / ratio`) when no definite `height` is set. HTML→PDF path only — no SDK
|
|
370
|
+
signature change ([#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) item A).
|
|
371
|
+
|
|
372
|
+
## [0.87.0] - 2026-06-24
|
|
373
|
+
|
|
374
|
+
HTML/CSS renderer: colour **alpha** (`rgba()`/`hsla()`/`#rgba`/`#rrggbbaa`) is now
|
|
375
|
+
applied — folded into the opacity of the text/background/border/cell it paints,
|
|
376
|
+
composing with `opacity` — instead of being dropped. Also fixes function colours
|
|
377
|
+
with internal spaces (`rgba(0, 0, 0, .5)`) in the `background`/`border` shorthands.
|
|
378
|
+
HTML→PDF path only — no SDK signature change
|
|
379
|
+
([#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) item C).
|
|
380
|
+
|
|
381
|
+
## [0.86.1] - 2026-06-24
|
|
382
|
+
|
|
383
|
+
HTML/CSS renderer: `grid-template-rows` now resolves `%` and `fr` rows (against
|
|
384
|
+
the grid's definite `height`), not just fixed `pt`. HTML→PDF path only — no SDK
|
|
385
|
+
signature change ([#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) item A).
|
|
386
|
+
|
|
387
|
+
## [0.86.0] - 2026-06-24
|
|
388
|
+
|
|
389
|
+
HTML/CSS renderer: `overflow: hidden`/`clip` now emit a **real PDF clip** (text,
|
|
390
|
+
images, backgrounds, gradients straddling an edge are pixel-clipped; nested boxes
|
|
391
|
+
intersect). `height` is now a **definite** height (content overflows + is clipped)
|
|
392
|
+
instead of a `min-height` alias; text runs carry their width so overflowing text
|
|
393
|
+
is clipped too. HTML→PDF path only — no SDK signature change
|
|
394
|
+
([#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) item A).
|
|
395
|
+
|
|
396
|
+
## [0.85.4] - 2026-06-24
|
|
397
|
+
|
|
398
|
+
HTML/CSS renderer: `flex-direction: row-reverse` / `column-reverse` now run the
|
|
399
|
+
main axis from the far end (were collapsed to the forward axis) in the HTML→PDF
|
|
400
|
+
path ([#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) item A). No API change.
|
|
401
|
+
|
|
402
|
+
## [0.85.3] - 2026-06-24
|
|
403
|
+
|
|
404
|
+
HTML/CSS renderer: `justify-content: space-evenly` now uses `n + 1` equal gaps
|
|
405
|
+
(was aliased to `space-around`) in the HTML→PDF path
|
|
406
|
+
([#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) item A). No API change.
|
|
407
|
+
|
|
408
|
+
## [0.85.2] - 2026-06-24
|
|
409
|
+
|
|
410
|
+
HTML/CSS renderer: `currentColor` now resolves to the element's cascaded `color`
|
|
411
|
+
(borders, background, and the `border` shorthand) in the HTML→PDF path
|
|
412
|
+
([#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) item C). No API change.
|
|
413
|
+
|
|
414
|
+
## [0.85.1] - 2026-06-24
|
|
415
|
+
|
|
416
|
+
HTML/CSS renderer: absolute & relative CSS length units — `cm`, `mm`, `in`, `pc`,
|
|
417
|
+
`q`, `ex`, `ch` — now resolve in the HTML→PDF path
|
|
418
|
+
([#1](https://github.com/qrcommunication/gigapdf-lib/issues/1) item E). No API change.
|
|
419
|
+
|
|
420
|
+
## [0.85.0] - 2026-06-24
|
|
421
|
+
|
|
422
|
+
Standalone tagged-PDF / PDF-UA authoring. Resolves
|
|
423
|
+
[#18](https://github.com/qrcommunication/gigapdf-lib/issues/18).
|
|
424
|
+
|
|
425
|
+
### Added
|
|
426
|
+
|
|
427
|
+
- **`doc.toTagged({ pdfUa? })`** — author a tagged (accessible) PDF: a
|
|
428
|
+
`/StructTreeRoot` logical-structure tree with marked content, `/MarkInfo`,
|
|
429
|
+
`/Lang`, `/RoleMap` and `/Alt` on figures, **without** forcing PDF/A. `pdfUa`
|
|
430
|
+
adds the PDF/UA-1 identifier (ISO 14289).
|
|
431
|
+
|
|
432
|
+
## [0.84.0] - 2026-06-24
|
|
433
|
+
|
|
434
|
+
Public-key (certificate) encryption + password management. Resolves
|
|
435
|
+
[#17](https://github.com/qrcommunication/gigapdf-lib/issues/17).
|
|
436
|
+
|
|
437
|
+
### Added
|
|
438
|
+
|
|
439
|
+
- **`doc.encryptForRecipients(certificates, opts?)`** — encrypt to one or more
|
|
440
|
+
X.509 recipients (`/Filter /Adobe.PubSec`); only a recipient private key opens
|
|
441
|
+
it. `certificates` are DER certs; `opts = { flags?, permissions?, aes256?,
|
|
442
|
+
encryptMetadata?, seed?, rngSeed? }` (`seed`/`rngSeed` default to Web Crypto).
|
|
443
|
+
- **`engine.openWithPrivateKey(pdf, certificate, privateKey)`** — open a
|
|
444
|
+
public-key-encrypted PDF with a DER cert + PKCS#1 RSA key (`null` if not a
|
|
445
|
+
recipient).
|
|
446
|
+
- **`doc.changePasswords(newPassword, fileId, opts?)`** — re-encrypt an opened
|
|
447
|
+
document with new passwords (`opts` adds `encryptMetadata?`).
|
|
448
|
+
- **`doc.removeEncryption()`** — strip encryption → plaintext PDF.
|
|
449
|
+
|
|
450
|
+
## [0.83.0] - 2026-06-24
|
|
451
|
+
|
|
452
|
+
Press-ready colour authoring. Resolves
|
|
453
|
+
[#11](https://github.com/qrcommunication/gigapdf-lib/issues/11) (CMYK / spot /
|
|
454
|
+
ICC OutputIntent / overprint).
|
|
455
|
+
|
|
456
|
+
### Added
|
|
457
|
+
|
|
458
|
+
- **`Color`** union type — `{ space: "rgb", rgb }` · `{ space: "cmyk", c,m,y,k }`
|
|
459
|
+
· `{ space: "gray", gray }` · `{ space: "separation", name, tint, cmyk }` ·
|
|
460
|
+
`{ space: "icc", components, profile }`. CMYK/gray/tint components are `0`…`1`.
|
|
461
|
+
- **`addFilledRectangle(page, rect, color, opacity?)`** and
|
|
462
|
+
**`addFilledPolygon(page, points, color, opacity?)`** — fill shapes in any
|
|
463
|
+
colour space.
|
|
464
|
+
- **`addTextColor(page, x, y, size, text, font, color, opts?)`** — base-14 text
|
|
465
|
+
in any colour space (`opts = { opacity?, rotation?, underline?, strikethrough? }`).
|
|
466
|
+
- **`setOverprint(page, fill, stroke, mode?)`** — prepress overprint (`/op`,
|
|
467
|
+
`/OP`, `/OPM`).
|
|
468
|
+
- **`addOutputIntent(profile, condition)`** — embed an ICC profile as a document
|
|
469
|
+
OutputIntent (`/S /GTS_PDFX`), decoupled from PDF/A.
|
|
470
|
+
|
|
471
|
+
## [0.82.0] - 2026-06-24
|
|
472
|
+
|
|
473
|
+
Gradient authoring. Resolves
|
|
474
|
+
[#12](https://github.com/qrcommunication/gigapdf-lib/issues/12) (gradients;
|
|
475
|
+
tiling patterns / blend modes deferred).
|
|
476
|
+
|
|
477
|
+
### Added
|
|
478
|
+
|
|
479
|
+
- **`addGradient(page, spec)`.** Paint a **linear** or **radial** gradient over a
|
|
480
|
+
rectangle. `spec = { kind: "linear" | "radial", coords, stops, rect, extend?,
|
|
481
|
+
opacity? }` — `coords` is `[x0,y0,x1,y1]` (linear) or `[x0,y0,r0,x1,y1,r1]`
|
|
482
|
+
(radial); `stops` is ≥ 2 `{ offset, rgb }`. Rendered as a shading pattern (ISO
|
|
483
|
+
32000-1 §8.7.4/§8.7.3); the stops compile to a PDF interpolation function.
|
|
484
|
+
- New exported types **`GradientSpec`** and **`GradientStop`**.
|
|
485
|
+
|
|
486
|
+
## [0.81.0] - 2026-06-24
|
|
487
|
+
|
|
488
|
+
Compact output — object streams + cross-reference stream. Resolves
|
|
489
|
+
[#10](https://github.com/qrcommunication/gigapdf-lib/issues/10) (linearization
|
|
490
|
+
excepted).
|
|
491
|
+
|
|
492
|
+
### Added
|
|
493
|
+
|
|
494
|
+
- **`saveOptimized(opts?)`.** Serialize with PDF 1.5+ **object streams**
|
|
495
|
+
(`/ObjStm`) + a **cross-reference stream** (`/XRef`) — the most compact output.
|
|
496
|
+
`opts = { objectStreams?, xrefStreams? }` (both default `true`; `objectStreams`
|
|
497
|
+
implies `xrefStreams`). Streams are Flate-compressed first, like
|
|
498
|
+
`saveCompressed`.
|
|
499
|
+
|
|
500
|
+
Both modes are validated with `qpdf --check`. Linearization (Fast Web View) is
|
|
501
|
+
not performed.
|
|
502
|
+
|
|
503
|
+
## [0.80.0] - 2026-06-24
|
|
504
|
+
|
|
505
|
+
Signature verification + DocMDP certification. Resolves
|
|
506
|
+
[#16](https://github.com/qrcommunication/gigapdf-lib/issues/16).
|
|
507
|
+
|
|
508
|
+
### Added
|
|
509
|
+
|
|
510
|
+
- **`signatures()`.** List every signature (`/Sig` field) with `{ fieldName,
|
|
511
|
+
signerName, reason, location, date, subFilter, byteRange }`.
|
|
512
|
+
- **`verifySignatures(pdfBytes)`.** Cryptographically verify each signature
|
|
513
|
+
against the **original bytes** — `{ byteRangeOk, digestOk, signatureOk,
|
|
514
|
+
coversWholeDocument, signerCommonName, certCount, algorithm }`. `digestOk` is
|
|
515
|
+
content integrity (ByteRange SHA-256 vs CMS `messageDigest`); `signatureOk` is
|
|
516
|
+
the RSA SignerInfo signature. RSA + SHA-256 only.
|
|
517
|
+
- **`certify(fields, random, docmdpLevel, keyBits?)`.** Certify the document
|
|
518
|
+
(DocMDP) — writes `/Perms /DocMDP` + a `/Reference` transform; `docmdpLevel` is
|
|
519
|
+
`1` (no changes), `2` (form-fill + sign) or `3` (also annotate).
|
|
520
|
+
- New exported types **`SignatureInfo`** and **`SignatureReport`**.
|
|
521
|
+
|
|
522
|
+
## [0.79.0] - 2026-06-24
|
|
523
|
+
|
|
524
|
+
Interactive-form completeness: signature fields, field JavaScript, calculation
|
|
525
|
+
order, field deletion and appearance regeneration. Resolves
|
|
526
|
+
[#15](https://github.com/qrcommunication/gigapdf-lib/issues/15).
|
|
527
|
+
|
|
528
|
+
### Added
|
|
529
|
+
|
|
530
|
+
- **`addSignatureField(page, name, rect, opts?)`.** A visible signature field
|
|
531
|
+
(`/FT /Sig`) the signing pipeline can target; sets the AcroForm `/SigFlags`.
|
|
532
|
+
- **`setFieldScript(name, trigger, js)`.** Field-level JavaScript on a field's
|
|
533
|
+
`/AA` — `trigger ∈ "keystroke" | "format" | "validate" | "calculate"` (input
|
|
534
|
+
masks, formatting, validation, computed totals).
|
|
535
|
+
- **`setCalculationOrder(names)`.** The AcroForm `/CO` recalculation order.
|
|
536
|
+
- **`removeField(name)`.** Delete a field (from `/Fields`, `/CO` and page annots).
|
|
537
|
+
- **`regenerateFieldAppearance(name)`.** Rebuild a field's appearance after a
|
|
538
|
+
programmatic value change (text / choice / checkbox).
|
|
539
|
+
|
|
540
|
+
## [0.78.0] - 2026-06-24
|
|
541
|
+
|
|
542
|
+
Full action & destination navigation model. Resolves
|
|
543
|
+
[#14](https://github.com/qrcommunication/gigapdf-lib/issues/14).
|
|
544
|
+
|
|
545
|
+
### Added
|
|
546
|
+
|
|
547
|
+
- **`addLink(page, rect, action)`.** A link over `rect` carrying any `Action` —
|
|
548
|
+
`goto` (with every fit mode: `xyz`/`fit`/`fitH`/`fitV`/`fitR`/`fitB`/`fitBH`/
|
|
549
|
+
`fitBV`/`named`), `gotoR` (remote file), `uri`, `named` viewer navigation,
|
|
550
|
+
`launch`, `javascript`, `submitForm`, `resetForm`.
|
|
551
|
+
- **`setOpenAction(action)`.** Set the document `/OpenAction` performed on open.
|
|
552
|
+
- **`removeLink(page, linkIndex)`.** Delete the *n*-th `/Link` annotation on a
|
|
553
|
+
page (other annotations untouched).
|
|
554
|
+
- **`setBookmarks(bookmarks)`.** Replace the outline with `Bookmark[]`
|
|
555
|
+
(`{title, level, action?}`) — bookmarks can carry any action (a `goto` becomes
|
|
556
|
+
a `/Dest`, anything else an `/A`).
|
|
557
|
+
- New exported types: **`Action`**, **`Destination`**, **`Bookmark`**.
|
|
558
|
+
|
|
559
|
+
## [0.77.0] - 2026-06-24
|
|
560
|
+
|
|
561
|
+
Geometric annotation subtypes + appearance regeneration. Resolves
|
|
562
|
+
[#13](https://github.com/qrcommunication/gigapdf-lib/issues/13).
|
|
563
|
+
|
|
564
|
+
### Added
|
|
565
|
+
|
|
566
|
+
- **`addCircleAnnotation` / `addPolygonAnnotation` / `addPolylineAnnotation` /
|
|
567
|
+
`addCaretAnnotation`.** The missing geometric annotation subtypes (`/Circle`,
|
|
568
|
+
`/Polygon`, `/PolyLine`, `/Caret`), with border width and interior colour, each
|
|
569
|
+
rendered via a generated `/AP` appearance stream.
|
|
570
|
+
- **`regenerateAppearance(page, index)`.** Rebuild an existing annotation's baked
|
|
571
|
+
appearance after editing its colour/border/geometry (Square, Circle, Line,
|
|
572
|
+
Polygon, PolyLine, Highlight, Underline, StrikeOut, Ink, Caret); `false` for
|
|
573
|
+
subtypes that can't be reconstructed (FreeText/Stamp/Text/Link).
|
|
574
|
+
|
|
575
|
+
A text watermark already exists as `addWatermark`, so no new watermark method was
|
|
576
|
+
added.
|
|
577
|
+
|
|
578
|
+
## [0.76.0] - 2026-06-24
|
|
579
|
+
|
|
580
|
+
General document metadata (XMP + typed Info, kept in sync). Resolves
|
|
581
|
+
[#7](https://github.com/qrcommunication/gigapdf-lib/issues/7).
|
|
582
|
+
|
|
583
|
+
### Added
|
|
584
|
+
|
|
585
|
+
- **`setInfo(fields)` / `getXmp()` / `setXmp(xmp)`.** `setInfo` writes the typed
|
|
586
|
+
document-information fields (`{ title?, author?, subject?, keywords?, creator?,
|
|
587
|
+
producer?, creationDate?, modDate? }`) to **both** the `/Info` dictionary and a
|
|
588
|
+
synced XMP `/Metadata` packet — a partial update (omitted fields are left
|
|
589
|
+
unchanged), curing the classic Info-vs-XMP "two sources of truth" drift.
|
|
590
|
+
`getXmp`/`setXmp` read and replace the raw XMP packet (bytes or string). New
|
|
591
|
+
`InfoFields` type. The single-key `setMetadata(key, value)` is unchanged (it
|
|
592
|
+
touches only `/Info`).
|
|
593
|
+
|
|
594
|
+
## [0.75.0] - 2026-06-24
|
|
595
|
+
|
|
596
|
+
Writable file attachments + Factur-X / ZUGFeRD `/AF`. Resolves
|
|
597
|
+
[#9](https://github.com/qrcommunication/gigapdf-lib/issues/9).
|
|
598
|
+
|
|
599
|
+
### Added
|
|
600
|
+
|
|
601
|
+
- **`addAttachment` / `addAssociatedFile` / `removeAttachment` /
|
|
602
|
+
`addFileAttachmentAnnot`.** Embed, replace and remove document-level file
|
|
603
|
+
attachments (`/Names /EmbeddedFiles`), anchor a visible `FileAttachment`
|
|
604
|
+
annotation, and link **associated files** (`/AF`, PDF/A-3) — the mechanism
|
|
605
|
+
hybrid e-invoices (Factur-X / ZUGFeRD / Order-X) use to carry their invoice XML
|
|
606
|
+
(`addAssociatedFile(name, bytes, "alternative", …)`). Attachment bytes are stored
|
|
607
|
+
FlateDecode-compressed; re-using a name replaces it. New `AfRelationship`,
|
|
608
|
+
`AttachmentOptions` and `FileAttachmentIcon` types. The read side
|
|
609
|
+
(`attachments()`) is unchanged.
|
|
610
|
+
|
|
611
|
+
## [0.74.0] - 2026-06-24
|
|
612
|
+
|
|
613
|
+
Page labels (`/PageLabels`). Resolves
|
|
614
|
+
[#8](https://github.com/qrcommunication/gigapdf-lib/issues/8).
|
|
615
|
+
|
|
616
|
+
### Added
|
|
617
|
+
|
|
618
|
+
- **`getPageLabels()` / `setPageLabels(ranges)` / `pageLabel(page)`.** Read,
|
|
619
|
+
author and resolve page-numbering labels (ISO 32000-1 §12.4.2) — front matter
|
|
620
|
+
in roman numerals, an appendix as `A-1, A-2`, etc. `getPageLabels` returns the
|
|
621
|
+
ranges sorted by `startPage` (1-based); `setPageLabels` replaces them (an empty
|
|
622
|
+
array clears all labels); `pageLabel` returns the viewer-visible string for a
|
|
623
|
+
page (e.g. `"iv"`, `"A-3"`), falling back to the decimal page number outside any
|
|
624
|
+
range. Labels survive a save→reopen round-trip. New `PageLabelRange` /
|
|
625
|
+
`PageLabelStyle` types.
|
|
626
|
+
|
|
627
|
+
## [0.73.0] - 2026-06-24
|
|
628
|
+
|
|
629
|
+
Print-production release: full read/write access to all five ISO 32000-1 page
|
|
630
|
+
boundary boxes. Resolves
|
|
631
|
+
[#6](https://github.com/qrcommunication/gigapdf-lib/issues/6).
|
|
632
|
+
|
|
633
|
+
### Added
|
|
634
|
+
|
|
635
|
+
- **`getPageBoxes(page)` / `setPageBox(page, kind, box)`.** Read and write the
|
|
636
|
+
five page boundary boxes (`media`/`crop`/`bleed`/`trim`/`art`, ISO 32000-1
|
|
637
|
+
§14.11.2). `getPageBoxes` returns each box as `[x0, y0, x1, y1]` (points) with
|
|
638
|
+
inheritance and the per-box default chain applied (CropBox→MediaBox;
|
|
639
|
+
Bleed/Trim/Art→CropBox), plus a `declared` map flagging which boxes are
|
|
640
|
+
explicitly present vs inherited/defaulted. `setPageBox` takes a box as
|
|
641
|
+
`{ x, y, w, h }` (origin + size), normalises it, and preserves the page's other
|
|
642
|
+
boxes — so a `/TrimBox`/`/BleedBox` survives a save→reopen round-trip. This is
|
|
643
|
+
the prerequisite for PDF/X export and commercial-print pipelines (imposition,
|
|
644
|
+
bleed, finished-size trimming).
|
|
645
|
+
- **Types `PageBoxes`, `PageBoxKind`, and the `PAGE_BOX_KINDS` constant.**
|
|
646
|
+
|
|
7
647
|
## [0.72.0] - 2026-06-24
|
|
8
648
|
|
|
9
649
|
Fidelity release focused on text extraction and AcroForm rendering on dense
|