Code Monkey home page Code Monkey logo

little-being-pdf's Introduction

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 ๐Ÿ˜…

little-being-pdf's People

Contributors

sndsgd avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.