Converting a PDF with complex tables to Word

Published

A table with merged cells and headers that span several columns is one of the hardest things to get out of a PDF intact. Here is what happens when one is converted with UnfoldPDF, unedited, and what to tidy up afterwards.

Why tables like this are difficult

A PDF doesn't store a table as rows and cells. It stores pieces of text at fixed positions, plus the lines drawn around them. To rebuild a Word table, a converter has to work out which text belongs in which cell from the layout alone.

Simple grids are manageable. The trouble starts with merged cells: a group label such as "Children" that covers three rows, or a year such as "2025" that sits above two columns. A converter that misses them shifts text into the wrong column, repeats labels, or gives up and places the table as loose text that can't be edited as a table.

The example

We made a one-page library report with two tables (the library and its figures are fictional) and converted it with the standard settings. The first table has a two-level header: each year spans a "Sessions" and an "Attendance" column, and three header cells run down both header rows. Its programmes are grouped by audience, with each group label covering several rows. The second table has a "Bookings" header over three columns and a note that covers two rows.

The PDF page: a library programme report with a seven-column attendance table and a five-column room bookings table, both with merged header and label cells.
Before: the PDF
The same page after conversion, open in Microsoft Word: both tables are Word tables with the same rows, columns and merged cells.
After: the Word document, as Microsoft Word displays it

The attendance table, close up

Close-up of the attendance table in the PDF: shaded header rows, the years 2025 and 2026 each spanning two columns, and the Children and Adults labels each spanning several rows.
In the PDF
Close-up of the attendance table in Word: the same shaded two-level header with 2025 and 2026 each over two columns, Children over three rows, Adults over two, and Total over two columns.
In Word: one table, with the merged cells kept as merged cells

What came through as editable Word

What needed fixing by hand

Tips for converting tables

Limitations

This is one document, and results depend on the layout and quality of yours, so check the table structure before relying on it. Complex multi-column layouts and low-resolution scans may need manual review. The cells contain the text the PDF holds.

Check it yourself: · The result is exactly what UnfoldPDF produced with its standard settings.

Try it on your own PDF

Your first page is free, with no account or card. A free account adds 5 free credits (1 credit converts 1 page).

Choose a file