Extract tables from PDFs and images into Mammoth
PDF extraction uses AI to turn the tables and text in a PDF or image into datasets. Upload the file to the Data Library, open it, click Extract Data, choose what to import, and save the tables you want. PDF extraction can depend on your plan; if Extract Data is restricted, Mammoth prompts you to upgrade.
Before you start
- Upload the PDF or image to your Data Library first (see Upload files).
- Scanned PDFs need clear image quality. Low-resolution scans give poor results.
- Password-protected PDFs are supported. After upload, Mammoth shows "Access to this file is protected by a password". Enter the File password and submit, and the normal flow continues.
| Supported type | Notes |
|---|---|
PDF (.pdf) | Works best with text-based PDFs |
PNG (.png), JPEG (.jpg, .jpeg), WebP (.webp) | |
TIFF (.tif, .tiff) | Mammoth converts the TIFF to a PDF |
HEIC (.heic, .heif) | Mammoth converts the file to a JPEG |
Open the uploaded file for extraction
Click the file's row in the Data Library to open the preview panel. It shows "We need your input before we process this file" and "Extract the Data from the file to access it:" with an Extract Data button. If the file looks like a PDF you already read in this project, the panel offers to read it the same way instead (see Read new PDFs the same way).
Choose what to import from the PDF
- Click Extract Data. The Review data import window opens, with your file name and type under the title and the file on the left.
- Under What to import, choose an option.
- Check which AI key reads the file, at the top of the window (see PDF extraction page limits and AI keys).
- Click Extract. Extraction never starts on its own, because it takes time and uses AI pages or your own key's quota.
| Option | What it does |
|---|---|
| Only tables | Imports only the detected tables |
| All content | Imports the detected tables and the surrounding text |
| Custom | Imports exactly what you describe. See Write instructions for PDF extraction. |
Review the extracted tables
While Mammoth reads, it shows progress such as "Processing PDF - Page 3 of 10". Then the right pane lists the detected tables under What to import: and your choice, such as What to import: Only tables (for Custom, your prompt appears next to it). The header shows how many tables were found, or "2 of 5 selected" when there are several.
Each table has a checkbox, a label such as Table 1 with its page and its column and row counts, and a data preview when you click it. Not what you wanted? Click the pencil icon (Change what to import) and extract again. You don't need to re-upload the file.
Save the tables as datasets
- Select the tables you want to keep.
- Click Looks right. The Save dataset step opens (Save 3 datasets if you selected three tables).
- Name the dataset and choose how it refreshes.
- Click Create dataset, or Create dataset + automation when you set up automatic refresh. Back returns to the tables.
With one table selected, the name comes from the file name; click the pencil icon to rename it. With several tables selected, Mammoth lists them, and one set of instructions produces all the datasets. Each selected table becomes a separate dataset you can transform, view, share and connect to pipelines.
| Refresh option | What it does |
|---|---|
| Manual | Re-upload a new file when there is one, and the same instructions replay over it |
| When a new file arrives | Watch a Mammoth folder for new files and add them to the dataset with the same instructions. This option depends on your plan. |
If a new file looks different from the one you saved, Mammoth pauses the update and asks you, so your data is never changed silently. If the tables match ones from an earlier PDF, the save step offers to add to those datasets: see Add tables to datasets from an earlier PDF.
To keep your library tidy, tick Delete file after tables are converted into datasets in the window's footer. It removes the source file once the datasets exist.
Troubleshooting PDF extraction
| Symptom | Cause | Fix |
|---|---|---|
| Extract Data is restricted | PDF extraction depends on your plan | Follow the upgrade prompt, or ask your workspace admin |
| Incomplete or incorrect data | The instruction is too broad, or the scan is poor | Name the page, table header text or exact column names. Try Only tables for clearly formatted tables. Use higher image quality for scans. |
| A no-tables-found message | Nothing matched your choice | Switch from Only tables to All content, broaden your Custom instruction (for example, remove page limits), and check the file preview on the left shows the content |
| "AI extraction is temporarily unavailable, so no tables could be extracted. Please try again shortly." | A temporary problem with Mammoth's own key | Try again in a few minutes. If some tables came back first, the message says so. |
| Extraction takes a long time | Large, complex or multi-page scanned documents take longest | Reopen the file in a few minutes |
| Out of pages or quota | Your monthly allowance or your key's quota is used up | See PDF extraction page limits and AI keys |
| "We couldn't find the extraction that was in progress. Please try again." | Mammoth lost track of the running extraction | Start the extraction again |
| TIFF, HEIC or WebP files don't extract | The file is damaged or unusually compressed | Check the file, or convert it to PDF or PNG first |
| Extraction fails with an error | Non-standard fonts, or a heavily image-based document | Re-scan at a higher resolution, or convert to a text-based PDF |
Related
- Write instructions for PDF extraction: examples for the Custom option.
- Read new PDFs the same way: repeat an extraction and automate it.
- Review how Mammoth reads a file: the same review window for messy files and recipes.
- PDF extraction page limits and AI keys: monthly pages and using your own OpenAI key.
Something wrong? support@mammoth.io