fileforge

PDF tables → Excel › Guides

Combine the line items from many PDF invoices into one sheet

A month of supplier invoices arrives as separate PDFs, and you need every line item in one spreadsheet to total, filter or reconcile. Here is how to stack them in one pass, with each row labelled with the invoice it came from.

Verified sample Steps and sample produced by running this site's converter on synthetic files.

Steps

  1. Put the invoices in one folder. This works best when they share a layout, for example all from the same supplier or the same billing system, so the columns line up. The file name becomes the label on every row, so a name with the invoice number in it is the most useful.
  2. Open the PDF table converter and leave "Skip titles and paragraphs (table rows only)" ticked. That drops the letterhead, addresses and notes, which sit on lines with only one piece of text, and keeps lines that have two or more cells.
  3. Tick "Combine all files into one sheet", then select all the invoices at once and drop them on the page. Each file is read in turn; the status line shows which one is being read.
  4. Check each file's card. Every invoice gets a preview with its page count, row count and column count. Look for the same column count on every invoice. A file with a different count has a different layout and its values will sit under different columns in the combined sheet. The green badge reads "all text placed", followed by how many characters of titles and notes (letterhead, addresses, footers) were left out. A yellow "check: some text not placed" badge means some text could not be accounted for; open that PDF and compare.
  5. Download Excel (.xlsx) or CSV. The combined sheet's first row is "Source file" followed by the first invoice's own column headings. When a later invoice starts with exactly the same header row, that row is dropped, so the headings are not repeated for every file.
  6. Look for odd headers. If a later invoice's header differs in any way (different wording or an extra column), it is not recognised as a header and stays in as a row; filter the SKU column for header text to find any.
  7. Reconcile before you rely on it. Sum the Amount column per source file and compare it with each invoice's total. Totals and subtotals printed under the table are included as rows if they sit on a line with two or more cells, so filter them out before summing.

Sample: three invoices into one sheet

Three synthetic one-page invoices from the same made-up supplier, each with the columns SKU, Description, Qty, Unit price and Amount.

InputPagesTable
invoice-20481.pdf13 line items
invoice-20517.pdf12 line items
invoice-20562.pdf14 line items

After, the combined sheet. Each file's card reported 5 columns and "all text placed · 76 characters of titles/notes left out" (the invoice title and the synthetic-data note):

Source fileSKUDescriptionQtyUnit priceAmount
invoice-20481.pdfSK-1001Steel bolts M8400.3514.00
invoice-20481.pdfSK-1007Hinge 75mm64.2025.20
invoice-20481.pdfSK-1009Sandpaper P120250.8020.00
invoice-20517.pdfSK-1002Washers 8mm2000.0510.00
invoice-20517.pdfSK-1008Door handle set218.5037.00
invoice-20562.pdfSK-1004Anchor plugs1000.1212.00
invoice-20562.pdfSK-1005Cable ties 200mm5000.0315.00
invoice-20562.pdfSK-1006Wall brackets122.7533.00
invoice-20562.pdfSK-1001Steel bolts M81,2000.31372.00

In the Excel file, quantities, prices and amounts are stored as numbers, not text: "1,200" in the last row is the number 1200 and "372.00" is 372, so they sum straight away. SKUs and the file names stay text. The headers of the second and third invoices were recognised and dropped; row 2, the first invoice's header repeated, is the one to delete.

Limits

Open the PDF table converter