Add Page Numbers

Add professional page numbers to PDF documents online. Supports 6 header/footer positions, custom prefixes, page rotation compensation, and skip cover page options.

Click to upload or drag and drop your PDF here

Add professional header or footer pagination with orientation compensation

Pagination Status

Ready
🔢

Select position, format, and page range to add headers or footers to your document.

How to use Add Page Numbers

Add clean, professional pagination, headers, and footers to multi-page PDF documents directly in your web browser. TechIdea's Add Page Numbers tool supports six standard header and footer positions, multiple numbering formats ('Page X of Y', 'X', '- X -'), customizable starting numbers, and edge inset margins. Crucially, our engine incorporates automatic page rotation compensation: pages tagged with 90°, 180°, or 270° orientation metadata have coordinate matrices adjusted so page numbers always render upright and readable.

  1. Select or drag and drop your PDF document into the upload dropzone.
  2. Choose from 6 pagination positions across top headers or bottom footers.
  3. Select your numbering style: 'Page 1 of N', '1 (Number only)', or '- 1 - (Hyphen)'.
  4. Configure your starting number and edge margin slider (15pt to 60pt).
  5. Specify whether to number All Pages or enter a custom range (e.g., '2-25' to skip cover pages).
  6. Click 'Add Page Numbers' and download your perfectly formatted document.

Rotated Coordinate Mapping & Viewport Geometry Transformation

The pagination engine evaluates each page's MediaBox dimensions `(W, H)` and rotation angle `page.getRotation().angle` (0°, 90°, 180°, or 270°). For standard pages, text coordinates are calculated using font string width `font.widthOfTextAtSize(text, fontSize)`. For rotated pages, the engine calculates the transformed visual viewport and applies compensatory rotational transform `degrees(360 - rotationAngle)`. This ensures that regardless of how the page is oriented in the reader's view, headers and footers appear in the user's expected orientation.

  • Orientation Compensation: Automatically detects and compensates for 90°, 180°, and 270° page rotations.
  • 6 Position Presets: Supports top-left, top-center, top-right, bottom-left, bottom-center, and bottom-right.
  • Flexible Numbering Sequences: Configure custom start indices and total page count denominators.
  • Zero Server Uploads: PDF stream mutation runs 100% locally in your browser's memory.

All PDF operations are processed entirely inside your local web browser. Your files, documents, and data are never sent to external servers or cloud services.

Practical examples

Adding 'Page X of Y' Footers to an Academic Research Paper

Input
32-page research submission requiring formal bottom-center pagination.
Result
Clean 'Page 1 of 32' through 'Page 32 of 32' footers placed 30pt from the bottom edge.

Fulfills academic journal submission guidelines and ensures missing pages are immediately detectable.

Numbering a Commercial Proposal While Skipping the Glossy Cover Page

Input
15-page client proposal with a full-bleed title cover page.
Result
Cover page left pristine; page 2 is stamped with 'Page 1 of 15' starting from page 2 onward.

Custom page range targeting (`2-15`) keeps marketing covers clean while maintaining internal pagination.

Paginating Legal Court Exhibits with Continuous Indexing

Input
Collection of exhibits starting at index 101 for courtroom evidentiary submission.
Result
Pages numbered sequentially from '101' through '145' in the bottom-right corner.

Enables lawyers and paralegals to append exhibits to an existing court docket without breaking numbering.

Compensating for Landscape & Rotated Pages in an Engineering Report

Input
Report containing portrait text mixed with rotated 90° landscape CAD schematics.
Result
Page numbers on landscape sheets are automatically rotated upright relative to the viewer.

Calculates `/Rotate` dictionary tags and applies trigonometric transformation matrices.

Frequently asked questions

How does the tool handle rotated landscape pages?

In many PDFs, landscape pages are stored with portrait dimensions and a `/Rotate 90` or `/Rotate 270` dictionary tag. Naive tools draw numbers using raw coordinates, placing them sideways or offscreen. Our engine inspects `page.getRotation().angle` and applies inverse coordinate rotation, guaranteeing numbers appear right-side up.

How can I skip numbering the title or cover page?

Select 'Specific Pages' and enter `2-[total]` (for example, `2-10`). The cover page will remain untouched, and numbering will begin cleanly on page 2.

Can I start numbering from a number other than 1?

Yes! Use the 'Start Number From' input. For example, if you are preparing Part 2 of a manual that follows a 50-page Part 1, you can set the start number to 51.

What font is used for page numbering?

We use standard embedded Helvetica typography sized at 10pt with clean charcoal gray contrast (`rgb(0.2, 0.2, 0.2)`), providing subtle, professional pagination that blends into any business document.

Related tools

Available

Watermark PDF

Add custom text watermarks to PDF pages online. Configure opacity, font size, 45° rotation, and corner or center positioning. 100% private in-browser processing.

PDF Tools
Available

Crop PDF

Crop PDF margins and adjust page viewing dimensions conforming to ISO 32000-1 /CropBox standards. Specify top, bottom, left and right margins in pt, mm, or inches.

PDF Tools
Available

Reorder PDF Pages

Rearrange the sequence of pages in your PDF document with visual drag-and-drop thumbnails and accessible keyboard controls. Download updated PDF with zero loss in quality.

PDF Tools
Available

Merge PDF

Combine multiple PDF documents into a single unified file in your chosen order. Reorder files, preview page counts, and download instantly with zero server uploads.

PDF Tools