PDF text is stored in the order it was written to the file, which is not always the order a reader sees. In two-column layouts the copied text often jumps across columns, so a quote pasted from a PDF can scramble the sentence order without any visible warning.
What you need
- A PDF with a two-column layout
- A PDF reader that can copy text
- A plain-text editor to paste into
Step 1: Copy one page of text
Select all the text on a two-column page, copy it, and paste it into a plain-text editor with no formatting.
Step 2: Read the pasted order
Read the pasted text from top to bottom and compare it with the page. Note where a sentence from the right column appears before the left column finishes.
Step 3: Use layout mode if the order is wrong
Run pdftotext -layout file.pdf out.txt to extract with the visual layout preserved, then compare that output with the pasted order.
Worked example: synthetic copy check on a two-column newsletter page
The table below is a synthetic example. It shows the expected result of checking pasted column order; no copy was made.
| Pasted line | On the page | Verdict |
|---|---|---|
| Line 1: Sales rose 8% in Q1 | Left column, paragraph 1 | Correct order |
| Line 2: The board approved the plan | Right column, paragraph 1 | Wrong – jumped columns |
| Line 3: Costs fell in March | Left column, paragraph 2 | Correct order |
| Line 4: Hiring starts in June | Right column, paragraph 2 | Wrong – jumped columns |
Expected result (UNTESTED). the pasted text interleaves the two columns, so sentences from the right column appear before the left column finishes. Do not quote from the pasted text; use pdftotext -layout or retype the passage. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- The -layout option preserves the visual layout best when the columns are evenly spaced; narrow gutters can still confuse it.
- Copy order depends on how the PDF was created, so two PDFs that look identical can paste differently.
- This check only covers text order; it says nothing about whether the text itself is accurate.
