Create envelopes from vCards, with optional editing of addresses and custom envelope layout.
Be able to print custom envelopes for Christmas greetings, that would allow
- Simple editing of addresses before printing (without changing the underlying vCard) e.g. instead of naming one adult we might want to say the "The XYZ family". vCards can be exported from Apples Contacts app.
- Add some graphics etc to the envelope in addition to addresses.
- Install dependencies
yarn install/npm install
. - Export the vCards from for your contacts.
- Extract addresses from vCards with
node index.js import-cards your_vCards.vcf addresses.json
- Edit addresses.json file (if wanted). For example change singular persons to "The XYZ Family" or similar.
- Create PDFs of the envelopes with
node index.js create-prints addresses.json envelopes.pdf
- You'll likely want to edit the
template.sample.html
used or duplicate it and use the--template <template-name>
option when runningcreate-prints
. Then re-run the previous step until satisfied. You can also open thetemplate.*.html
file directly in Chrome while working on it. - Once satisfied print the PDFs onto envelopes.