Free tools Windows power users keep installed
One-click scans. No signup required.
wkhtmltopdf does not print duplex pages itself. It converts HTML into a PDF. To produce physical two-sided pages, run wkhtmltopdf, open or submit the resulting PDF to your operating system’s print workflow, and enable two-sided or duplex printing if the selected printer and driver provide that option.
What wkhtmltopdf can—and cannot—do
wkhtmltopdf is an open-source command-line tool that renders HTML into PDF (and related image formats) with the Qt WebKit rendering engine. Its command line controls the document that is created: paper size, orientation, margins, grayscale output, copies in the PDF, and other rendering choices.
The documented 0.12.6 usage manual does not list a duplex or two-sided printing switch. That distinction matters: duplex is a property of the physical print job, not of the PDF file. A PDF can be prepared for double-sided output, but the printer or print system must perform the front-and-back operation.
The complete duplex workflow
- Prepare the HTML. Confirm that the source contains the content and print styles you expect. If the document has a specific paper target, decide that before conversion.
- Convert HTML to PDF. From a shell, run:
wkhtmltopdf input.html output.pdf
- Inspect the PDF. Check page count, page breaks, margins, and whether the page size and orientation match the paper loaded in the printer.
- Open the PDF in a print application. Use your desktop PDF viewer, print server, or operating-system print command.
- Select the printer and duplex mode. In the printer properties or print dialog, choose the control labelled Two-sided, Duplex, Print on both sides, or an equivalent label. The exact wording depends on the driver and operating system.
- Choose the binding edge when offered. Long-edge binding is normally used for portrait pages that turn like a book; short-edge binding is used when the reverse side should flip over the top. Select the edge that matches how the finished document will be read.
- Print a small check first. For an unfamiliar printer, print a short sample and verify that the reverse side is upright and in the expected page order before sending a large job.
If the dialog has no two-sided control, the selected printer or driver may not support automatic duplex. Follow the printer’s own instructions for manual two-sided printing; reload direction and page-selection rules vary by model, so there is no universal wkhtmltopdf command for that step.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →#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.
Set PDF layout before printing
Layout options affect how content fits on each sheet, but none of them turns on duplex printing. Set them during conversion, then make the matching choices in the print dialog.
| Concern | wkhtmltopdf stage | Physical print stage |
|---|---|---|
| Paper size | --page-size (A4 is the documented default) or explicit page dimensions |
Load the same paper size and avoid automatic scaling that changes the intended layout |
| Page direction | --orientation (Portrait is the documented default) |
Choose the printer’s matching orientation if the dialog offers one |
| Whitespace around content | Margin options | Respect the printer’s non-printable area; excessive scaling can alter line breaks |
| Color treatment | Color or grayscale rendering options | Printer color mode, if relevant |
| Number of copies | --copies controls copies represented in the output PDF |
Print-dialog copy count controls how many physical sets are produced |
| Two-sided output | No documented duplex switch in the 0.12.6 manual | Printer and driver duplex/two-sided setting |
For example, to create an A4 portrait PDF with explicit margins, keep the conversion and physical-print decisions separate:
wkhtmltopdf --page-size A4 --orientation Portrait --margin-top 15mm --margin-right 15mm --margin-bottom 15mm --margin-left 15mm input.html output.pdf
The command creates a PDF with those layout settings. You still select duplex when printing output.pdf.
Verify the PDF before wasting paper
- Check paper size. If the PDF is A4 but the printer is loaded with another size, page scaling or clipping can occur.
- Check orientation. Portrait and landscape change where the reverse side appears relative to the binding edge.
- Check margins and page breaks. A layout that looks correct on screen can place headings or tables too close to a printer’s unprintable edge.
- Check the page count. Duplex printing uses two pages per sheet, but a page count that is odd is not an error; the final sheet simply has one printed side unless you add a deliberate blank page.
- Check the PDF itself, not only the HTML preview. The PDF is the file the print workflow receives.
Automatic versus manual duplex printing
Automatic duplex
An automatic-duplex printer has hardware that turns or feeds each sheet for the second side. Select its two-sided option in the print workflow, choose long- or short-edge binding when available, and let the driver sequence the pages.
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.
Manual two-sided printing
With a printer that has no duplex unit, the print system may ask you to print one side, reload the stack, and print the other side. The correct page range and reload orientation are model-dependent. Use the printer documentation rather than trying to encode the procedure in wkhtmltopdf; wkhtmltopdf only creates the PDF.
When duplex is unavailable
If the printer and driver expose no automatic or manual two-sided workflow, wkhtmltopdf cannot add one. You can still generate the PDF, but the available physical output is determined by the printer hardware and its software.
Common problems and fixes
“I need a wkhtmltopdf duplex flag.”
The 0.12.6 manual does not document one. Remove the assumption that conversion and printing are the same operation: create the PDF first, then set duplex in the print workflow.
The two-sided checkbox is missing
Confirm that the intended printer is selected, then inspect its properties or driver settings. Duplex availability is device- and workflow-dependent. If it remains absent, consult the printer instructions for manual two-sided output.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →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.
The reverse side is upside down
Change the binding edge. Long-edge and short-edge duplexing rotate the back side differently; choose the edge that matches the document’s reading direction.
Pages are clipped or unexpectedly scaled
Compare the PDF’s --page-size and --orientation choices with the paper loaded and the print dialog’s scaling setting. Recheck margins and print a one- or two-page sample.
Copies behave differently than expected
The manual’s --copies option concerns copies in the output PDF; it is not a duplex control. Decide how many physical sets you need in the print workflow as well.
Your installed build behaves differently
The cited manual identifies wkhtmltopdf 0.12.6 with patched Qt. Distributions and other builds can differ, so check the version and the local wkhtmltopdf --extended-help output before relying on an option. An option appearing in a vendor-specific build still does not make the printer duplex-capable.
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 your source is a public URL and you mainly need a clean PDF or image before sending it to a duplex-capable printer, ScreenshotNeo can perform the capture through one HTTP request. It is not a replacement for the physical duplex setting: you still choose two-sided printing in the printer workflow. It can, however, avoid maintaining a browser-rendering setup and supports PDF capture.
ScreenshotNeo removes cookie-consent banners, newsletter popups, and chat widgets before the shot. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients.
cURL
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
For PDF output, use the PDF options documented at ScreenshotNeo’s API documentation and save the response with a PDF filename. The resulting file still goes through your normal duplex print step.
Python
import requests
r = requests.get(
"https://api.screenshotneo.com/v1/shot",
params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"},
timeout=90,
)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)
Node.js
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);
const fs = await import('node:fs/promises');
await fs.writeFile('shot.webp', Buffer.from(await res.arrayBuffer()));
The Free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 shots; every feature is included on every plan. Create a free ScreenshotNeo account when you want to try the capture workflow.
Outdated 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 matchWindows 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 reinstallOperational checklist
- Run the HTML-to-PDF command and record the wkhtmltopdf version.
- Confirm page size, orientation, margins, page count, and page breaks in the PDF viewer.
- Select the actual duplex-capable printer, not a generic or virtual printer.
- Choose two-sided mode and the correct binding edge.
- Print a short sample for a new printer, driver, paper size, or orientation.
- For manual duplex, follow the printer’s reload and page-range instructions exactly.
Bottom line
Use wkhtmltopdf to create a correctly sized and oriented PDF, then enable duplex at print time. There is no documented duplex command-line option in the wkhtmltopdf 0.12.6 manual, and the printer/driver—not the converter—determines whether two-sided pages are possible.
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.
Frequently Asked Questions
Can wkhtmltopdf add a blank page so every sheet has two printed sides?
It can create whatever page content your HTML and layout produce, but adding or omitting a blank page is a document-design decision. It does not enable the printer’s duplex mechanism.
Does landscape orientation disable duplex printing?
No. Landscape changes the PDF’s page geometry; whether duplex is available and how the reverse side rotates remains a printer and driver decision.
Should I use wkhtmltopdf’s –copies option for multiple physical sets?
No. Treat –copies as an output-PDF setting and set the number of physical sets in the print workflow.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitchesQuick Recap
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.

