Maison BeaulieuMAISON BEAULIEUAB ÉDITIONS · CULINARY ARTS & ARCHIVES
Private Editions · Books on Screen

Family Book PDF: Checking Pages, Bookmarks, and Links After a Revision

Adding a map at the beginning of a family book looks like a minor edit. The narrative is untouched, the photographs stay in their chapters, and two lines in the table of contents still seem to lead to the right headings. Yet several routes through the book may have shifted in different ways. Page numbering may need updating while a bookmark already lands on the right passage. A link may open a real page, just not the one its text promises.

To examine these discrepancies, we built several versions of a small PDF. They allow us to trace destinations after an insertion, and then to distinguish a useful fix from a blanket shift that would damage routes that still work. No family documents are used. The results come from inspecting the files and their rendered pages, without click-testing in Acrobat or Chrome and without physical printing.

🎁 Free Heritage Gift · A4 Illustrated Booklet + 5 MP3s

Receive the “Pantheon of 28 Legendary Chefs” Dossier (Free A4 PDF) + 5 Audio Stories

Instant complimentary access to our illustrated gastronomic & historical dossier, plus 5 DRM-free MP3 audio chronicles.

Three markers for the same page

Our first version, E, has six pages in this order: a preface, a table of contents, the narrative, a portrait, an appendix letter, and an appendix photograph. The numbers typeset at the foot of these pages are i, ii, 1, 2, A-1, and A-2 respectively. In this article, we call position the rank in the file, counted from one. The narrative therefore occupies position 3 and carries folio 1.

It also has a page label stored inside the PDF. The pypdf manual describes page labels and bookmarks. Another section of the same manual covers internal links. Those tools were used to build our examples.

In E, we deliberately restarted the page labels at 1 for the appendices, omitting their prefix. Here are the three markers for all six pages:

ContentPositionFolio on the pageStored page label
Preface1ii
Contents2iiii
Narrative311
Portrait422
Appendix letter5A-11
Appendix photograph6A-22

An edit request that says only “page 1” is therefore ambiguous if it relies on the stored label. Both the narrative and the letter carry that same label, while remaining two distinct pages. The visible folio A-1 has not vanished from the letter: it is the designation stored beside its content that differs. The table exposes the mismatch without blaming the file for a missing page.

Two distinct destinations despite a shared label

We gave the file two bookmarks: one for the narrative, one for the appendix letter. On the preface, two link rectangles sit over the words offering those same two routes. Inspecting their destinations returns position 3 for the first bookmark and the first link, and position 5 for the second bookmark and the second link. All four routes target the expected pages in E.

The shared label 1 therefore did not merge them. In the files we built, each destination is bound to the target page itself, not resolved by searching for the first available “1”. You can thus identify a defect in the page labels without declaring every route broken. Conversely, having two working bookmarks does not remove the difficulty for someone trying to navigate by page numbers alone.

The difference becomes sharper when a request covers a range. For “from 1 to 2”, E’s labels yield two possible starting points, at positions 3 and 5, and two possible end points, at positions 4 and 6. If we require a continuous ascending sequence, three selections match those bounds: 3–4, 3–6, and 5–6. The pair 5–4 is excluded because it would start after the end. Here we are listing interpretations of an instruction, not the automatic behaviour of a print dialog.

The first selection contains the narrative and the portrait. The second adds both appendices. The last contains only those appendices. All three start on a page labelled 1 and end on a page labelled 2. Naming only the two endpoints by their labels was therefore not enough to specify what to share. To send the narrative with its portrait, name those two pieces of content and verify their positions 3–4 in E, rather than letting the numbers decide for the project.

Inserting a page without shifting working destinations a second time

Version F inserts a map at position 3, between the table of contents and the narrative. The map carries folio iii. The preface and table of contents keep positions 1 and 2. The narrative moves from 3 to 4, the portrait from 4 to 5, the letter from 5 to 6, and the photograph from 6 to 7. All earlier contents remain intact; a new element simply steps in ahead of four of them.

In this build, the target pages of the bookmarks and links were preserved during insertion. We re-read their destinations in the output file: the narrative is now targeted at position 4 and the letter at position 6. These results apply to our operation and these files. They do not guarantee that every tool preserves all navigation cleanly when a page is inserted.

F, on the other hand, deliberately retains the old page-label range boundaries. The stored sequence becomes i, ii, 1, 2, 1, 2, 3. It no longer matches the folios printed on the pages. The map receives label 1 even though it displays iii. The narrative receives 2 even though it displays 1. The letter also receives 2 even though it displays A-1. Checking the seven labels catches this defect immediately, while the two destinations for the narrative and the letter are already right.

At this point one might hear an overly broad instruction: “A page was added, so bump every link forward by one page.” Applied to the destinations already verified in F, that would push the narrative route from 4 to 5—onto the portrait. The letter route would move from 6 to 7—onto the photograph. What was meant to repair the offset would create two broken destinations. The current ranks 4 and 6 are not stale numbers someone forgot to update: they are the live positions of the pages already targeted.

An old list of page positions, by contrast, genuinely does need updating. The instruction “send positions 3–4” selected the narrative and portrait in E. In F, it selects the map and the narrative. Both requests still cover two consecutive pages, yet their contents differ. To preserve the same editorial selection after insertion, the new list must specify 4–5. That list and the internal links did not follow the same mechanism, so you do not necessarily fix both with the same action.

Rebuilding page labels without touching working routes

Version G takes the seven pages of F and restores a consistent sequence: i, ii, iii for the front matter, then 1 and 2 for the narrative and portrait, and finally A-1 and A-2 for the appendices. This correction is explicit in our build. It is not an automatic by-product that we would attribute to the earlier insertion.

