generating avery labels?

webengr - May 8, 2007 - 18:47

Has anyone already done a module that would take data like from profiles or an addressbook
then generate a PDF that could be dumped to LABELs, like Avery labels?

Of interest, here is some php class that may could be used:
http://www.fpdf.org/en/script/script29.php

look at CiviCRM

pwolanin - May 8, 2007 - 20:19

CiviCRM uses fpdf (or a derivative) to make Avery labels. You could probably reuse much of that code.

On the other hand, it may be easier to output your data in CVS (or XML) format and then use a word processor to do a mail merge. e.g.:

http://documentation.openoffice.org/HOW_TO/word_processing/writer2_EN.html

I decided for my needs (occasional mailing) that would be much simpler. That's why this module of mine only does CSV export: http://drupal.org/project/member

Re: look at CiviCRM

grsingleton - May 10, 2007 - 14:35

=> pwolanin Your CVS export module is not available on your page. Could you please put it back so it can be reviewed.

no relase

pwolanin - May 10, 2007 - 17:25

I haven't made a release- you can get it via a CVS client or here: http://cvs.drupal.org/viewcvs/drupal/contributions/modules/member/

look at the functions around function member_export_form()

Note, the .csv export is only a minor component of the whole module, and much of that code came from the importexport module.

Great idea

Zayphod - November 4, 2007 - 05:33

pwolanin,
I was looking for a way to send snail mail to my members. Thanks for the idea of exporting as CSV.

www.fatrac.org

 
 

Drupal is a registered trademark of Dries Buytaert.