Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
LemonWiki共筆
Search
Search
Appearance
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
PDF Table Parsing in Mandarin
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== 5. 跨頁接續不只是處理重複表頭 === PDF 表格跨越多頁時,資料可能以各種方式被拆開。解析器若只處理下一頁重複出現的表頭,通常不足以應付實際文件。 常見的跨頁接續情況包括: * 下一頁第一列只包含上一頁某個欄位的後半段內容。 * 名稱、分類、說明文字或備註被拆到不同頁面。 * 下一頁開頭先出現多列表頭,接著才延續上一頁尚未完成的紀錄。 * 同一列同時出現接續文字與新資料列的識別碼。 * 空白欄被壓縮,導致欄位位置偏移。 * 表格框線、換行或 OCR 辨識結果,將原本的一列拆成多列。 因此,跨頁處理應保留原始欄位位置,不宜過早移除空白欄。必要時,解析器應結合欄位座標、欄位索引、識別碼格式與前一筆紀錄的狀態,判斷接續片段屬於哪個欄位。 合併接續內容時,也應依文字類型採用不同方式: * 中文文字片段通常可以直接串接。 * 英文文字片段通常需要插入空白。 * 多值欄位、分類欄位或備註,可能需要保留換行、列舉符號或分隔符號。 * 數值欄位應避免誤將文字片段串接在一起。
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki共筆:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)