Project

postdoc

0.0
Low commit activity in last 3 years
No release in over a year
Description of Postdoc.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 4.0.0, < 7.1
 Project Readme

Welcome to Postdoc.

This gem was build to convert HTML data into PDF documents. This is handy because Rails is much better at building HTML document than at building PDF documents.

Usage

Add the following line to your gemfile

gem 'postdoc'

And install it

bundle install

Now you can render a pdf from a string that contains the data from a HTML file in the following way:

Handy links:

Handy commands:

  # Run tests.
  rake test

  # Generate a test pdf. Usefull for debugging purposes.
  bin/run_with_website

Known issues:

For Mac users with an No such file or directory - chrome exception, use the following command from the root folder of this repository.

cp bin/chrome /usr/local/bin/chrome

TODO

Refactor all instances of string to stringIO for better future interop with files.