@shuji-bonji/pdf-reader-mcp 0.7.0 → 0.9.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 +61 -0
- package/README.ja.md +37 -7
- package/README.md +40 -9
- package/dist/schemas/tier2.d.ts +18 -0
- package/dist/schemas/tier2.d.ts.map +1 -1
- package/dist/schemas/tier2.js +13 -0
- package/dist/schemas/tier2.js.map +1 -1
- package/dist/services/pdfjs-service.d.ts +77 -20
- package/dist/services/pdfjs-service.d.ts.map +1 -1
- package/dist/services/pdfjs-service.js +111 -161
- package/dist/services/pdfjs-service.js.map +1 -1
- package/dist/services/struct-tree-service.d.ts +167 -0
- package/dist/services/struct-tree-service.d.ts.map +1 -0
- package/dist/services/struct-tree-service.js +584 -0
- package/dist/services/struct-tree-service.js.map +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +2 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/tier1/read-text.d.ts.map +1 -1
- package/dist/tools/tier1/read-text.js +3 -1
- package/dist/tools/tier1/read-text.js.map +1 -1
- package/dist/tools/tier1/search-text.d.ts.map +1 -1
- package/dist/tools/tier1/search-text.js +12 -1
- package/dist/tools/tier1/search-text.js.map +1 -1
- package/dist/tools/tier2/extract-structured-text.d.ts +6 -0
- package/dist/tools/tier2/extract-structured-text.d.ts.map +1 -0
- package/dist/tools/tier2/extract-structured-text.js +82 -0
- package/dist/tools/tier2/extract-structured-text.js.map +1 -0
- package/dist/tools/tier2/extract-tables.d.ts.map +1 -1
- package/dist/tools/tier2/extract-tables.js +15 -9
- package/dist/tools/tier2/extract-tables.js.map +1 -1
- package/dist/tools/tier2/inspect-tags.js +1 -1
- package/dist/tools/tier2/inspect-tags.js.map +1 -1
- package/dist/types.d.ts +66 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/formatter.d.ts +20 -1
- package/dist/utils/formatter.d.ts.map +1 -1
- package/dist/utils/formatter.js +93 -1
- package/dist/utils/formatter.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,67 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.9.0] - 2026-07-19
|
|
9
|
+
|
|
10
|
+
> spec ⇄ reader 相互チェック(2026-07-19。`Document-Note/mcps/PDFfamily/reviews/` の 2 レポート)で
|
|
11
|
+
> 発見された 4 件(Issue #14〜#17)の一括対応。
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **🔴 `extract_tables` を StructTreeRoot 走査に載せ替え** ([#14](https://github.com/shuji-bonji/pdf-reader-mcp/issues/14)・破壊的変更)。
|
|
16
|
+
従来はページごとの `page.getStructTree()` を併合していたため、**ページを跨ぐ Table 要素が
|
|
17
|
+
ページ単位の断片に分裂**し、Figure しか載っていないページには「ヘッダ 1 セル・中身空」の
|
|
18
|
+
**幻テーブル**が生まれていました(ISO 32000-2 EC3 の pp.383–388 で実測: 実体 4 表に対し 8 表を報告。
|
|
19
|
+
0.8.0 の C-1 で `inspect_tags` から取り除いたのと同じ failure mode で、本ツールの主要ユースケース
|
|
20
|
+
= 新旧対照表はほぼ確実にページを跨ぎます)。M-8 と同じ walker(`struct-tree-service`)に載せ替え、
|
|
21
|
+
跨ぎ Table は `pages: [383, 384, 385, 386]` のような **1 つの表**として返します。
|
|
22
|
+
- **出力が変わります**: `tables[].page`(数値)→ **`tables[].pages`(配列)**。`index` はページ内
|
|
23
|
+
連番から**文書全体の論理順連番**に変更(`pages` フィルタに関わらず同じ表は同じ index)。
|
|
24
|
+
Markdown の見出しも `## Page N — Table M` → `## Table M — Page(s) …`。
|
|
25
|
+
- 副次的な改善: セルの `/ActualText` を解決するようになりました(§14.9.4。旧経路は生グリフ)。
|
|
26
|
+
- 実測: ISO PDF pp.383–388 が 8 表 → **5 表**(幻 3 つが消え、Table 126 の跨ぎ断片が 1 表に)。
|
|
27
|
+
- 回帰フィクスチャ `spanning-table.pdf`(ページ跨ぎ Table 単体)と ET-6〜ET-8 を追加。
|
|
28
|
+
`create-e2e-fixtures.ts` は引数で単一フィクスチャのみ生成できるようにしました
|
|
29
|
+
(既存フィクスチャの再生成・再コミットを避けるため)。
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- **`search_text` / `read_text` の ActualText 非対応を明示し、空振り時に案内を返すように**
|
|
34
|
+
([#15](https://github.com/shuji-bonji/pdf-reader-mcp/issues/15))。両ツールは生グリフを見るため、
|
|
35
|
+
`/ActualText` 置換(§14.9.4「shall be used as a replacement」)で運ばれる語は**ビューアに見えていても
|
|
36
|
+
ヒットしません**(`extract_structured_text` は「Difficult」を返すのに `search_text("Difficult")` は
|
|
37
|
+
0 件 — 同一サーバ内で答えが割れていました)。グリフ置換の解決は pdfjs の textContent が
|
|
38
|
+
ActualText を公開しないため本リリースでは行わず、(1) 両 description に生グリフである旨と
|
|
39
|
+
`extract_structured_text` への案内を明記し、(2) **タグ付き文書で 0 件のとき `note` を返す**ように
|
|
40
|
+
しました(「無い」と「見えない」の区別を呼び出し側に渡す)。`isTaggedPdf()` を追加。
|
|
41
|
+
read_text の description が M-8 登場前のまま `extract_tables` しか案内していなかった点も更新
|
|
42
|
+
(Issue #15 同梱の R-6)。
|
|
43
|
+
- **`extract_structured_text` の Markdown で表セル内の `|` を GFM エスケープ**
|
|
44
|
+
([#16](https://github.com/shuji-bonji/pdf-reader-mcp/issues/16))。ISO PDF Table 126 の `−|𝑦|` などで
|
|
45
|
+
列が壊れていました。`extract_tables` は抽出時にエスケープ済みで、同一リポジトリ内で挙動が
|
|
46
|
+
割れていたもの。M-8 側は**表示時のみ**エスケープし、JSON は生テキストのまま(層の分離を保つ)。
|
|
47
|
+
- **`extract_structured_text` の Markdown の `pages` 表示を連続範囲に圧縮**
|
|
48
|
+
([#17](https://github.com/shuji-bonji/pdf-reader-mcp/issues/17))。`join('–')` で全列挙していたため、
|
|
49
|
+
文書全域に跨る `Document` 要素が 1000 個超のページ番号を並べ、応答が数十 KB 膨張して
|
|
50
|
+
truncate を圧迫していました。`1–3, 7, 9–10` 形式に変更(表示のみ。JSON の配列は不変)。
|
|
51
|
+
副次効果として、構造木に載らないページが欠番として一目で見えます。
|
|
52
|
+
|
|
53
|
+
## [0.8.0] - 2026-07-18
|
|
54
|
+
|
|
55
|
+
### Added
|
|
56
|
+
|
|
57
|
+
- **`extract_structured_text`(新ツール・M-8)** — タグ付き PDF のテキストを**論理コンテンツ順**で、各断片に構造タイプ(`H1` / `P` / `Table` …)のラベルを付けて返します。「H1 の文字列は何か」に答えるツールで、これは `read_text`(座標順のフラット)・`inspect_tags`(構造のみ・テキストなし)・`extract_tables`(表のみ)のいずれも返せませんでした。仕様: `Document-Note/mcps/PDFfamily/specs/08` v0.2 / レビュー: `docs/m8-spec-review-2026-07-18.md`。
|
|
58
|
+
- **走査はカタログの `StructTreeRoot` を深さ優先**で行います(ISO 32000-2 §14.8.2.5 の logical content order の定義そのもの)。**`page.getStructTree()` のページ単位併合ではありません** — §14.8.2.5 NOTE 2 が「A logical object can extend over more than one PDF page」と明示するとおり、併合方式は**ページを跨ぐ要素を分裂させる**(段落が改ページで 2 つに割れ、リフロー後の本文の途中に段落境界が生まれる)。構造は pdf-lib、テキストは pdfjs(MCR の `/Pg` + `/MCID` を pdfjs の marked-content id に変換)で解決します。
|
|
59
|
+
- 出力は**フラット + `depth`**(深さ優先 pre-order + depth で木を一意に復元。Markdown 化が単純ループになり、truncate がどこで切っても壊れない)。**`Table` のみ `rows`** を持ちます(2 次元は `depth` で表せないため)。
|
|
60
|
+
- **`ActualText` はグリフを置換**(§14.9.4「a replacement, not a description」)、**`Alt` は `alt` に分離**し本文に混ぜません(§14.9.3 = 内容ではなく説明)。**`Lbl`(箇条書き記号)は `label` に分離**。**Artifact は除外**(§14.8.2.5 NOTE 3)。
|
|
61
|
+
- **日本語対応**: pdfjs は元レイアウトの改行を出しますが、日本語は単語間に空白が無いため(§14.8.2.6.2「a word is defined by script and context」)、**CJK 文字間の改行を空白にしません**。writer が 1 行 1 marked-content で出力する PDF では改行が要素の**境界**に落ちるため、改行の解決は id を結合した後に行います。引数 `pages` / `roles` で絞り込め(範囲にかかる要素は丸ごと返す)、全体に truncate を適用します。タグ無し文書は推測せず `isTagged: false` と理由を返します。
|
|
62
|
+
|
|
63
|
+
### Changed
|
|
64
|
+
|
|
65
|
+
- **🔴 `inspect_tags` を `StructTreeRoot` 走査に変更** (C-1・破壊的変更)。従来は `page.getStructTree()` をページ順に併合し、**疑似 `StructTreeRoot` ノードの下にページごとの木を並べて**いました。そのため 2 ページの文書で **`Root` と `Document` を 2 つずつ**返し、ページを跨ぐ要素を分裂させていました。これは併合の産物であって文書の構造ではありません。family の境界ルールで `inspect_tags` を残す根拠は「**構造ツリーの報告は事実であり reader の責務**」ですが、**報告する木が合成物では「事実」になりません**。M-8 と同じ walker に載せ替え、`Document` は 1 つ・ページを跨ぐ要素はまるごと報告します。
|
|
66
|
+
- **出力が変わります**(疑似 `Root` が消え、`Document` が 1 つに、ページ跨ぎ要素が統合)。`inspect_tags` を消費する側は確認してください。
|
|
67
|
+
- 副次的に、`StructElem` はあるが marked content の無い文書(構造だけの PDF)でも構造木を返せるようになりました(旧 pdfjs 経由は空を返していました)。
|
|
68
|
+
|
|
8
69
|
## [0.7.0] - 2026-07-18
|
|
9
70
|
|
|
10
71
|
> **仕様適合レビュー (`docs/spec-conformance-review-2026-07-17.md`) で挙がった逸脱の一括修正**。
|
package/README.ja.md
CHANGED
|
@@ -22,7 +22,7 @@ PDF 内部構造解析に特化した MCP (Model Context Protocol) サーバー
|
|
|
22
22
|
|
|
23
23
|
## 機能
|
|
24
24
|
|
|
25
|
-
**
|
|
25
|
+
**17 ツール** を 3 層構成で提供します。
|
|
26
26
|
|
|
27
27
|
### Tier 1: 基本機能
|
|
28
28
|
|
|
@@ -30,8 +30,8 @@ PDF 内部構造解析に特化した MCP (Model Context Protocol) サーバー
|
|
|
30
30
|
| ---------------- | ----------------------------------------------------- |
|
|
31
31
|
| `get_page_count` | ページ数の軽量取得 |
|
|
32
32
|
| `get_metadata` | メタデータ抽出(タイトル、著者、PDF版、タグ有無等) |
|
|
33
|
-
| `read_text` | テキスト抽出(Y座標ベースの読み順保持。`split_columns: 2 \| 3` で **タグなし** 多カラム PDF、`compact_whitespace` で 帳票 の U+3000
|
|
34
|
-
| `search_text` |
|
|
33
|
+
| `read_text` | テキスト抽出(Y座標ベースの読み順保持。`split_columns: 2 \| 3` で **タグなし** 多カラム PDF、`compact_whitespace` で 帳票 の U+3000 連続空白を畳み込み)。**生グリフ**を返すため、タグ付き PDF の本文は論理順 + `/ActualText` 解決の `extract_structured_text` を推奨 |
|
|
34
|
+
| `search_text` | 全文検索(前後コンテキスト付き)。グリフレベルの検索のため `/ActualText` 置換で運ばれる語はヒットしない(タグ付き文書で 0 件のときは `note` で案内) |
|
|
35
35
|
| `read_images` | 画像抽出(base64、メタデータ付き) |
|
|
36
36
|
| `read_url` | URLからリモートPDFを取得して処理 |
|
|
37
37
|
| `summarize` | 全体概要レポート(メタデータ + テキスト + 画像数) |
|
|
@@ -45,14 +45,15 @@ PDF 内部構造解析に特化した MCP (Model Context Protocol) サーバー
|
|
|
45
45
|
| `inspect_fonts` | フォント一覧(埋め込み/サブセット/Type判定) |
|
|
46
46
|
| `inspect_annotations` | 注釈一覧(タイプ別分類) |
|
|
47
47
|
| `inspect_signatures` | 電子署名フィールドの構造解析 |
|
|
48
|
-
| `
|
|
48
|
+
| `extract_structured_text` | Tagged PDF のテキストを**論理コンテンツ順**(ISO 32000-2 §14.8.2.5)で、構造タイプ(`H1` / `P` / `Table` …)のラベル付きで抽出。`/ActualText` を解決し、`/Alt`・箇条書き記号は本文と分離、ページ跨ぎ要素は 1 要素のまま |
|
|
49
|
+
| `extract_tables` | Tagged PDF の `<Table>` を Markdown テーブルとして抽出。ページを跨ぐ表は 1 つの表(`pages` 配列)として返す |
|
|
49
50
|
|
|
50
51
|
### Tier 3: 検証・分析
|
|
51
52
|
|
|
52
53
|
| ツール | 説明 |
|
|
53
54
|
| ------------------- | ---------------------------------------------- |
|
|
54
|
-
| `validate_tagged` |
|
|
55
|
-
| `validate_metadata` |
|
|
55
|
+
| `validate_tagged` | **非推奨** — ISO 規格への合否判定は [pdf-verify-mcp](https://github.com/shuji-bonji/pdf-verify-mcp) の `validate_conformance`(`flavour: "pdfua-1"`)へ移管。次のメジャーまで残置 |
|
|
56
|
+
| `validate_metadata` | **非推奨** — 移管先は上と同じ。次のメジャーまで残置 |
|
|
56
57
|
| `compare_structure` | 2つのPDFの構造差分比較(プロパティ+フォント) |
|
|
57
58
|
|
|
58
59
|
## インストール
|
|
@@ -161,6 +162,32 @@ compare_structure({
|
|
|
161
162
|
| Tagged | true | true | ✅ |
|
|
162
163
|
```
|
|
163
164
|
|
|
165
|
+
### 論理コンテンツ順のテキスト抽出(Tagged PDF)
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
extract_structured_text({ file_path: "/path/to/report.pdf", pages: "1-2" })
|
|
169
|
+
→ # Structured Text
|
|
170
|
+
- **Tagged**: Yes / **Language**: en-US / **Elements**: 7
|
|
171
|
+
|
|
172
|
+
## Logical Content Order
|
|
173
|
+
|
|
174
|
+
- **Document** (pages 1–2)
|
|
175
|
+
- **H1** (page 1) — Quarterly Report
|
|
176
|
+
- **P** (pages 1–2) — This paragraph begins on page one and continues on page two.
|
|
177
|
+
- **Table** (page 1)
|
|
178
|
+
| Item | Amount |
|
|
179
|
+
|---|---|
|
|
180
|
+
| Sales | 100 |
|
|
181
|
+
- **Figure** (page 2) — *alt:* A bar chart of sales
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
「H1 の文字列は何か」に答えるツールです(座標順でフラットな `read_text` には
|
|
185
|
+
答えられません)。順序は構造木の深さ優先走査(ISO 32000-2 §14.8.2.5)。
|
|
186
|
+
`/ActualText` はグリフを置換し(§14.9.4)、`/Alt` は本文に混ぜず(§14.9.3)、
|
|
187
|
+
箇条書き記号は `label` に分離、ページ跨ぎ要素は 1 要素のまま返します。
|
|
188
|
+
`roles: ["H1", "H2"]` でアウトラインだけの取得も可能。タグ無し文書は座標から
|
|
189
|
+
推測せず `isTagged: false` と理由を返します。
|
|
190
|
+
|
|
164
191
|
### Tagged PDF からテーブル抽出
|
|
165
192
|
|
|
166
193
|
```
|
|
@@ -168,13 +195,16 @@ extract_tables({ file_path: "/path/to/kaisei-tsutatsu.pdf", pages: "1" })
|
|
|
168
195
|
→ # Extracted Tables
|
|
169
196
|
- **Tagged**: Yes / **Pages Scanned**: 1 / **Tables Found**: 1
|
|
170
197
|
|
|
171
|
-
##
|
|
198
|
+
## Table 1 — Page 1
|
|
172
199
|
|
|
173
200
|
| 改正後 | 改正前 |
|
|
174
201
|
| --- | --- |
|
|
175
202
|
| …第2条第 16 項《定義》… | …第2条第 15 項《定義》… |
|
|
176
203
|
```
|
|
177
204
|
|
|
205
|
+
ページを跨いで続く表は **1 つの表**として返します — `pages` は配列で、
|
|
206
|
+
見出しも `## Table 3 — Pages 5–7` のようになります。要求した `pages` 範囲に
|
|
207
|
+
かかる表は丸ごと返り、セルの `/ActualText` 置換も解決します。
|
|
178
208
|
タグ無し PDF では空結果と note を返し、下記の column-aware 抽出への
|
|
179
209
|
フォールバックを推奨します。
|
|
180
210
|
|
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ While typical PDF MCP servers are thin wrappers for text extraction, this projec
|
|
|
22
22
|
|
|
23
23
|
## Features
|
|
24
24
|
|
|
25
|
-
**
|
|
25
|
+
**17 tools** organized into three tiers:
|
|
26
26
|
|
|
27
27
|
### Tier 1: Basic Operations
|
|
28
28
|
|
|
@@ -30,8 +30,8 @@ While typical PDF MCP servers are thin wrappers for text extraction, this projec
|
|
|
30
30
|
| ---------------- | -------------------------------------------------------- |
|
|
31
31
|
| `get_page_count` | Lightweight page count retrieval |
|
|
32
32
|
| `get_metadata` | Full metadata extraction (title, author, PDF version...) |
|
|
33
|
-
| `read_text` | Text extraction with Y-coordinate reading order (opt-in `split_columns: 2 \| 3` for untagged multi-column PDFs, `compact_whitespace` for Japanese forms) |
|
|
34
|
-
| `search_text` | Full-text search with surrounding context
|
|
33
|
+
| `read_text` | Text extraction with Y-coordinate reading order (opt-in `split_columns: 2 \| 3` for untagged multi-column PDFs, `compact_whitespace` for Japanese forms). Emits **raw glyphs** — for tagged PDFs prefer `extract_structured_text`, which returns logical content order and resolves `/ActualText` |
|
|
34
|
+
| `search_text` | Full-text search with surrounding context. Glyph-level: text carried in `/ActualText` replacements will not match (a `note` says so when a tagged document yields zero matches) |
|
|
35
35
|
| `read_images` | Image extraction as base64 with metadata |
|
|
36
36
|
| `read_url` | Fetch and process remote PDFs from URLs |
|
|
37
37
|
| `summarize` | Quick overview report (metadata + text + image count) |
|
|
@@ -45,14 +45,15 @@ While typical PDF MCP servers are thin wrappers for text extraction, this projec
|
|
|
45
45
|
| `inspect_fonts` | Font inventory (embedded/subset/type detection) |
|
|
46
46
|
| `inspect_annotations` | Annotation listing (categorized by subtype) |
|
|
47
47
|
| `inspect_signatures` | Digital signature field structure analysis |
|
|
48
|
-
| `
|
|
48
|
+
| `extract_structured_text` | Tagged PDF text in **logical content order** (ISO 32000-2 §14.8.2.5), each piece labelled with its structure type (`H1` / `P` / `Table` …). Resolves `/ActualText`, separates `/Alt` and list labels, keeps page-spanning elements whole |
|
|
49
|
+
| `extract_tables` | Tagged PDF `<Table>` subtree → Markdown table (preserves columns). A table continuing across a page break is ONE table (`pages` array) |
|
|
49
50
|
|
|
50
51
|
### Tier 3: Validation & Analysis
|
|
51
52
|
|
|
52
53
|
| Tool | Description |
|
|
53
54
|
| ------------------- | ---------------------------------------------------- |
|
|
54
|
-
| `validate_tagged` | PDF/UA
|
|
55
|
-
| `validate_metadata` |
|
|
55
|
+
| `validate_tagged` | **Deprecated** — PDF/UA pass/fail belongs to [pdf-verify-mcp](https://github.com/shuji-bonji/pdf-verify-mcp) `validate_conformance` (`flavour: "pdfua-1"`). Kept until the next major |
|
|
56
|
+
| `validate_metadata` | **Deprecated** — same migration path as above. Kept until the next major |
|
|
56
57
|
| `compare_structure` | Structural diff between two PDFs (properties + fonts)|
|
|
57
58
|
|
|
58
59
|
## Installation
|
|
@@ -162,6 +163,33 @@ compare_structure({
|
|
|
162
163
|
| Tagged | true | true | ✅ |
|
|
163
164
|
```
|
|
164
165
|
|
|
166
|
+
### Extract Structured Text (Tagged PDF, logical order)
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
extract_structured_text({ file_path: "/path/to/report.pdf", pages: "1-2" })
|
|
170
|
+
→ # Structured Text
|
|
171
|
+
- **Tagged**: Yes / **Language**: en-US / **Elements**: 7
|
|
172
|
+
|
|
173
|
+
## Logical Content Order
|
|
174
|
+
|
|
175
|
+
- **Document** (pages 1–2)
|
|
176
|
+
- **H1** (page 1) — Quarterly Report
|
|
177
|
+
- **P** (pages 1–2) — This paragraph begins on page one and continues on page two.
|
|
178
|
+
- **Table** (page 1)
|
|
179
|
+
| Item | Amount |
|
|
180
|
+
|---|---|
|
|
181
|
+
| Sales | 100 |
|
|
182
|
+
- **Figure** (page 2) — *alt:* A bar chart of sales
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
This answers "what is the text of the H1?" — which `read_text` (flat,
|
|
186
|
+
coordinate order) cannot. Order is a depth-first traversal of the structure
|
|
187
|
+
tree (ISO 32000-2 §14.8.2.5). `/ActualText` replaces the glyphs (§14.9.4),
|
|
188
|
+
`/Alt` stays out of the body text (§14.9.3), list labels are reported
|
|
189
|
+
separately, and an element spanning a page break stays ONE element. Use
|
|
190
|
+
`roles: ["H1", "H2"]` to pull an outline. Untagged PDFs return
|
|
191
|
+
`isTagged: false` with a reason — nothing is guessed from coordinates.
|
|
192
|
+
|
|
165
193
|
### Extract Tables (Tagged PDF)
|
|
166
194
|
|
|
167
195
|
```
|
|
@@ -169,15 +197,18 @@ extract_tables({ file_path: "/path/to/kaisei-tsutatsu.pdf", pages: "1" })
|
|
|
169
197
|
→ # Extracted Tables
|
|
170
198
|
- **Tagged**: Yes / **Pages Scanned**: 1 / **Tables Found**: 1
|
|
171
199
|
|
|
172
|
-
##
|
|
200
|
+
## Table 1 — Page 1
|
|
173
201
|
|
|
174
202
|
| 改正後 | 改正前 |
|
|
175
203
|
| --- | --- |
|
|
176
204
|
| …第2条第 16 項《定義》… | …第2条第 15 項《定義》… |
|
|
177
205
|
```
|
|
178
206
|
|
|
179
|
-
|
|
180
|
-
|
|
207
|
+
A table that continues across a page break is reported as ONE table —
|
|
208
|
+
`pages` is an array (e.g. `## Table 3 — Pages 5–7`), and a table touching
|
|
209
|
+
the requested `pages` range is returned whole. Cell text honours
|
|
210
|
+
`/ActualText` replacements. Untagged PDFs return an empty result with a
|
|
211
|
+
`note` recommending the column-aware fallback below.
|
|
181
212
|
|
|
182
213
|
### Read Untagged Multi-Column PDF
|
|
183
214
|
|
package/dist/schemas/tier2.d.ts
CHANGED
|
@@ -49,6 +49,23 @@ export declare const InspectAnnotationsSchema: z.ZodObject<{
|
|
|
49
49
|
response_format?: import("../constants.js").ResponseFormat | undefined;
|
|
50
50
|
pages?: string | undefined;
|
|
51
51
|
}>;
|
|
52
|
+
/** extract_structured_text */
|
|
53
|
+
export declare const ExtractStructuredTextSchema: z.ZodObject<{
|
|
54
|
+
file_path: z.ZodString;
|
|
55
|
+
pages: z.ZodOptional<z.ZodString>;
|
|
56
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
57
|
+
response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
|
|
58
|
+
}, "strict", z.ZodTypeAny, {
|
|
59
|
+
file_path: string;
|
|
60
|
+
response_format: import("../constants.js").ResponseFormat;
|
|
61
|
+
pages?: string | undefined;
|
|
62
|
+
roles?: string[] | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
file_path: string;
|
|
65
|
+
response_format?: import("../constants.js").ResponseFormat | undefined;
|
|
66
|
+
pages?: string | undefined;
|
|
67
|
+
roles?: string[] | undefined;
|
|
68
|
+
}>;
|
|
52
69
|
/** inspect_signatures */
|
|
53
70
|
export declare const InspectSignaturesSchema: z.ZodObject<{
|
|
54
71
|
file_path: z.ZodString;
|
|
@@ -80,4 +97,5 @@ export type InspectFontsInput = z.infer<typeof InspectFontsSchema>;
|
|
|
80
97
|
export type InspectAnnotationsInput = z.infer<typeof InspectAnnotationsSchema>;
|
|
81
98
|
export type InspectSignaturesInput = z.infer<typeof InspectSignaturesSchema>;
|
|
82
99
|
export type ExtractTablesInput = z.infer<typeof ExtractTablesSchema>;
|
|
100
|
+
export type ExtractStructuredTextInput = z.infer<typeof ExtractStructuredTextSchema>;
|
|
83
101
|
//# sourceMappingURL=tier2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tier2.d.ts","sourceRoot":"","sources":["../../src/schemas/tier2.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,wBAAwB;AACxB,eAAO,MAAM,sBAAsB;;;;;;;;;EAKxB,CAAC;AAEZ,mBAAmB;AACnB,eAAO,MAAM,iBAAiB;;;;;;;;;EAKnB,CAAC;AAEZ,oBAAoB;AACpB,eAAO,MAAM,kBAAkB;;;;;;;;;EAKpB,CAAC;AAEZ,0BAA0B;AAC1B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAM1B,CAAC;AAEZ,yBAAyB;AACzB,eAAO,MAAM,uBAAuB;;;;;;;;;EAKzB,CAAC;AAEZ,mDAAmD;AACnD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAMrB,CAAC;AAGZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC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,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACnE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC/E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC7E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
package/dist/schemas/tier2.js
CHANGED
|
@@ -32,6 +32,19 @@ export const InspectAnnotationsSchema = z
|
|
|
32
32
|
response_format: ResponseFormatSchema,
|
|
33
33
|
})
|
|
34
34
|
.strict();
|
|
35
|
+
/** extract_structured_text */
|
|
36
|
+
export const ExtractStructuredTextSchema = z
|
|
37
|
+
.object({
|
|
38
|
+
file_path: FilePathSchema,
|
|
39
|
+
pages: PagesSchema.describe('Page range to process. Format: "1-5", "3", or "1,3,5-7". Omit for all pages. ' +
|
|
40
|
+
'An element that touches the range is returned whole, even if it continues outside it.'),
|
|
41
|
+
roles: z
|
|
42
|
+
.array(z.string())
|
|
43
|
+
.optional()
|
|
44
|
+
.describe('Structure types to include, e.g. ["H1","H2"] to extract an outline. Omit for all roles.'),
|
|
45
|
+
response_format: ResponseFormatSchema,
|
|
46
|
+
})
|
|
47
|
+
.strict();
|
|
35
48
|
/** inspect_signatures */
|
|
36
49
|
export const InspectSignaturesSchema = z
|
|
37
50
|
.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tier2.js","sourceRoot":"","sources":["../../src/schemas/tier2.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAA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AAmD;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,SAAS,EAAE,cAAc;IACzB,KAAK,EAAE,WAAW;IAClB,eAAe,EAAE,oBAAoB;CACtC,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Centralizes all pdfjs-dist interactions for reuse across tools.
|
|
5
5
|
*/
|
|
6
6
|
import { type PDFDocumentProxy } from 'pdfjs-dist/legacy/build/pdf.mjs';
|
|
7
|
-
import type { AnnotationsAnalysis, ImageExtractionResult, PageText, PdfMetadata, SearchMatch,
|
|
7
|
+
import type { AnnotationsAnalysis, ImageExtractionResult, PageText, PdfMetadata, SearchMatch, TagsAnalysis } from '../types.js';
|
|
8
8
|
/**
|
|
9
9
|
* Load a PDF document from a file path.
|
|
10
10
|
*/
|
|
@@ -79,36 +79,93 @@ export declare function describeImageKind(kind: number | undefined): {
|
|
|
79
79
|
* Returns both extracted images and counts of detected/skipped images.
|
|
80
80
|
*/
|
|
81
81
|
export declare function extractImages(filePath: string, pages?: string): Promise<ImageExtractionResult>;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the document claims to be tagged (`/MarkInfo /Marked true`).
|
|
84
|
+
*
|
|
85
|
+
* Used by search_text to explain empty results on tagged documents (#15):
|
|
86
|
+
* the search runs over raw glyphs, so text carried in `/ActualText`
|
|
87
|
+
* replacements (§14.9.4) is invisible to it.
|
|
88
|
+
*/
|
|
89
|
+
export declare function isTaggedPdf(filePath: string): Promise<boolean>;
|
|
82
90
|
/**
|
|
83
91
|
* Analyze Tagged PDF structure tree from a pre-loaded document.
|
|
84
92
|
* Does NOT destroy the document — caller is responsible for lifecycle.
|
|
85
93
|
*/
|
|
86
94
|
export declare function analyzeTagsFromDoc(doc: PDFDocumentProxy): Promise<TagsAnalysis>;
|
|
95
|
+
/** A `getTextContent({ includeMarkedContent: true })` item. */
|
|
96
|
+
export interface TextContentItemLike {
|
|
97
|
+
type?: string;
|
|
98
|
+
id?: string | null;
|
|
99
|
+
tag?: string;
|
|
100
|
+
str?: string;
|
|
101
|
+
hasEOL?: boolean;
|
|
102
|
+
}
|
|
87
103
|
/**
|
|
88
|
-
*
|
|
104
|
+
* Build a map from a marked-content `id` (e.g. `p715R_mc4`) to the concatenated
|
|
105
|
+
* raw text inside the corresponding `beginMarkedContentProps`/`endMarkedContent`
|
|
106
|
+
* pair. Nested marked content is supported via a stack — text counts toward
|
|
107
|
+
* every active id (so a `<Span>` inside a `<P>` contributes to both).
|
|
108
|
+
*
|
|
109
|
+
* Items with `tag === 'Artifact'` are page-level artifacts (page numbers,
|
|
110
|
+
* running headers, etc.) outside the structure tree, and are skipped.
|
|
111
|
+
*
|
|
112
|
+
* The text is kept RAW, with line breaks as `\n` markers (see the note where the
|
|
113
|
+
* map is built): line breaks often fall between marked-content sequences, so
|
|
114
|
+
* they can only be resolved once the sequences are joined by the caller.
|
|
89
115
|
*/
|
|
90
|
-
export declare function
|
|
116
|
+
export declare function buildIdToTextMap(items: TextContentItemLike[]): Map<string, string>;
|
|
91
117
|
/**
|
|
92
|
-
*
|
|
118
|
+
* Placeholder for a line break, resolved by `resolveLineBreaks`.
|
|
93
119
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
|
|
98
|
-
|
|
120
|
+
* Exported because a page boundary inside one structure element is also a line
|
|
121
|
+
* break, and only the caller assembling across pages knows where those fall
|
|
122
|
+
* (pdfjs emits no EOL marker at the start of a page).
|
|
123
|
+
*/
|
|
124
|
+
export declare const LINE_BREAK = "\n";
|
|
125
|
+
/**
|
|
126
|
+
* Turn the line breaks of the *original layout* into text.
|
|
127
|
+
*
|
|
128
|
+
* A line break between two words is a word break, so it becomes a space. A line
|
|
129
|
+
* break between two CJK characters is not: Japanese does not separate words with
|
|
130
|
+
* spaces, so the original wrap point would otherwise be welded into the content
|
|
131
|
+
* as a space that was never in the document.
|
|
132
|
+
*
|
|
133
|
+
* ISO 32000-2 §14.8.2.6.2 requires that "any white-space characters that **would
|
|
134
|
+
* be present to separate words in a pure text representation** shall be present"
|
|
135
|
+
* — for Japanese there are none, and the same clause notes that "a word is
|
|
136
|
+
* defined by **script and context**". So a space here would be ours, not the
|
|
137
|
+
* document's, and it contradicts the point of reflow: the new layout re-wraps,
|
|
138
|
+
* and the original wrap points are not content.
|
|
139
|
+
*
|
|
140
|
+
* Verified: a Japanese paragraph that wrapped mid-sentence used to extract as
|
|
141
|
+
* 「…埋め草を大量 に含みます」.
|
|
142
|
+
*/
|
|
143
|
+
export declare function resolveLineBreaks(text: string): string;
|
|
144
|
+
/**
|
|
145
|
+
* Build the marked-content id → text map across the whole document.
|
|
99
146
|
*
|
|
100
|
-
*
|
|
101
|
-
* `
|
|
102
|
-
*
|
|
147
|
+
* The per-page map is what `extract_tables` needs, because a table lives on one
|
|
148
|
+
* page. `extract_structured_text` needs the document-wide map instead: a single
|
|
149
|
+
* structure element can own content on several pages (ISO 32000-2 §14.8.2.5
|
|
150
|
+
* NOTE 2), so its text has to be assembled from more than one page's items.
|
|
103
151
|
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
152
|
+
* The ids are globally unique — pdfjs builds them from the page object number
|
|
153
|
+
* (`p7R_mc0`) — so merging the per-page maps is safe.
|
|
154
|
+
*/
|
|
155
|
+
export declare function buildDocumentIdToTextMap(doc: PDFDocumentProxy): Promise<Map<string, string>>;
|
|
156
|
+
/**
|
|
157
|
+
* Normalise raw cell text:
|
|
158
|
+
* 0. Resolve line breaks (CJK-aware) — a break between two CJK characters is
|
|
159
|
+
* not a space. Must precede step 1, which would otherwise turn the break
|
|
160
|
+
* into a space that the step-2 fold cannot remove (it needs 2+ repeats).
|
|
161
|
+
* 1. Collapse any whitespace run (`\s` + U+3000) to a single ASCII space.
|
|
162
|
+
* 2. Fold per-character kerning runs between CJK characters
|
|
163
|
+
* (e.g. "消 費 税 法" → "消費税法") — but only when at least three
|
|
164
|
+
* single CJK chars are separated by single spaces in a row, so that
|
|
165
|
+
* natural inter-word spacing like "事業者 法人番号" is preserved.
|
|
166
|
+
* 3. Trim and Markdown-escape pipes / newlines.
|
|
167
|
+
*/
|
|
168
|
+
export declare function compactCellText(s: string): string;
|
|
112
169
|
/**
|
|
113
170
|
* Report whether an annotation subtype is a markup annotation
|
|
114
171
|
* (ISO 32000-2 Table 171, "Markup" column).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdfjs-service.d.ts","sourceRoot":"","sources":["../../src/services/pdfjs-service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAIL,KAAK,gBAAgB,EAEtB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,KAAK,EAEV,mBAAmB,
|
|
1
|
+
{"version":3,"file":"pdfjs-service.d.ts","sourceRoot":"","sources":["../../src/services/pdfjs-service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAIL,KAAK,gBAAgB,EAEtB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,KAAK,EAEV,mBAAmB,EAEnB,qBAAqB,EACrB,QAAQ,EACR,WAAW,EACX,WAAW,EAEX,YAAY,EACb,MAAM,aAAa,CAAC;AAmBrB;;GAEG;AACH,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAI9E;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAGtF;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAOxE;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,gBAAgB,EACrB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,WAAW,CAAC,CA6BtB;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