Open a document and make the first PDF

A self-contained HTML file is the easiest starting point. If your document has a separate images folder, use “폴더에서 열기” (open from a folder) to select the document and its images together. Resolve image warnings before converting.

The sample report below needs no separate image folder. Download it, upload it to the tool, and try changing its title before exporting.

  1. Open the HTML-to-PDF tool and choose “PDF로 변환할 파일 선택” (select a file to convert). Pick an .html or .htm file.
  2. Select PDF in “문서 내보내기” (export document). Close this dialog to inspect or edit the document; “내보내기” opens it again.
  3. Start with a 1200px viewport, A4 portrait, 12mm margins and “화면에서 보이는 스타일” (screen styles).
  4. Choose “변환하기” (convert), then download the result. Check the last page and the places where tables cross page boundaries.

Paper size and viewport width control different things

Paper size sets the PDF page dimensions. “화면 너비” (viewport width) controls the layout used to render the HTML. A responsive page may switch to its mobile layout at 390px even when the output paper is A4. Fitting a wider layout onto paper can make text smaller.

For a wide table, try “가로” (landscape) first. If the result is still hard to read, split the table or remove unnecessary columns. Changing the viewport cannot make every fixed-width document responsive.

DocumentStarting settingsCheck in the PDF
Report or proposalA4 portrait · 1200px · 12mm marginsBody text and table readability
Wide table or dashboardA4 landscape · 1200px or 1440pxRightmost columns and chart legends
Mobile information page390px · screen stylesLine wrapping and stacked sections
Excessive whitespaceCompare with no PDF margins, then adjust document paddingContent is not pressed against the paper edge

Choose screen styles or print styles

Use “화면에서 보이는 스타일” (screen styles) to start from the on-screen appearance. Choose “인쇄 전용 스타일” (print styles) when your document includes @media print rules, such as hiding navigation or simplifying a table for paper.

If backgrounds disappear, check “배경색과 이미지 포함” (include background colors and images). This controls backgrounds already present in the document. It cannot recover a missing external image.

Keep a card or table row together

Try landscape and smaller margins before changing code. For more control, add the CSS below inside the document’s style element. Replace report-card with your own card class. Add page-start to a section that should begin on a new page.

These rules are inside @media print, so select print styles when exporting. A card taller than a whole page still needs to be split or shortened; break-inside: avoid cannot make it fit.

Example CSS for the HTML document’s <style> element
@media print {
  .report-card,
  tr {
    break-inside: avoid;
  }

  .page-start {
    break-before: page;
  }
}

Inspect the result and keep an editable copy

Open the downloaded PDF and check headings, non-Latin text, the rightmost table column, charts, images and the last page. Rendering uses Chromium on the server. Fonts installed only on your Mac and line wrapping seen in Safari may differ in the result.

External scripts, stylesheets, fonts and API requests are not fetched during conversion. A chart that requires an external library or authenticated data needs a self-contained implementation or a static image before exporting.

After editing the HTML, convert it again to include your changes. An existing result with identical content and settings can be downloaded again while it remains available in the same tab. Also choose HTML in the export dialog to keep an editable source file.

Frequently asked questions

Does this eliminate every problem with browser Print to PDF?

No. It provides paper, viewport and style settings in one export dialog, but still uses browser rendering. Fixed-size elements and problematic page-break rules in the source may need adjustment. Always inspect important exports.

Can I turn the PDF back into an editable HTML document?

PDF-to-HTML conversion and PDF editing are not available in this tool. Download the HTML source as well if you expect to revise the document later.

Can I merge several HTML files into one PDF?

The tool converts one HTML document at a time. Batch conversion and PDF merging are not available. Convert each file separately or combine the source content into one HTML document first.

References

HTML to PDFOpen tool