The bookmarks and links continue to target positions 4 and 6. We did not shift them to produce G. The edit repairs label-based lookup without altering target pages that already pointed to the narrative and the letter. The folios typeset at the foot of the pages were not redrawn: they were already right in F, whereas the stored labels were not.

The opening of the narrative now pairs position 4, folio 1, and label 1. The letter pairs position 6, folio A-1, and label A-1. The repair thus makes their designations distinct without touching their already accurate destinations.

We rendered the pages of F and G using the same method, at 72 pixels per inch. Their seven images are identical, and the page content streams are identical too. Yet inspecting the labels detects a difference that matters for navigation. A visual proof limited to those rendered pages would never have shown that fix. That does not mean the entire files are identical, nor that every element was compared by that single rendering pass.

A link can open a real page and still be wrong

Version H introduces another defect, this time deliberately. It keeps G’s pages, its coherent labels, and both accurate bookmarks. We rebuild the two links on the preface by giving the first one the old position 3 as its destination. The second keeps position 6. The first link’s text still invites the reader to open the narrative, but its destination is now the map.

This link is not empty. It does not point to a missing page. Its target exists in the file, and position 3 falls cleanly between 1 and 7. A check that merely confirms a valid destination within that range would let the error slip through. To spot it, you have to compare the targeted content with the content the route is supposed to deliver: the map is not the narrative, even though both are perfectly legible pages of the same book.

The narrative bookmark still points to position 4. Checking it does not cover the link on the preface, whose destination is independent. In H, one route to the narrative therefore stays right while the other no longer keeps its promise.

The rendered images of the seven pages of G and H are once again identical at the resolution used. The labels are the same, and both bookmarks return the same destinations. The difference we introduced sits solely inside the destination of the first link. The underlined words on the preface cannot reveal it. Reading the navigation data supplies information that neither folio inspection nor visual proofing could provide.

Choosing a fix that does not break three routes to save one

For H, our goal remains reaching the narrative from the preface. The fix to request is therefore to point the first link at the narrative page, currently at position 4. Both bookmarks and the second link already hold their expected destinations. This repair is proposed on the basis of the verified defect; the corresponding repaired file was not generated here.

Revisit the temptation of a global plus-one shift. In H, the four destinations—in the order narrative bookmark, letter bookmark, narrative link, letter link—are 4, 6, 3, and 6. The expected destinations are 4, 6, 4, and 6. Adding one to all four would give 5, 7, 4, and 7. The broken narrative link would be fixed, but the other three routes would turn wrong. An edit that delivers one visible success can thus multiply regressions if you check only the reported defect.

That simple check lets you write a clear brief for the typesetter: fix the destination of the narrative link on the preface, keep its wording, and then re-check both bookmarks and both links. The three routes that already work are not neutral bystanders that a revision may push around freely. Preserving them is part of the deliverable. Recording all destinations before the edit makes it easy to verify that condition afterwards.

Another intervention would be to change only the link text so that it announces the map. That would bring the current destination into line with the new wording. Yet it would remove from the preface the route to the narrative that we wanted to offer. That option can be a deliberate editorial decision; it does not quietly fulfil the original brief. A fix is therefore judged not merely by agreement between two technical fields, but by whether it preserves the service the route was created to provide.

When the target page actually leaves the book

Version I examines a different edit: starting from G, we remove the narrative page from the page sequence while deliberately keeping the navigation references. This construction does not describe the automatic behaviour of every deletion tool. The six current pages are now the preface, contents, map, portrait, letter, and photograph. We aligned their labels with their folios: i, ii, iii, 2, A-1, and A-2. The portrait retains its number 2; no narrative has stepped into its place.

In I’s file structure, the first link still holds a reference to a page object that continues to contain the narrative’s instructions. Yet that object no longer belongs to the list of six current pages. Keep those two observations separate: a reference persists inside the file, while the requested page no longer has a position in the active sequence. We do not conclude that its content was destroyed. We observe that none of the six rendered pages displays the narrative.

The two inspection libraries do not report that reference in the same way. pypdf finds no current position for the narrative bookmark. PyMuPDF returns the first slot in both its table of contents and its link dump. We record that divergence without translating it into a click result: the raw reference was not replaced by the preface’s reference, and no viewer interface was tested. A first slot returned by this check does not bring the narrative back among the current pages.

The letter, meanwhile, remains a page of the book. Its bookmark and link now point to position 5, with folio and label A-1. Losing the narrative’s target did not make every destination invalid. Deleting both routes to the letter on the grounds that navigation must be rebuilt from scratch would strip away a service that is still cleanly defined. Our audit should preserve that distinction rather than turning one missing target into a blanket verdict on all links.

The decision required is no longer the one in H. In H, the narrative sat at position 4 and we could ask for the link to point there. In I, position 4 holds the portrait. Pointing to it would not restore access to the narrative. If removing the narrative was intentional, plan to remove its links from the preface and bookmarks. If access to the narrative should stay available, you must first decide to reinsert that content. These actions remain proposals; they are not presented as newly generated versions. Picking an existing destination at random will not settle the editorial decision created by the removal.

Reviewing routes in the PDF actually delivered

At handover, log the routes to each passage separately. A narrative reached both via a bookmark and from the table of contents has two paths to check. Write down the expected passage for each: H shows that one accurate destination does not automatically validate both.

Our examples were built with pypdf 6.21.4, and their labels and destinations were then read back with both pypdf and a second library, PyMuPDF. The pages were rendered to compare their images. These checks do not cover user testing across every PDF viewer or full accessibility validation. For your final handover, walking through the file in your chosen viewer remains essential. It lets you test your prepared map of markers against the access relatives actually experience, without mistaking a reassuring appearance for a complete navigation check.