What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
To add a repeating header with page numbers in a PDFShift-generated PDF, send a header object with HTML in its source field and include PDFShift’s {{ page }} variable where the current page number should appear. Add {{ total }} for the total page count. PDFShift’s documented Node/Unfetch example uses the v3 PDF conversion endpoint and an X-API-Key header.
Configure a repeating header in the PDFShift request
The header configuration has three relevant fields: source, height, and optional start_at. The source can be a URL or raw HTML. The example below uses raw HTML so the page-number placeholders and basic styling stay with the request. PDFShift’s guide demonstrates this pattern with Node and Unfetch; the HTTP request is a POST to https://api.pdfshift.io/v3/convert/pdf with JSON and an X-API-Key header. See PDFShift’s Node/Unfetch header and footer guide for its documented example.
const fetch = require('unfetch');
const response = await fetch('https://api.pdfshift.io/v3/convert/pdf', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.PDFSHIFT_API_KEY
},
body: JSON.stringify({
source: 'https://example.com/report',
header: {
source: '<div style="font-size:10px;text-align:right;border-bottom:1px solid #ccc;padding-bottom:6px">Page {{ page }} of {{ total }}</div>',
height: '18mm'
}
})
});
if (!response.ok) {
throw new Error(`PDFShift conversion failed: ${response.status} ${response.statusText}`);
}
const pdf = Buffer.from(await response.arrayBuffer());
require('fs').writeFileSync('report.pdf', pdf);
Replace https://example.com/report with the URL to convert and make PDFSHIFT_API_KEY available in your environment. This illustrates the documented request pattern; adapt the response handling to the HTTP client and runtime used in your project.
Use the page variables where they belong
Put the variables in the header or footer source, not in the main document markup. PDFShift documents these variables: {{ title }}, {{ url }}, {{ page }}, {{ total }}, and {{ date }}. For example, {{ page }} is the current page and {{ total }} is the total number of pages. The documented date format is M/D/YY-H:MM am/pm.
Free tools Windows power users keep installed
One-click scans. No signup required.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
<div>{{ title }} — Page {{ page }} of {{ total }}</div>
Choose a height and start page
height sets the header area and is measured in pixels by default; PDFShift also accepts mm, cm, and in. The right value depends on the header’s content and the page layout—PDFShift does not prescribe a universal height. Use start_at when the header should begin after the first page; the guide says the default is page one.
The footer uses the same configuration pattern as the header. Set it when you need repeating content at the bottom of pages, for example a page number or document label.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Keep header styles, fonts, and assets self-contained
Do not rely on the header or footer to fetch external CSS, JavaScript, or fonts over the network. PDFShift says those network requests will not work for header/footer content. Keep the markup and styles inline, or embed required resources as Base64.
For a custom font, PDFShift’s Help Center instructs users to Base64-encode it and include and use it in both the main document and the header/footer. PDFShift reports successful testing with TrueType and WOFF2 fonts; see its custom-font instructions.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Avoid first-page content spilling onto page two
Headers and footers reserve space through the document margins. A common pagination issue occurs when the header starts on a later page but page one already fills its available area: reserving space for the header can push content onto page two. PDFShift’s troubleshooting guidance gives this first-page rule for a header:
@page:first {
margin-top: 0;
}
For a footer, the corresponding rule is:
@page:first {
margin-bottom: 0;
}
Adjust these rules to match the margins already set for the document, particularly if both a header and footer are present. After conversion, inspect the first-page boundary and the page where the header or footer begins; a margin adjustment can change where content breaks. See PDFShift’s explanation of first-page overflow.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Or skip the browser setup
If you need a screenshot of a web page rather than a PDF with a repeating header, ScreenshotNeo returns a screenshot or PDF through one API request. For this PDFShift task, its scope is different: it captures pages rather than configuring PDFShift’s document header.
Quick Recap
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for request options. Its capture flow removes cookie banners, popups, and chat widgets before the shot; bot checks, blank pages, and failed loads are never billed. An MCP server lets AI agents take screenshots, and the free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo’s free plan.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchTroubleshoot common header and pagination issues
- Page numbers do not appear: Confirm that
{{ page }}or{{ total }}is inside the header or footer’ssourcecontent. PDFShift documents those variables for that content. - The header is cut off or crowded: Increase the configured
heightand check that its units are intentional. The default is pixels;mm,cm, andinare also accepted. - A remote font or stylesheet is missing: Header/footer resources cannot depend on network requests. Inline styles or embed the resource as Base64; custom fonts must be included in both the body and header/footer.
- First-page content moves to a second page: Check whether reserving margin for a later-starting header or footer has reduced available space. Tune the relevant
@page:firstmargin rule against the document’s existing page margins. - The header appears on the wrong pages: Check
start_at. PDFShift’s guide says the default is page one; set the field when the header should start later.
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.

