What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Short answer: wkhtmltopdf documents --page-offset as a single, global starting-number adjustment. It does not document a command-line switch that restarts the counter at an arbitrary page or section in the same PDF. The [page], [frompage], and [topage] header/footer tokens display values; they are not documented as section-local counters.

If you need numbering to restart in the middle of a document, treat it as a workflow problem: verify your exact wkhtmltopdf build, decide whether you need only different displayed text or actual PDF page labels, and consider producing sections separately or calculating a custom value in the header/footer. Test the final paginated PDF because the cited documentation does not establish a universal in-file reset.

What wkhtmltopdf can and cannot reset

The official wkhtmltopdf usage documentation describes --page-offset <offset> as setting the starting page number, with a default of 0. The libwkhtmltox settings reference describes pageOffset as a number added to all page numbers printed in headers, footers, and the table of contents. Both descriptions are global.

That is different from restarting at page 1 when a later section begins. The reviewed documentation does not define a per-section offset, a reset marker, or a page-object option that starts a new counter. A project report about combining documents records that applying offsets to individual objects did not produce the requested original numbering, and another report asks whether a new section can restart footer numbering. These reports document real use cases, not a guaranteed behavior for every fork or packaged build.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
PDF Extra 2024| Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Lifetime License | 1 Windows PC | 1 User [PC Online code]
  • EDIT text, images & designs in PDF documents. ORGANIZE PDFs. Convert PDFs to Word, Excel & ePub.
  • READ and Comment PDFs – Intuitive reading modes & document commenting and mark up.
  • CREATE, COMBINE, SCAN and COMPRESS PDFs
  • FILL forms & Digitally Sign PDFs. PROTECT and Encrypt PDFs
  • LIFETIME License for 1 Windows PC or Laptop. 5GB MobiDrive Cloud Storage Included.

Three requirements that are often confused

  • Change the first number: add or subtract a global value with --page-offset.
  • Hide a number on a cover: use a cover or conditional header/footer markup, without changing the counter.
  • Restart later: display a new sequence inside one output PDF. This is not a documented native wkhtmltopdf feature.

Use the documented global offset

Use this when every printed page should shift by the same amount. For example, to make the first printed page display 10 instead of the default sequence, pass an offset of 10:

wkhtmltopdf --page-offset 10 https://example.com report.pdf

The offset affects the values exposed to headers, footers, and the table of contents. It does not split the output into independent counters. Confirm the result with the exact binary you deploy, because distributions and forks can differ.

Display page values in a footer

For a simple text footer, use the documented substitution tokens:

wkhtmltopdf 
  --footer-center "Page [page] of [topage]" 
  https://example.com report.pdf
  • [page] is the current printed page.
  • [frompage] is the first page to be printed.
  • [topage] is the last page to be printed.

These substitutions format the values wkhtmltopdf has calculated. They do not create a second counter when a heading, URL, or page object changes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use an HTML header or footer when layout logic is needed

The manual also supports HTML headers and footers. A minimal footer file could contain:

Rank #2
MobiPDF Lifetime - Professional PDF Editor for Windows | Edit, Sign & Convert PDFs | Best Adobe Acrobat Pro Alternative | Lifetime License
  • Edit PDFs with Ease. Modify text, images, and layouts directly within your PDF documents.
  • Convert & Organize. Export PDFs to Word, Excel, or ePub, and organize files with ease.
  • Read & Annotate. Enjoy intuitive reading modes and powerful tools to comment, highlight, and mark up PDFs.
  • Create & Manage PDFs. Create new PDFs, combine multiple files, scan documents, and compress for easy sharing.
  • Fill & Sign Forms. Complete forms and digitally sign documents with secure e-signature tools.
<!doctype html>
<html>
  <body style="font-size:9pt; text-align:center; margin:0">
    Page [page] of [topage]
  </body>
</html>

Invoke it with the appropriate HTML-footer option for your build and verify that local-file access, fonts, and external assets are permitted. The placeholders remain substitutions, not section resets.

Why repeating an offset does not provide a documented reset

The object-level settings reference includes pagesCount, which controls whether an object’s pages count in the counter used for the table of contents, headers, and footers. It does not say that the next object starts at page 1. Likewise, --replace <name> <value> substitutes names in header/footer text; it is not documented as a dynamic section counter.

Consequently, adding another --page-offset to a later page object, or changing pagesCount in the hope of restarting, is not a supported recipe. If your command appears to work, regard that as behavior of that particular binary and test upgrades, covers, TOCs, and different pagination.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose a workflow for a mid-document restart

Before changing commands, write down what must be true in the final PDF. The answer determines whether wkhtmltopdf alone is sufficient.

