# PDF Page Numbering Styles

Convert HTML to PDF with Roman, Arabic, or chapter-prefixed page numbers

> Canonical page: https://elysiatools.com/en/tools/pdf-page-numbering-styles

- **Category:** Document Tools

- **Keywords:** pdf, html, page numbers, roman, arabic, chapter, pagination

## Overview

Generate a PDF from HTML and stamp page numbers in the style you choose.

**Numbering styles:**
- Arabic or Roman numerals
- Chapter prefix with template support (use `{chapter}`)
- Optional total pages and custom prefix/suffix

**Placement:**
- Header or footer positions
- Custom edge offset and font size

## Inputs

- **HTML Content** (textarea): # Chapter One Write your HTML here...
- **Custom CSS** (textarea): /* Optional custom styles */
- **Page Size** (select)
- **Landscape** (checkbox)
- **Print Background** (checkbox)
- **Margin Top (mm)** (number)
- **Margin Bottom (mm)** (number)
- **Margin Left (mm)** (number)
- **Margin Right (mm)** (number)
- **Numbering Style** (select)
- **Start Page Number** (number)
- **Include Total Pages** (checkbox)
- **Chapter Prefix Template** (text): Chapter {chapter} -
- **Chapter Number** (number)
- **Label Prefix** (text): Page
- **Label Suffix** (text)
- **Number Position** (select)
- **Edge Offset (mm)** (number)
- **Number Font Size (pt)** (number)
- **Number Color** (color)
- **Wait Until** (select)
- **Extra Wait Time (ms)** (number)

## When to use

- When you need to generate professional reports or documentation from HTML templates.
- When you require specific pagination styles like Roman numerals for front matter or chapter-based numbering for technical manuals.
- When you need to add consistent headers or footers with page counts to your generated PDF documents.

## How it works

- Paste your HTML content and optional CSS into the editor to define your document structure and styling.
- Select your preferred numbering style, such as Arabic, Roman, or a custom chapter-prefixed template.
- Configure the placement, font size, and edge offsets for your page numbers in the header or footer.
- Click generate to render your HTML into a formatted PDF file with your chosen pagination settings.

## Use cases

- Generating academic papers or thesis documents with Roman numeral pagination for preliminary pages.
- Creating multi-chapter technical manuals where each page includes the chapter number for easier navigation.
- Producing professional business reports with branded headers and consistent footer page numbering.

## Frequently asked questions

### Can I use Roman numerals for page numbering?

Yes, you can select either uppercase or lowercase Roman numerals from the numbering style options.

### How do I include the total page count?

Simply enable the 'Include Total Pages' checkbox to display the current page number alongside the total count.

### Can I add a chapter prefix to my page numbers?

Yes, select the 'Chapter Prefix' style and use the template field to define your custom format, such as 'Chapter {chapter} - '.

### Where can I place the page numbers?

You can position page numbers in the header or footer, with alignment options for left, center, or right.

### Is it possible to start numbering from a page other than one?

Yes, you can set the 'Start Page Number' field to any integer to begin your pagination sequence from a specific value.

## Related tools

- [HTML to PDF (Precise Layout)](https://elysiatools.com/en/tools/html-to-pdf-precise): Render HTML/CSS to a PDF with precise headers, footers, and print settings
- [HTML to PDF Renderer](https://elysiatools.com/en/tools/html-to-pdf-renderer): Render a limited HTML subset into a PDF with a deterministic layout
- [HTML Mail to PDF](https://elysiatools.com/en/tools/libreoffice-html-mail-to-pdf): Render email HTML content to PDF with preserved basic formatting using Puppeteer
- [PDF Header/Footer Snippets](https://elysiatools.com/en/tools/pdf-header-footer-snippets): Convert HTML to PDF with reusable logo, title, and date snippets
- [PDF Table Layout Engine](https://elysiatools.com/en/tools/pdf-table-layout-engine): Render structured table data into a paginated PDF with repeating headers and zebra rows
- [PDF to HTML](https://elysiatools.com/en/tools/pdf-to-html): Convert PDF documents to HTML web pages with preserved formatting and structure
- [PDF Table Extractor to CSV/JSON](https://elysiatools.com/en/tools/pdf-table-extractor-to-csv-json): Extract tables from PDFs with OpenDataLoader and export them as structured JSON, flat CSV, or HTML tables
- [PDF to Structured Markdown Converter](https://elysiatools.com/en/tools/pdf-to-structured-markdown-converter): Convert PDFs into structured Markdown using OpenDataLoader with options for HTML-rich output, images, page separators, and tagged-PDF structure

## Samples

- [PDF Samples](https://elysiatools.com/en/samples/pdf-samples): Generated PDF samples from tools dated 2026-02-01 to 2026-02-10
- [Markdown Slide Deck Samples](https://elysiatools.com/en/samples/md-slide-deck-to-pdf): Remark/Marp style Markdown slide decks for testing PDF export layouts
- [Cypress E2E Testing Framework](https://elysiatools.com/en/samples/cypress-testing): Comprehensive Cypress end-to-end testing examples including test setup, page object models, API testing, visual regression testing, and advanced E2E patterns for modern web applications
- [HTML Viewer Samples](https://elysiatools.com/en/samples/html-viewer-samples): Sample HTML files (semantic page, form, landing page) for the in-browser HTML Viewer

## Related content

- [Print-Ready PDF Layout and Publishing Workflow Tools](https://elysiatools.com/en/hubs/print-pdf-layout-workflows): Build print-ready PDFs from HTML, Markdown, or text with layout control, headers, footers, page numbering, TOC generation, and typography tuning in one hub.
- [PDF Forms, Navigation, and Review Workflow Tools](https://elysiatools.com/en/hubs/pdf-forms-navigation-review-workflows): Compare focused PDF tools for filling forms, adding navigation, marking up review notes, and verifying signed documents from one workflow hub.
- [PDF Conversion and Document Export Tools](https://elysiatools.com/en/hubs/pdf-convert): Compare tools that convert documents, images, and structured extractions into or out of PDF in one hub for publishing, sharing, and downstream processing.
- [HTML Extraction, Cleanup, and Markdown/PDF Export Tools](https://elysiatools.com/en/hubs/html-convert): Compare HTML cleanup, attribute extraction, image-source extraction, HTML-to-Markdown, and HTML-to-PDF tools in one hub for web content conversion workflows.
