Page Tree
PDF Page Tree
A hierarchical structure in PDF that organizes pages, allowing efficient access to any page in the document.
Technical Detail
Page Tree uses a logical structure tree embedded in the PDF to define headings, paragraphs, lists, tables, and figure captions. Screen readers traverse this tree rather than the visual layout, enabling correct reading order even in complex multi-column designs. The tag structure follows the PDF/UA (ISO 14289) standard and maps closely to HTML semantics, making well-tagged PDFs navigable with keyboard-only and assistive technology.
Example
```javascript
// Page Tree: PDF manipulation example
import { PDFDocument } from 'pdf-lib';
const pdfDoc = await PDFDocument.load(fileBytes);
const pages = pdfDoc.getPages();
console.log(`Pages: ${pages.length}`);
```