0.0
No commit activity in last 3 years
No release in over 3 years
A mail merge for developers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.0.0
>= 0.0.0
>= 3.0.0
 Project Readme

Prince Merge

Generate multiple addressed PDFs with the excellent PrinceXML.

Usage

ruby prince_merge.rb addresses.csv mailrun.pdf

The first argument is a CSV containing the recipients. The CSV file needs a headers row and the bundled standard_envelope.haml template requires the following:

name
address_one
address_two
address_three
city
state
postal_code
country

The second argument is the file for output. There is also an optional third argument for specifying a different HAML template:

ruby prince_merge.rb addresses.csv mailrun.pdf letter.haml

TODO

  • Make and publish a gem with an executable +prince_merge+
  • Add some inline usage
  • Error handling

Contributors

Copyright

Copyright © 2010 Hugh Evans. See LICENSE for details.