pdf-skryba 0.9.0 → 0.10.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 +43 -0
- package/THIRD-PARTY.md +6 -3
- package/dist/first-party/reader.js +185 -106
- package/dist/first-party/reader.js.map +3 -3
- package/dist/index.js +204 -116
- package/dist/index.js.map +3 -3
- package/dist/index.min.js +4 -4
- package/dist/light.js.map +1 -1
- package/dist/types/extractor/pdf-ccitt-images.d.ts +1 -1
- package/dist/types/extractor/pdf-model.d.ts +1 -0
- package/dist/types/extractor/pdf-objects/refusal.d.ts +5 -1
- package/dist/types/extractor/pdf-ops-ours.d.ts +1 -0
- package/dist/types/extractor/pdf-source.d.ts +2 -0
- package/dist/types/extractor/pdf.d.ts +1 -0
- package/dist/types/lib/pdf-first-party-reader.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,49 @@ The package was named `skryba` from 0.1.0 to 0.6.2; `skryba` stays frozen at 0.6
|
|
|
10
10
|
with the message « Renamed to pdf-skryba ». Before 0.1.0 the same reader was published as
|
|
11
11
|
`@miksumia/reader`, which the registry no longer serves; those versions are not reconstructed here.
|
|
12
12
|
|
|
13
|
+
## [0.10.0] - 2026-11-24
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- A `pdf-part-unread` notice (`doc-ir` 0.2.0) names the pages where an object could not be read
|
|
18
|
+
and the page was published without it: its kind was in the damaged bytes, so it may have been a
|
|
19
|
+
picture or a block of text. It is never counted as a lost picture.
|
|
20
|
+
- `detectPdfTableGrids` on the first-party reader entry.
|
|
21
|
+
- Fuzz property tests, lots 0 to 8, in the repository: the content-stream tokenizer, values, stream
|
|
22
|
+
filters, fonts, the cross-reference table, then the whole document damaged outside its text,
|
|
23
|
+
encrypted, and updated incrementally.
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- `doc-ir` moves to `^0.2.0`.
|
|
28
|
+
- One damaged part that carries no text no longer refuses the whole document: the document
|
|
29
|
+
information, an outline item, an image, a link annotation. That part is left out and the read
|
|
30
|
+
goes on, with the same words.
|
|
31
|
+
- A refusal for security still refuses the whole document, never only the part: a bound of the
|
|
32
|
+
reader that bit, such as the work budget. A stream that decodes past the reader's ceiling is now
|
|
33
|
+
refused with its own reason, `stream-too-large`, instead of `stream-decode`.
|
|
34
|
+
- Comments and test titles are in English.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- The images of an encrypted file drawn with CCITT fax compression are decrypted before they are
|
|
39
|
+
decoded, like the other images. They were lost.
|
|
40
|
+
- After an AI reading, a `table-withheld` notice is kept: only the two loss notices were composed
|
|
41
|
+
again, and the others were dropped.
|
|
42
|
+
- The abbreviation `/LZW` of a stream filter is served like `LZWDecode`, and a chain ending in `/Fl`
|
|
43
|
+
or `/LZW` keeps its predictor.
|
|
44
|
+
- Every control character is removed from the text of a glyph, not only a glyph made of them.
|
|
45
|
+
|
|
46
|
+
## [0.9.1] - 2026-11-23
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- Faster on long pages: the size test of a drop cap reads a column's smallest line once, instead of
|
|
51
|
+
scanning every line for each short run.
|
|
52
|
+
- Less memory: the plan of each page is kept only when a caller asks for it (`onPagePlan`).
|
|
53
|
+
- The search for figures set aside skips a page that holds no picture.
|
|
54
|
+
- No change to what a document reads as: the published output is the same as 0.9.0.
|
|
55
|
+
|
|
13
56
|
## [0.9.0] - 2026-11-20
|
|
14
57
|
|
|
15
58
|
### Changed
|
package/THIRD-PARTY.md
CHANGED
|
@@ -72,7 +72,8 @@ into one string, and the glyph names of the PDF encodings read through it. The S
|
|
|
72
72
|
|
|
73
73
|
`dist/index.js` carries the advance widths of the 14 standard fonts, by glyph name, and the built-in
|
|
74
74
|
encodings of Helvetica, Symbol and ZapfDingbats, all read from Adobe's Core 14 AFM files. The AFM files
|
|
75
|
-
themselves are not
|
|
75
|
+
themselves are not in the package; the repository keeps them whole, as the generator's input
|
|
76
|
+
(`tools/poc/data/afm/`), together with Adobe's `MustRead.html`. Their notice (SPDX `APAFML`):
|
|
76
77
|
|
|
77
78
|
> Copyright (c) 1985, 1987, 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights
|
|
78
79
|
> Reserved.
|
|
@@ -91,8 +92,10 @@ out.
|
|
|
91
92
|
|
|
92
93
|
The glyph names of `WinAnsiEncoding` and `MacRomanEncoding` are derived from two mapping tables published
|
|
93
94
|
by the Unicode Consortium: `CP1252.TXT` (cp1252 to Unicode, Microsoft) and `ROMAN.TXT` (Mac OS Roman to
|
|
94
|
-
Unicode, © 1994-2002, 2005 Apple Computer, Inc.). Neither file is
|
|
95
|
-
a glyph name through the Adobe Glyph List.
|
|
95
|
+
Unicode, © 1994-2002, 2005 Apple Computer, Inc.). Neither file is in the package: each code was turned into
|
|
96
|
+
a glyph name through the Adobe Glyph List. The repository keeps both whole, as the generator's input
|
|
97
|
+
(`tools/poc/data/`), with the Unicode License v3 that covers the data files the Consortium publishes
|
|
98
|
+
(`tools/poc/data/LICENSE-UNICODE.txt`).
|
|
96
99
|
|
|
97
100
|
## Hyphenation patterns (hyph-utf8): American English and French
|
|
98
101
|
|