Requirement What to verify Likely approach
Only the initial displayed number changes All pages may keep one sequence Use global --page-offset
A later section displays 1, 2, 3… One PDF versus several files; dynamic page heights Separate rendering or custom display calculation, then verify pagination
PDF viewers must show section-local page labels Whether labels, not footer text, are required Apply labels in a downstream PDF-processing stage
TOC totals must restart too TOC generation and object counting Test the exact build; documentation does not promise section-local TOC counters

Option A: render sections as separate PDFs

  1. Render the cover and each section to its own PDF, using the same margins, paper size, fonts, and header/footer dimensions.
  2. Set each section’s initial display with its own global --page-offset, or use a section-specific footer.
  3. Merge the PDFs with a PDF tool that preserves the intended order and inspect every boundary.
  4. Check whether the merger preserves, replaces, or ignores PDF page labels. Footer text and viewer page labels are separate concepts.

This approach gives each render an independent pagination context, but it can change line wrapping if the section is rendered with different resources or options. Recalculate offsets after the final merge if you need continuous numbering elsewhere.

Rank #3
Adobe Acrobat Pro | PDF Software | Convert, Edit, E-Sign, Protect | PC/Mac Online Code | Activation Required
  • Create and edit PDFs. Collaborate with ease. E-sign documents and collect signatures. Get everything done in one app, wherever you go.
  • Edit text and images without jumping to another app.
  • E-sign documents or request e-signatures on any device. Recipients don’t need to log in to e-sign.
  • Convert PDFs to editable Microsoft Word, Excel, or PowerPoint documents.
  • Share PDFs for collaboration. Commenting features make it easy for reviewers to comment, mark up, and annotate.

Option B: calculate the displayed value yourself

A custom HTML footer can print a value derived from the physical page number and a section’s known starting page. This is only reliable when the section boundary is deterministic. Dynamic content, lazy resources, font substitution, a cover, a TOC, or changed margins can move the boundary. The supplied documentation does not validate a universal JavaScript or replacement-variable implementation, so treat this as build-specific engineering and compare the generated PDF against a page-by-page specification.

Option C: post-process the finished PDF

If the requirement concerns PDF page labels or a viewer’s navigation rather than visible footer text, generate the PDF first and apply labels in a dedicated PDF-processing stage. Keep the original footer decision separate: changing labels does not automatically change text already painted onto a page. Validate links, bookmarks, TOC destinations, and accessibility metadata after processing.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Inspect your build before troubleshooting

The upstream GitHub repository was archived by its owner on January 2, 2023 and is read-only. That makes it especially important to record whether you use an official package, an operating-system build, a patched build, or a downstream fork.

wkhtmltopdf --version
wkhtmltopdf --extended-help | grep -E "page-offset|footer|header|toc|cover"

Capture the complete command, operating system, package version, and whether the input uses cover, toc, or multiple page objects. Do not assume that a “works on my machine” result applies to another binary.

Troubleshooting page-number problems

The sequence starts at the wrong number

Check the sign and placement of --page-offset, then inspect the rendered footer rather than a PDF viewer’s physical page index. Remember that the documented default is 0 and that the setting is global.

Rank #4
PDF Extra Lifetime - Professional PDF Editor - Best Adobe Acrobat Pro Alternative - Lifetime License for Windows PC
  • Perfect Adobe Acrobat Pro alternative – lifetime license for Windows 10 and 11.
  • EDIT text, images, pages, hyperlinks, designs in PDF documents. ORGANIZE PDFs.
  • READ and Comment on PDFs – Intuitive reading modes & document commenting and mark up tools!
  • CREATE, COMBINE, SCAN and COMPRESS PDFs.
  • FILL forms & Digitally Sign PDFs. Work with Digital certificates

A later section continues numbering

That is the documented limitation: no section-reset switch is described. Stop adding repeated offsets to page objects. Render sections separately, calculate a custom display value, or apply labels after rendering, and test the final merged file.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

[topage] is not the total you expect

[topage] reflects the last page wkhtmltopdf is printing for that output. Covers, TOCs, page ranges, object-count settings, and changed content can alter it. Verify whether the desired total is for the whole PDF or only one section.

The footer is blank or shows literal tokens

Confirm that the option name matches your build, that the footer is enabled, and that the HTML footer is reachable. Test with a plain text footer first, then add CSS and assets. A literal [page] usually indicates that the value was not processed in the context where it was placed.

Offsets appear ignored on combined documents

Reproduce with the smallest command containing the same page objects. The project issue report about combining documents records this symptom. Compare the exact binary and command-line ordering, then consider separate rendering and downstream merging rather than relying on undocumented object-level behavior.

The PDF looks right but viewer numbering is wrong

