printpdf is a MIT-licensed Rust library for generating PDF files. Since it supports both WASM and creating PDF files from an HTML-ish syntax (to create reports, layout books, etc.), this demo is a playground to debug layout issues. The CSS / XML / DOM handling and layouting is handled by azul-layout, so it will have some quirks.

SYNTAX 

GITHUB 

OK: PDF rendered in 25 millis. (size = 9.5 KB)
File name:

-

File size:

-

Title:

-

Author:

-

Subject:

-

Keywords:

-

Creation Date:

-

Modification Date:

-

Creator:

-

PDF Producer:

-

PDF Version:

-

Page Count:

-

Page Size:

-

Fast Web View:

-

Choose an option Alt text (alternative text) helps when people can’t see the image or when it doesn’t load.
Aim for 1-2 sentences that describe the subject, setting, or actions.
This is used for ornamental images, like borders or watermarks.
Edit alt text (image description)
Short description for people who can’t see the image or when the image doesn’t load.
This alt text was created automatically and may be inaccurate. Learn more
Couldn’t create alt text automatically Please write your own alt text or try again later.
Image alt text settings
Automatic alt text
Suggests descriptions to help people who can’t see the image or when the image doesn’t load. Learn more
Alt text AI model (180MB)
Runs locally on your device so your data stays private. Required for automatic alt text.
Alt text editor
Helps you make sure all your images have alt text.
Preparing document for printing…
0%