Ask AI to extract one named PDF table into explicit columns, then compare every intended row and cell with the original before exporting. Keep the table's units, header groups and page locations with the data. A table that looks tidy can still put the right number under the wrong year.
For a one-off table, I'd start with a small, checkable extraction in ChatGPT. If the publisher can supply the original spreadsheet or CSV, use that instead: OpenAI's data-analysis guidance warns that exact values from scans, image-based tables and complex layouts may not be extracted reliably.
Choose a source you can verify
Keep the original PDF unchanged and open it beside the response. Use only a service approved for the document; uploading a confidential statement to an online extractor shares it with that service.
Try selecting and copying a few cells from the pages you need. Read the pasted text. Selectable text gives an extractor more to work with, but doesn't establish that the row and column relationships survived. A scan needs image reading or OCR, which recognizes characters; the table structure still needs checking.
For ChatGPT, attach the PDF directly to the conversation. OpenAI's file-upload guidance supports text and images in directly attached PDFs; embedded images in saved project files or GPT knowledge may not be included automatically. File availability depends on the model, plan and workspace settings.
If a clean text-based PDF only needs a simple export, an AI chat isn't essential. Tabula's documented workflow lets you select a table area, inspect the extraction preview and export. It doesn't read scanned PDFs. I'd use the same source checks below whichever extractor produces the rows.
Name the table and define the columns
Give the filename, table title and PDF page positions. Include printed page labels separately if they differ from the viewer's page count. For a table that continues over a page break, name every page in the range.
Decide which rows belong in the extraction before asking for data. A purchase-order line item may wrap onto two printed lines while remaining one record. A subtotal is a different kind of row. Keep subtotals identifiable so you don't accidentally count them as purchases later.
Start with the smallest section that includes the difficult layout, such as a merged header or a page break. When a page contains several tables, identify the one you want by its title and position, and keep unrelated tables separate. Adapt this prompt to your document:
Use only the attached PDF, "supplier-report.pdf".
Extract the table "Annual revenue by account" on PDF pages 4–5.
Keep printed page labels separate from PDF page positions.
First list the original column headers, grouped headers, units and footnotes.
Propose one unambiguous output name for each column and show the mapping.
Then extract every row in that table, in source order.
Keep one row per source record; join wrapped text only within that record.
Include source_pdf_page, source_row_label and row_type for each row.
Preserve identifiers, wording, signs, decimal places and original cell text.
Keep blank cells blank. Preserve dashes and other missing-value markers.
Do not fill gaps, deduplicate, calculate missing values or replace printed totals.
List unreadable or uncertain cells separately by page, row and column.
If you cannot access a page or determine a cell's column, stop and say where.
Read the proposed header mapping before continuing. If a header says “Revenue (USD thousands)” above “FY2025” and “FY2026,” names such as revenue_fy2025_usd_thousands and revenue_fy2026_usd_thousands retain the distinction. Two columns both called “Revenue” would lose it.
A vertically merged category label needs a separate decision. Repeat the label into individual records only when the source clearly shows that it applies to those rows, and record that normalization. An empty amount cell isn't permission to copy the amount above it.
Compare rows and cells with the PDF
Check the extracted section before asking for the rest. Move across each source row from its label through every column, then check the next row. For a table you need to use as exact data, sampling a few cells doesn't verify the unchecked cells.
In his 2023 experiment with OCR text and JSON extraction, journalist Brandon Roberts found errors in names and numbers across records after the dataset initially looked usable. That is the reason to compare the contents of each cell even when the output has the expected shape.
- Match every intended source row to an output row. Count data records separately from headings, subtotals and footnotes.
- Check each column against its full header, including the year, currency and scale. Confirm the same value hasn't shifted into the neighboring column.
- At each page break, compare the last record before the break and the first after it. Identify repeated headers explicitly, and check for a split record or omitted continuation.
- Compare original cell text, including leading zeros, minus signs and parentheses. Keep a blank, a printed zero, a dash and an unreadable cell distinguishable.
- Reconcile printed totals only after the rows are correct. Keep a total copied from the PDF separate from a total you calculate, and investigate differences using the source's scope and notes.
Matching totals aren't enough. In this constructed example, the source header is “Revenue (USD thousands),” with the two year columns shown below. The printed totals are 19 for FY2025 and 15 for FY2026.
| Account | FY2025 | FY2026 |
|---|---|---|
| 00127 | 12 | 15 |
| 00128 | 7 | Blank |
The visible FY2025 values add to 19. The visible FY2026 value equals 15, but that doesn't tell you why account 00128 is blank. Filling that cell with zero invents information even though the sum would still match. Preserve the blank and look for an explanatory note; leave the issue unresolved if the PDF supplies none.
Row assignment deserves the same attention as arithmetic. In a Microsoft Q&A report about table extraction, a user describes a “no fixed price” entry receiving the next item's price. The report concerns that user's files; check the label beside each amount in yours.
Repair a specific error without rewriting the table
When a value is wrong, identify the page, source row and column. Ask for a correction limited to that location, then compare the corrected row and its neighbors with the original. Recheck a whole affected column if the error was a shifted header.
Keep the original extraction and a correction log alongside the checked version. Don't remove duplicate-looking rows until you've confirmed they are duplicate records in the source. Two purchases can legitimately have the same description and amount.
If several rows collapse into one, retry the affected page or table section with the complete headers and relevant notes included. OpenAI recommends targeting specific sections or splitting complex files when analysis is incomplete. Check the joins between sections yourself; smaller inputs can still overlap or omit a row.
Stop when the source is unreadable or the row mapping remains uncertain. Obtain a clearer copy, request structured data from the publisher, or transcribe a manageable table manually and verify it. Repeated requests for a more confident answer don't resolve an ambiguous source.
Export the checked data, then check the import
Once the values and mapping are settled, request one UTF-8 CSV per table with a single header row. Keep the uncertainty list and column mapping separately. Ask for a downloadable CSV if available; otherwise request CSV text and save only that text in a plain-text .csv file using UTF-8 encoding. A Markdown table pasted from a chat isn't a CSV file.
CSV contains records and fields rather than a visual grid of merged cells. Use the agreed flat column names. The common CSV format described in RFC 4180 encloses fields containing commas, line breaks or double quotes in double quotes, and doubles a quote inside a quoted field. A comma inside an unquoted description can shift the remaining fields into extra columns. A quoted line break can also make one record span several text lines, so count parsed records rather than physical lines in a text editor.
In Excel for Windows with Power Query, import through Data → Get & Transform Data → From Text/CSV. Choose the file and inspect the preview. Microsoft's CSV import instructions explain that opening a CSV directly uses default format settings, which can interpret dates differently or remove leading zeros from identifiers.
Check the delimiter in the preview. For the first verification, I'd choose Do not detect data types where that option is available, then Transform Data. Microsoft's Text/CSV connector guidance says this leaves columns as Text rather than inferring their types. It gives you a chance to inspect identifiers such as 00127 before deliberately converting amount or date columns.

If accented characters look wrong in the preview, check File Origin against the file's encoding before loading. Use UTF-8 for the UTF-8 file you requested. Load the reviewed table into a worksheet, then check its row count and field count against the checked extraction.
Compare the imported cell contents too. Look at descriptions containing commas or line breaks, and inspect dates whose day and month could be confused. If columns arrive merged, change the delimiter and review the preview again. If an identifier has already lost its zeros, return to the unchanged CSV and reimport with that column kept as text.
Save the verified working table as an Excel workbook when you need to retain column types and review notes. Keep the unchanged CSV too. Exporting a workbook back to CSV saves only the current worksheet and can discard workbook features, so don't use that export as your only working copy.
Keep the original PDF, checked data and correction log together before starting calculations. If your next task is explaining the table in prose, use the checked figures and check the summary against the PDF's passages and conditions. For a different source-reading task, return to the research guides.
