Skip to content

A tool to create a PDF to announce the arrival of a little being

License

Notifications You must be signed in to change notification settings

sndsgd/little-being-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sndsgd/little-being-pdf

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.

Setup

  1. Install Docker
  2. Clone this repo
  3. Run make build

Usage

  1. Create a copy of the example directory
  2. Replace the image with your own
  3. Update the contents of the info.yaml file as you see fit
  4. Run make pdf WHOMST=example, replacing example with your directory
  5. Open the PDF created in your directory

Partial Specification for info.yaml

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

TODO

  1. Improve validation error messages for info.yaml
  2. Add page type documentation
  3. Improve how CSS is used
  4. Have time to make these updates 😅

About

A tool to create a PDF to announce the arrival of a little being

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published