PDFをExcelに変換
PDFの中の表を取り出して、スプレッドシートにします。
このツールはブラウザーの中だけで動きます。ファイルがアップロードされることはなく、そのことはブラウザーのネットワークタブでご自身で確認できます。 ご自分で確かめてください。ブラウザーのネットワークタブを開いて見てください。残りの作業回数を尋ねる小さなリクエストが1つだけ表示されます。ツール名とハッシュだけで、ファイルは決して含まれません。
このツールでできること
This finds the tables in a document and writes them into an .xlsx workbook. A PDF never records that something is a table, so the columns are located geometrically, from the vertical gutters that survive every row. Values that read cleanly as numbers are written as numbers, which is the difference between a column you can sum immediately and one Excel refuses to add up.
Bank statements, invoice line items, a supplier price list published only as a PDF, the results table in a report you need to chart - anywhere the figures are visible on the page and retyping them is the only other option.
仕組み
- Drop the PDF onto this page. One file at a time, up to 200 MB.
- Leave the confidence threshold at 55%. Lower it if a table was missed, raise it if something that is not a table came out as one.
- Leave joining across pages on for a table that continues overleaf, or switch on a sheet per page to keep them separate.
- Leave the header row option on so a heading repeated on a continuation page is not written in as data.
- Press Convert to Excel.
- Check the first and last rows of each sheet, where detection is least certain.
Two facts drive the detection. The first is that numeric columns align on their right edge, not their left, so a detector clustering only the start of each run reads 12.00 and 1,234.00 as two different columns - exactly on the financial statements that are most of what anyone converts. Alignment here is scored on the best of the start, end and centre consistency, so a left-aligned description column and a right-aligned money column both score well in the same table.
The second is that a wrong table is worse than no table. Two columns of prose have pin-sharp left edges and a wide gutter down the middle, and by alignment alone they look better than most real tables. Geometry cannot separate them, so there is a further gate on what the columns contain, and it rejects outright rather than quietly lowering the score. That is why a page of newspaper-style text does not arrive as a two-column spreadsheet.
Numbers keep the formatting they were printed with, and it has to come off before a cell can hold a real number: thousands separators, currency symbols, trailing percent signs, and negatives written in accountancy brackets, which become a minus. A comma is only removed when exactly three digits follow it, because it is a thousands separator in English and a decimal point in Indonesian. Anything still ambiguous stays text on purpose - a misplaced decimal point is worse than an unformatted cell.
When nothing reads as a table, the tool says so and points at PDF to text rather than handing you an empty workbook, which would imply the document had nothing in it. Lowering the confidence threshold is the first thing to try; reading the page with PDF to text is the second.
Detection and the writing of the workbook both happen on your device, the OOXML built and zipped in the browser, so a bank statement is never sent anywhere to be read. That matters more here than on most tools: the documents people convert to spreadsheets are usually the ones with account numbers on them.
このツールにできないこと
- Tables drawn with ruled lines are still found by their text alignment. The rules themselves live in the page graphics, which this pass does not read, so a table held together only by its lines and irregular spacing may be missed.
- Merged cells are not reconstructed. A heading spanning three columns lands in the first of them and the other two come out empty.
- Only values come across. Fonts, colours, borders, column widths and number formats are not carried into the workbook.
よくある質問
- どうやって表を見つけているのですか?
- 幾何的にです。テキストのレイヤーはすべての文字に位置を与えます。行が変わっても同じ縦の余白のすじで分かれ続ける行のかたまりを、表とみなします。候補ごとに列のそろい方を採点し、しきい値に届かないものは捨てます。さらに別の内容チェックが、文章の段組みを弾きます。放っておくと、本物の表より高く採点されてしまうからです。
- 数値は、そのまま合計できる数値として入りますか?
- 曖昧さがなければ入ります。通貨記号・桁区切り・末尾のパーセント記号・会計用の丸かっこは取り除かれ、かっこで囲まれた値は負の数になります。カンマを桁区切りとみなすのは、そのあとにちょうど3桁続くときだけです。インドネシア語ではカンマが小数点だからです。きれいに解釈できないものは、推測せずに文字列のまま残します。
- 表を見落とした、あるいは表でないものを表として拾いました。どうすればいいですか?
- 検出のしきい値を動かしてください。30から90まであり、55から始まります。下げると弱い候補も通るので、見つかる表は増え、その代わり誤りも増えます。どの設定でも何も見つからないなら、そのページには本当に列の構造がないのかもしれません。「PDFをテキストに変換」を使えば、実際に何が入っているか分かります。
- 表が数ページにまたがっています。分かれてしまいますか?
- 既定では分かれません。前のページの下端で終わった表と列数が同じ表がページの先頭から始まっていれば、それは続きとみなして1つのシートにまとめ、繰り返された見出し行はデータとして書かずに落とします。分けたままにしたいときは「ページごとにシートを分ける」をオンにしてください。
- 明細書はどこかにアップロードされますか?
- されません。表の検出もブックの書き出しも、どちらもブラウザーの中で行われ、ドキュメントのどの部分も送信されません。開発者ツールのネットワークタブで確認できますし、接続を切ったままでも動きます。