What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
To convert two-column HTML to PDF, render it with a browser or HTML-to-PDF engine using a print stylesheet, set the page size and margins deliberately, and inspect the resulting PDF. First identify what “two-column” means: continuous text flowing between columns needs different layout rules from two independent panels sitting side by side.
Choose the right kind of two-column layout
Before changing CSS, determine how the content is arranged. A conversion can preserve a browser layout only if its print rules and the renderer handle that layout as intended.
Continuous text columns
CSS multi-column layout divides a text flow into columns. Properties such as column-count, column-width, and column-gap describe the arrangement. For example, column-count: 2 asks for two columns, while the gap controls the space between them. WeasyPrint documents support for simple multicolumn layouts, but also notes limitations involving constrained-height layouts, spanning, some column breaks, and pagination or overflow. Test the actual content rather than assuming every column arrangement will paginate as desired.
Independent side-by-side panels
A grid or flex layout may place two separate panels next to each other. That is not the same as flowing one text stream through columns. For PDF, establish the printable width, make sure both panels fit, and decide what should happen when either panel continues onto another page. Browser PDF documentation describes print media and page options, but does not guarantee identical results for every combination of layout rules.
#1 Best Overall
- PORTABLE SCANNER FOR USE ON-THE-GO — The fastest and lightest mobile single-sheet-fed compact document scanner in its class¹
- QUICK DOCUMENT SCANNING ― This Epson ultra-fast scanner scans a single page as quickly as 5.5 seconds²; Windows and Mac compatible
- VERSATILE PAPER HANDLING ― Portable scanner scans documents up to 8.5 x 72 in; Also easily digitizes receipts and ID cards to make accounting, bookkeeping, and organizing simpler
- INTUITIVE, HIGH-SPEED SOFTWARE — Epson ScanSmart Software³ is a smart tool allowing you to easily scan, review, and save; Stay organized easily with the help of this Epson scanner
- EASY SETUP — USB-powered connect to your computer for quick and simple scanning; No batteries or external power supply required to operate portable document scanner; Standard Connectivity: USB 2.0
Prepare the HTML and print CSS
Give the PDF a deliberate print layout instead of relying on the browser’s screen defaults. Add or adjust a print stylesheet and define the intended page dimensions and margins. CSS @page can set page size and margins; the PDF renderer may also expose corresponding options.
@page {
size: A4;
margin: 18mm;
}
@media print {
.two-column-text {
column-count: 2;
column-gap: 12mm;
}
.two-panel-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12mm;
}
/* Apply only if exact screen colors are required in print. */
html {
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
}
Use the selector matching your real layout; the two examples are alternatives, not rules to apply simultaneously. Check that the column or panel widths fit within the page’s content area after margins are taken out. If content must break at a particular point, use appropriate print break rules and verify the result: multicolumn breaks and page breaks can interact in engine-specific ways.
Browser PDF APIs generally use print media by default, so styles inside @media print normally govern output. If the goal is specifically to reproduce the screen appearance, explicitly emulate screen media before creating the PDF. Do not switch media just because the print result differs: decide which appearance the document is supposed to have.
Convert with Playwright
Playwright’s page PDF operation uses print styling by default. Its PDF options include paper formats, margins, background printing, and an option to prefer the CSS page size. The following Node.js example assumes Playwright is installed in the project and the HTML is available locally.
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 glitchesRank #2
- FAST SPEEDS - Scans color and black and white documents a blazing speed up to 16ppm (1). Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
- ULTRA COMPACT – At less than 1 foot in length and only about 1. 5lbs in weight you can fit this device virtually anywhere (a bag, a purse, even a pocket).
- READY WHENEVER YOU ARE – The DS-640 mobile scanner is powered via an included micro USB 3. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan.
- WORKS YOUR WAY – Use the Brother free iPrint&Scan desktop app for scanning to multiple “Scan-to” destinations like PC, Network, cloud services, Email and OCR. (2) Supports Windows, Mac and Linux and TWAIN/WIA for PC/ICA for Mac/SANE drivers. (3)
- OPTIMIZE IMAGES AND TEXT – Automatic color detection/adjustment, image rotation (PC only), bleed through prevention/background removal, text enhancement, color drop to enhance scans. Software suite includes document management and OCR software. (4)
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
try {
const page = await browser.newPage();
await page.goto('file:///absolute/path/to/two-column.html', {
waitUntil: 'networkidle'
});
await page.pdf({
path: 'two-column.pdf',
format: 'A4',
printBackground: true,
preferCSSPageSize: true,
margin: {
top: '18mm',
right: '18mm',
bottom: '18mm',
left: '18mm'
}
});
} finally {
await browser.close();
}
})();
Replace the file URL with an absolute path to your HTML file, or navigate to an appropriate HTTP or HTTPS URL. If the CSS @page size should control the paper dimensions, keep preferCSSPageSize enabled. Otherwise, choose the renderer’s paper format intentionally. Avoid assuming the default paper format or margins suit your document.
Using Puppeteer instead
Puppeteer also provides browser-based PDF generation, with print media as the default. A minimal equivalent is:
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
try {
const page = await browser.newPage();
await page.goto('file:///absolute/path/to/two-column.html', {
waitUntil: 'networkidle0'
});
await page.pdf({
path: 'two-column.pdf',
format: 'A4',
printBackground: true,
margin: {
top: '18mm',
right: '18mm',
bottom: '18mm',
left: '18mm'
}
});
} finally {
await browser.close();
}
})();
For either library, verify the option names and behavior against the version installed in your project. If you want screen styling rather than print styling, use that library’s screen-media emulation before calling its PDF method.
Other conversion paths
WeasyPrint
WeasyPrint is an HTML/CSS-to-PDF option when its paged-media features suit the document. Its documentation covers PDF hyperlinks, bookmarks, attachments, forms, page rules, and simple multicolumn support. Review its documented limitations against your stylesheet, especially if the layout uses fixed heights, spanning content, complex breaks, or overflow-sensitive columns.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Rank #3
- FAST DOCUMENT SCANNING — Document scanner with feeder allows you to speed through stacks with a 50-sheet Auto Document Feeder (ADF); Efficient office scanner to help you scan more productively
- INTUITIVE, HIGH-SPEED SOFTWARE — Quickly scan with this desktop document scanner; Epson ScanSmart Software lets you easily preview scans, email files, upload to the cloud, and more; Plus, automatic file naming saves even more time
- SEAMLESS INTEGRATION — Easily incorporate your data into most document management software with the included TWAIN driver; Office document scanner integrates seamlessly with business workflows
- EASY SHARING — Duplex scanner allows you to scan straight to email or popular cloud storage2 services like Dropbox, Evernote, Google Drive, and OneDrive for simple storage and sharing
- SIMPLE FILE MANAGEMENT — Scanner allows the creation of searchable PDFs with Optical Character Recognition (OCR) and convert scans to editable Word or Excel files effortlessly; Designed for home and office document scanning
Browser print dialog
For a one-off conversion, open the page in a browser and use its print dialog to save as PDF. Check paper size, margins, scale, background graphics, and headers or footers before saving. Browser print settings change the output; browser-generated page-margin content can also appear when space permits, and Chrome’s print dialog can disable it.
Choose among these routes based on whether the page needs JavaScript or browser rendering, which CSS features it uses, whether print or screen media is desired, how precisely page size and backgrounds must be controlled, and whether pagination is acceptable. The available documentation does not establish a universal performance winner or a complete cross-engine compatibility matrix.
Inspect the generated PDF
Open the actual PDF at its intended paper size. A successful file creation does not prove the columns are readable or that the content fits.
- Check that text and panels fit within the printable width and are not clipped.
- Look for unexpected column widths, awkward gaps, overflow, and content that crosses a page or column boundary badly.
- Verify that fonts and images loaded before capture; a page that printed before those resources finished loading may look incomplete.
- Check page breaks, especially around long content, tables, fixed-height sections, and mixed column and page-break rules.
- Compare colors and backgrounds with the intended result; print defaults may alter colors unless color adjustment is configured and backgrounds are enabled in the renderer.
Chrome added support for generated content in page-margin boxes in version 131, announced October 30, 2024. That feature can be used for items such as page numbers in those margins, but do not depend on it in environments running older Chrome versions.
Rank #4
- Scanner type: Document
- Connectivity technology: USB
- With Auto Scan Mode, the scanner automatically detects what you're scanning
- Digitize documents and images
Troubleshooting common conversion problems
The PDF has one column or the wrong layout
Check whether the layout rules are inside @media print while the renderer is using print media. If the PDF should match the screen, enable screen emulation deliberately. Also confirm that the selected CSS targets the actual text container or panel wrapper rather than an unrelated parent.
Content is cut off or too wide
Recheck page size and margins, then calculate the space remaining for content. Two panels that fit in a wide browser window may not fit on the chosen paper. Reduce gaps or panel widths, select an appropriate page size, or revise the print layout; inspect again at the target size.
Columns or page breaks look awkward
Text columns and page fragmentation do not always combine cleanly. Simplify constrained-height or spanning layouts where possible, review break rules, and test with representative long content. If the design depends on complex multicolumn behavior, compare the output in the renderer you plan to use rather than assuming support transfers exactly from another engine.
Backgrounds or colors are missing
Enable background printing in the PDF options or print dialog. If exact colors are important, apply the documented color-adjust property and verify it in the output; color-adjust rules do not replace the renderer’s background-printing setting.
Best Value
- OUR MOST ADVANCED SCANSNAP. Large touchscreen, fast 45ppm double-sided scanning, 100-sheet document feeder, Wi-Fi and USB connectivity, automatic optimizations, and support for cloud services. Upgraded replacement for the discontinued iX1600
- CUSTOMIZABLE. SHARABLE. Select personalized profiles from the touchscreen. Send to PC, Mac, mobile devices, and clouds. QUICK MENU lets you quickly scan-drag-drop to your favorite computer apps
- STABLE WIRELESS OR USB CONNECTION. Built-in Wi-Fi 6 for the fastest and most secure scanning. Connect to smart devices or cloud services without a computer. USB-C connection also available
- PHOTO AND DOCUMENT ORGANIZATION MADE EFFORTLESS. Easily manage, edit, and use scanned data from documents, receipts, photos, and business cards. Automatically optimize, name, and sort files
- AVOIDS PAPER JAMS AND DAMAGE. Features a brake roller system to feed paper smoothly, a multi-feed sensor that detects pages stuck together, and skew detection to prevent paper damage and data loss
Fonts or images are absent
Make sure the page has finished loading required resources before calling the PDF operation. Confirm that local file references and remote resources are accessible in the environment running the browser, then regenerate and inspect the PDF.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server. It can return a screenshot or PDF from a URL, but the supplied API example below requests an image; it is not a replacement for the Playwright or Puppeteer PDF workflows above when you need to control PDF paper size, margins, or pagination. The API’s parameter options for choosing PDF output are not specified here, so this example does not claim to create a PDF.
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 documentation for its API and setup. ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are never billed; and an MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up for free.
Frequently Asked Questions
Can I convert an HTML file stored on my computer?
Yes. With browser automation, navigate to the file using an absolute file URL such as file:///absolute/path/to/two-column.html, subject to the environment’s file-access rules.
Will the PDF have selectable text?
Browser and HTML-to-PDF workflows render a document to PDF, but the cited documentation does not establish text-selection behavior for every page or renderer configuration. Check the generated file for your use case.
Quick 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.

