Power Query From PDF sometimes lists no tables at all, which usually means the PDF holds no table structure for it to detect, or the PDF is a scan. Working through the causes in order, from text check to page import, recovers the data without retyping it.
Prerequisites
- Excel with Power Query
- The PDF that failed to import
- A copy of the source file, so the original stays untouched.
Steps
- Open the PDF and try to select a word of text; if no text can be selected, the PDF is a scan and needs OCR first.
- In Excel, go to Data, Get Data, From File, From PDF, and look at the Navigator list again.
- If no table is listed, select the page entry instead, such as Page001, and click Transform Data.
- In the Editor, remove the header and footer rows, promote the first row to headers, and split any merged columns.
- Click Close and Load, then read the imported rows against the PDF.
Worked example: Fictional timetable recovered from a page import
The practice table below is a fictional five-session timetable recovered by importing the page. The minutes column is the length of each session, and the total is their sum. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.
| Day | Session | Minutes |
|---|---|---|
| Monday | Yoga | 60 |
| Tuesday | Pilates | 45 |
| Wednesday | Swimming | 60 |
| Thursday | Running club | 45 |
| Friday | Cycling | 90 |
| Total | 300 |
Expected result. Five sessions recovered, the minutes add to 300, and every session matches the PDF.
Limits
- A page import brings in headers, footers and page numbers as rows, so they must be removed by hand.
- A scanned PDF will still fail after OCR if the OCR quality is poor, so check the OCR text first.