Visible footer text and PDF page labels are independent. If users need the viewer’s page panel or print dialog to show section-local labels, perform a label operation after wkhtmltopdf and verify bookmarks and TOC destinations.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
PDF Pro 3 - PDF editor to create, edit, convert and merge PDFs - 100% Compatible with Adobe Acrobat - for Windows 11, 10, 8.1, 7
  • ALL-IN-ONE SOLUTION – read, edit, convert, merge and protect your PDF files
  • MAXIMUM FUNCIONALITY – create interactive forms, compare PDFs, bates numbering, find and replace text or colors, convert documents, OCR engine, comment, highlight, fill out and print forms, document protection and others
  • EASY TO INSTALL AND USE – well-structured user-interface, in-program instructions, free tech support whenever you need it
  • GREAT VALUE FOR MONEY - why spend a fortune if you can have maximum functionality at a reasonable price - this also fits the requirements of companies very well
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Performance and reliability considerations

  • Pagination is the dependency: any approach based on a known section start can fail when web fonts, images, JavaScript, or responsive layout changes page breaks.
  • Freeze inputs for repeatability: use fixed assets, deterministic CSS, and a consistent viewport and paper configuration when comparing offsets.
  • Inspect boundaries: verify the first and last page of every section, plus the cover and TOC if present.
  • Keep an audit record: save the version output, full command, source revision, and post-processing command so a numbering change can be reproduced.
  • Separate display from semantics: decide whether readers need printed text, PDF labels, or both before selecting a workaround.

Or skip the browser setup

If your broader task is generating clean screenshots or PDFs of web pages rather than controlling wkhtmltopdf’s internal counter, ScreenshotNeo provides a website screenshot API and MCP server for developers. A single request can return PNG, JPEG, WebP, or PDF; it accepts cookie banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status.

Use the ScreenshotNeo documentation for all options, including PDF paper size, margins, landscape mode, page ranges, full-page capture, custom CSS and JavaScript, waits, headers, cookies, user agents, blocking rules, caching, signed links, asynchronous jobs, bulk capture, and usage reporting.

One-call examples

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

ScreenshotNeo also offers an MCP server with take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account.

Frequently Asked Questions

Does --page-offset change PDF page labels?

It changes the page values wkhtmltopdf prints in headers, footers, and the table of contents; it is not documented as a general PDF page-label editor.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can a cover page be excluded from the counter?

A cover can be handled as a separate object or render, but the cited documentation does not promise that this will restart the following object at page 1. Verify the exact build and final output.

Which wkhtmltopdf versions support section resets?

The reviewed primary documentation does not identify a native section-reset switch. Check your packaged build or fork independently, especially because the upstream repository is archived.

Quick Recap

Bestseller No. 1
PDF Extra 2024| Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Lifetime License | 1 Windows PC | 1 User [PC Online code]
PDF Extra 2024| Complete PDF Reader and Editor | Create, Edit, Convert, Combine, Comment, Fill & Sign PDFs | Lifetime License | 1 Windows PC | 1 User [PC Online code]
READ and Comment PDFs – Intuitive reading modes & document commenting and mark up.; CREATE, COMBINE, SCAN and COMPRESS PDFs
$99.99
Bestseller No. 2
MobiPDF Lifetime - Professional PDF Editor for Windows | Edit, Sign & Convert PDFs | Best Adobe Acrobat Pro Alternative | Lifetime License
MobiPDF Lifetime - Professional PDF Editor for Windows | Edit, Sign & Convert PDFs | Best Adobe Acrobat Pro Alternative | Lifetime License
Edit PDFs with Ease. Modify text, images, and layouts directly within your PDF documents.; Convert & Organize. Export PDFs to Word, Excel, or ePub, and organize files with ease.
$99.99
Bestseller No. 3
Adobe Acrobat Pro | PDF Software | Convert, Edit, E-Sign, Protect | PC/Mac Online Code | Activation Required
Adobe Acrobat Pro | PDF Software | Convert, Edit, E-Sign, Protect | PC/Mac Online Code | Activation Required
Edit text and images without jumping to another app.; Convert PDFs to editable Microsoft Word, Excel, or PowerPoint documents.
$239.88
Bestseller No. 4
PDF Extra Lifetime - Professional PDF Editor - Best Adobe Acrobat Pro Alternative - Lifetime License for Windows PC
PDF Extra Lifetime - Professional PDF Editor - Best Adobe Acrobat Pro Alternative - Lifetime License for Windows PC
Perfect Adobe Acrobat Pro alternative – lifetime license for Windows 10 and 11.; EDIT text, images, pages, hyperlinks, designs in PDF documents. ORGANIZE PDFs.
$99.99
Bestseller No. 5
PDF Pro 3 - PDF editor to create, edit, convert and merge PDFs - 100% Compatible with Adobe Acrobat - for Windows 11, 10, 8.1, 7
PDF Pro 3 - PDF editor to create, edit, convert and merge PDFs - 100% Compatible with Adobe Acrobat - for Windows 11, 10, 8.1, 7
ALL-IN-ONE SOLUTION – read, edit, convert, merge and protect your PDF files
$29.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.