I've used a setup like this previously. Works excellently: https://blog.risingstack.com/pdf-from-html-node-js-puppeteer/ Answer from AntiqueCurtains on reddit.com
🌐
ScreenSteps
help.screensteps.com › a › 562262-custom-css-recipes-for-pdf-templates
Custom CSS recipes for PDF templates | PDFs | ScreenSteps
Just copy and paste a recipe from this page into the Custom CSS field and click the Update button. ... By default images in a PDF document can be up to 4 inches tall.
🌐
Michael Thiessen
michaelnthiessen.com › create-beautiful-pdfs-with-html-css-and-markdown
Create Beautiful PDFs with HTML, CSS, and Markdown | Michael Thiessen
I built an easy-to-use tool that lets me use just HTML, CSS, and Markdown to create beautiful ebooks and PDFs. I wasted thousands of dollars hiring someone to format and layout a previous book, but it was a painful process.
🌐
Reddit
reddit.com › r/frontend › how to convert html + css to pdf
r/Frontend on Reddit: How to Convert HTML + CSS to PDF
July 22, 2020 -

Hello everybody,

I want to build a custom resume (CV) in HTML with CSS, but I want in the end to be able to also send it as a pdf file. Do you have any suggestions on how can I convert a HTML and CSS page to a PDF? I will respect the A4 page size when creating the HTML file.

Thanks in advance! Mihai

🌐
Parson-europe
parson-europe.com › en › knowledge-base › html-to-pdf-with-css-paged-media
Creating a PDF from HTML: Formatting files with CSS Paged Media
The command line tool renders HTML files to PDF using the Qt WebKit rendering engine. The project was started by Jakob Truelsen and is currently maintained by Ashish Kulkarni. Overall, the tested programs all offer good support for CSS Paged Media. Basic document formatting requirements can ...
🌐
ILovePDF3
ilovepdf3.com › home › free css to pdf
Free CSS To PDF - ILovePDF3
September 23, 2024 - This tool is designed to convert CSS files or manually entered CSS content into PDF format. The CSS TO PDF Tool process involves selecting a CSS file from your computer or entering CSS code directly into a text area.
🌐
Didoesdigital
didoesdigital.com › blog › print-styles
CSS Print Styles for PDFs and Printing · DiDoesDigital
To produce a PDF at a given size using a tool like weasyprint, you can create a CSS file just for that format e.g.:
🌐
Folge
folge.me › help › guide › custom-css.html
Folge.me Documentation - PDF Customization using custom CSS
This means that you can use custom CSS styles to customize final output, change font sizes, colors, backgrounds etc. To access this functionality open any guide, click Export -> PDF Document -> Custom CSS. Paste your CSS in the text area.
Find elsewhere
🌐
Oxygen XML
oxygenxml.com › events › 2017 › DITA_OT_Day › Using_CSS_to_style_the_PDF_output.pdf pdf
Using CSS to style the PDF output Presenter: Radu Coravu
XHTML + CSS = PDF · Advantages: ●CSS can be shared with web published content · ●Better support in PDF processors · Disadvantage: ●Less semantic meaning in HTML output · Copyright @ Syncro Soft, 2014. All rights reserved. Copyright @ Syncro Soft, 2014.
🌐
Prince
princexml.com
Prince - Convert HTML to PDF with CSS
Convert HTML documents to PDF. Beautiful printing with CSS. Support for JavaScript and SVG.
🌐
Picqer
picqer.com › en › support › articles › styling-picklists
Styling PDF Documents with CSS - Picqer Support
In Settings > Templates, you can specify CSS for each template. This is the style code to apply your own design to the PDFs. The PDF documents are first formatted in HTML, and from there the PDF is generated.
🌐
GitHub
github.com › Xportability › css-to-pdf
GitHub - Xportability/css-to-pdf: Convert any HTML page or region to PDF - supports CSS, SVG, embedded XML objects, and more..
This plugin computes the CSS style for each element within the selected print container(s), including all internal, external, and print media CSS rules puts the style directly on the element. The "computed" html source is then sent to the @cloudformatter XEPOnline rendering engine. @cloudformatter is capable of receiving any XML document with an embedded XSL Stylesheet reference for formatting. The rendering engine translates the "computed" XHTML3 source to XSL-FO4 and then Renders the PDF.
Starred by 209 users
Forked by 74 users
Languages   JavaScript 100.0% | JavaScript 100.0%
🌐
Medium
medium.com › graymatrix › generating-printable-pdf-files-from-html-css-page-ec31c47802db
Generating printable PDF files from HTML/CSS page | by Bhavika Patel | Gray Matrix | Medium
November 27, 2020 - use formatting tags like <u> <b> etc · avoid inline css · avoid advance / css 3 properties · Few essential css to consider :- THE @PAGE RULE · The @page rule is to specify aspects of a page box.
🌐
Smashing Magazine
smashingmagazine.com › 2015 › 01 › designing-for-print-with-css
Designing For Print With CSS — Smashing Magazine
I’ve chosen this book because I like cats and because it has images and footnotes that I can use to demonstrate formatting. You can find the files I am using, plus a generated PDF, over on GitHub. If you want to experiment with the CSS and build the book yourself, then you will need to download and install Prince.
🌐
IronPDF
ironpdf.com › how-tos › css (screen & print)
Convert HTML to PDF with Responsive CSS in C# | IronPDF
Specify CSS media type for optimal PDF formatting · Set CSS media type 'Print' for repeated table headers in PDFs · Configure viewport dimensions for responsive design · IronPDF generates PDFs from HTML in C# and can render a screen stylesheet to PDF by default.
Published   January 11, 2026
🌐
GitHub
github.com › quarto-dev › quarto-cli › discussions › 2538
Is it possible to manipulate the css of PDF files using wkhtmltopdf? · quarto-dev/quarto-cli · Discussion #2538
--- title: "Test PDF report" author: "James Goldie" format: pdf: css: my-paged-pdf-styles.css pdf-engine: weasyprint ---
Author   quarto-dev
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › how-to-add-html-and-css-into-pdf
How to Add HTML and CSS into PDF ? - GeeksforGeeks
Programming libraries: To convert HTML and CSS to PDF format on the fly, developers can utilize inbuilt libraries.
Published   July 23, 2025