Specifically, I need some script I can pass basic information to and have it generate a PDF to be printed on a #10 envelope, and in addition it needs to interpret the zip code and generate a valid intelligent mail barcode.
Does any such thing exist (open source preferably)? I set out to code this myself. I made some progress and successfully made envelope sized PDFs using the excellent FPDF library, but I figured I'd stop re-inventing the wheel if something similar existed.