A tool to create a PDF to announce the arrival of a little being. The idea for this was shamelessly ripped from my brother Francis Barnhart, who started doing this years ago.
- Install Docker
- Clone this repo
- Run
make build
- Create a copy of the
example
directory - Replace the image with your own
- Update the contents of the
info.yaml
file as you see fit - Run
make pdf WHOMST=example
, replacingexample
with your directory - Open the PDF created in your directory
key | type | description |
---|---|---|
title | string | The title of the generated PDF |
height | number | The page height of the generated PDF in inches* |
width | number | The page width of the generated PDF in inches* |
fontUrl | string | A url to include for loading a custom font |
css | string | Any custom CSS styles to include before rendering |
pages | Page[] | A list of pages |
* wkhtmltopdf
doesn't appear to be able to handle page sizes in mm without artifacts that affect full bleed images
- Improve validation error messages for
info.yaml
- Add page type documentation
- Improve how CSS is used
- Have time to make these updates 😅