Why PDF comparison pages don't line up
When a comparison shows the same clause at two different heights on the screen, it is usually reporting geometry rather than an edit. Two copies of one document frequently disagree about their page size, their visible area and which way is up, and each of those disagreements moves the text.
Key facts
- A PDF page carries several boxes, and the crop box decides which part of it a viewer displays; two exports of one document can set it differently.
- A4 is 595 by 842 points and US Letter is 612 by 792, so content laid out for one of them is scaled or reflowed when it is placed on the other.
- A PDF measures from the bottom-left corner of the page, so a reader that measures from the top reports an offset that is not in the file.
- The rotate entry turns a page for display; a page can store its text in portrait coordinates and appear landscape on screen.
- A scan has no text layer, and its skew, margin and resolution are its own, which is why it rarely registers against a digital page without correction.
- Text that sits a few points inside its counterpart on all four sides is usually a scale difference, not an edit.
- Headers and footers shift first when a text block moves, and a page number that changes by one is not evidence that the content changed.
What does it mean for two pages to line up?
In a comparison, two pages are in register when the same feature of the document lands in the same place on both of them. Clause 4 should put its first line at the same height and the same distance from the left edge in both files. When that is not true, an overlay shows doubled text and a side by side view makes every line look altered even though the wording is identical.
A PDF positions everything in absolute coordinates. Each piece of text is drawn at a point measured from the bottom-left corner of the page, in units of one seventy-second of an inch. Nothing in the format records that a paragraph belongs in the third block from the top; that relationship exists only in those numbers, and they are written by whatever produced the file.
So alignment belongs to the files, not to the words. Two exports of one document can carry identical text and disagree by twenty points about where the first line sits, because one was produced with different margins or a different page size. Registering a pair means dealing with the geometry before reading anything into a difference of position. The words are the same in both files; only the coordinates at which they were written have changed.
Register is what makes a difference visible at all. If two pages disagree about their geometry, everything looks changed and nothing is, which is the worst outcome a comparison can produce: it costs the reader time and it hides the one clause that really did move. Getting the pages to agree is not tidying up, it is the step that turns a screen full of differences into a short list worth reading.
Which page box is the comparison actually using?
A PDF page is described by more than one rectangle. The media box is the full sheet. The crop box is the region a viewer displays as the page. The bleed, trim and art boxes describe printing intentions. Which of them a viewer or a comparison uses decides where the page appears to begin, and two files can hold the same content with different boxes set.
Cropping does not delete anything. Content outside the crop box stays in the file and keeps its original coordinates. A page cropped to trim the black edge of a scan therefore looks larger or smaller than its twin, and any measurement taken from the visible edge shifts by exactly the amount that was cropped. The text has not moved; the window onto it has.
Two exports of one source routinely differ here. A print driver, a library that writes PDFs and a scanner's own software each choose a box, often without announcing it. When one file shows a wider margin than the other, inspect the boxes before concluding that the layout was edited by a person at all. The remedy is the same either way, which is to set both files to the same page box before asking the comparison to measure anything.
Why do two copies of one document have different page sizes?
A4 and US Letter are different shapes. A4 is 595 by 842 points and Letter is 612 by 792, so a page laid out for one of them does not fit the other without scaling or reflowing. A small scale factor moves the bottom of the page more than ten points relative to the top, which is why a fixed overlay cannot line up at both ends of a scaled pair.
Printing to PDF often scales to fit by default. A file prepared for Letter and printed to A4 comes out at a slightly reduced scale, sometimes chosen silently by the driver. The characters are all present and every coordinate has moved. If one version sits a little inside the other on all four sides, that is the signature of a scale rather than an edit.
Mixed page sizes inside one file are worse still. A contract assembled from a scanned annexure on A4 and a digital body on Letter will not register page for page, because the two pages being compared were never the same size to begin with. Editing a multi-page document without changing the shape of each page is the constraint worth holding on to.
Measure a line rather than trust the eye. Take a sentence in each file and compare two distances: from the left edge of the page to the first character, and from the top of the page down to the baseline of the line. Where both distances differ by the same proportion, the page has been scaled. Where one distance is untouched and the other has moved, the text block has simply been shifted across the page.
Why does one file look rotated in the comparison?
The rotate entry turns a page for the reader, not for the file. A page can store its text in portrait coordinates and carry a rotation of ninety degrees, which the viewer applies so the page appears landscape. The words never moved. What moved is the way the page is presented, and the two states are easy to confuse when one file is shown next to another.
Text extraction usually ignores the flag. Text taken from a rotated page can come out in the stored orientation while the same page on screen is upright, so a comparison that mixes reading and displaying reports every line as different. A landscape scan saved as a portrait page is the usual culprit, because the scanner writes the image rotated and sets the flag to compensate.
Set both pages upright before comparing. Check the rotation of each page, apply it to the file rather than to the view, and only then compare. If one file is a scan and the other digital, this is also where you notice that the two were turned differently and that the offset being chased was ninety degrees. A rotated page in a side by side view is the clearest of all the geometry faults, because not one character has changed and yet no line agrees.
Why is a scanned page never quite in register?
A scan is an image with a geometry of its own. Resolution, paper skew, the distance the sheet sat from the edge of the glass and the curve of a bound page all become properties of the page. Two scans of the same sheet made on two machines will not register with each other even when the paper and the ink are identical.
Resolution sets the grid. A page scanned at three hundred dots per inch and one scanned at two hundred describe the same sheet with different pixel dimensions. A comparison that matches by pixel count then rescales one against the other, and that rescale is a guess whose error accumulates across the width of the page. Bring the two images to one resolution before measuring anything, and the rescale never has to happen.
Straighten, then crop, then compare. A tilt of half a degree is invisible to the eye and moves the far end of a line by several points, so a paragraph looks shifted when it is only slightly turned. Deskew the page and crop it to the same visible area as its counterpart, and where the wording is what matters, compare the text rather than the pixels.
Compare what a reader would see, not what a machine stores. A scan and a digital page can hold the same sentence at different coordinates and still look right side by side, because the eye forgives a few points of drift. Where the wording is the question, take the text out of both pages and compare that, and keep the page images for the places where a signature or a stamp has to be checked.
What moves when a different program exports the file?
Every producer writes its own default margins. Word processors, layout software and print drivers each place the text block at their own offset and set their own line spacing. Retyping a clause in a different program moves every line of that clause even when the characters are identical, so the difference is in the producer rather than in the drafting.
A substituted font changes the width of a line. When a face is missing, the producer replaces it with one whose characters are slightly wider or narrower, and the same sentence then wraps at a different word. That changes pagination, which changes which clause starts a page, which reads as an editorial change in a side by side view of the two files.
Headers and footers move first. They sit in the margin, so a small change in the text block pushes them or pulls them, and page numbers can shift by one when a paragraph above gains a line. A footer showing a different number is not evidence that the page content changed. Editing a PDF without changing its layout exists precisely because this drift is unwanted.
How do you get two PDFs into register before comparing?
Deal with geometry before reading the words. The order matters, because a page that is skewed and scaled will keep producing phantom differences until both are corrected, and each correction costs less than re-reading a hundred clauses that were never different. The PDF comparison tool takes the two files and a description of the check you want; single pages are free and a longer document is one price for up to ten edits.
Where the wording is the point, compare the text and not the page. Once both files carry the same page size, visible area and rotation, a text comparison answers the question the geometry was interfering with, and anything that survives is worth reading clause by clause. A page by page view is still useful for the parts that were signed or stamped, but for wording it only adds a coordinate system to argue with.
When a pair will not come together, compare the text instead. Some files will never register, such as a photograph of a signed page against a draft, or two scans made on different machines. Rather than fight the geometry, take the recognised text from each page and compare the words, then use the page images only for the parts that carry ink rather than type.
- Check the page size of each file, and where they differ, bring both to the same dimensions before doing anything else.
- Set the crop box so the visible area of each page matches its counterpart, since a cropped page shifts every measurement.
- Apply each page's rotation to the file, then confirm in a viewer that both pages are upright and the same shape.
- For a scanned file, deskew the page and crop it to the same visible area as the digital version.
- Compare the text, and treat any difference that disappears once the pages are aligned as a geometry artefact rather than an edit.
- Keep a note of the corrections you applied, so the next pair from the same source gets the same treatment.
Compare two PDFs
Upload two versions of a document and get the list of pages that differ, instead of reading both side by side.
Do it now How this worksQuestions people ask
Why do two PDFs of the same document not line up?
Because they disagree about geometry. Different crop boxes, a page size change between A4 and Letter, a rotation flag on one file, or content shifted by a different producer all move the text without changing it.
Does a different page size really change where the text sits?
Yes. Content laid out for one page size is scaled or reflowed to fit another, and a small scale factor moves the far end of the page by several points, so the two pages cannot align at both the top and the bottom.
Why does one page open rotated while the other does not?
One file carries a rotation entry that turns the page for display. The stored text may still be in the original orientation, so a comparison that mixes screen position with stored coordinates reports differences that are only ninety degrees of turn.
Can a scanned page be aligned with a digital one?
Not exactly, because the scan has its own resolution, skew and margins. Deskew and crop it so the visible area matches, then compare the text, which ignores the pixels the scan introduced.
How do I fix misaligned comparison pages?
Make the page sizes match, set the crop boxes to the same visible area, apply the rotation to each file, deskew any scan, and compare the text. Any difference left after that is about content.
Related guides
Published 21 November 2026. Written and maintained by the paidpdf team. Questions: hello@paidpdf.com.