Livecart-pdf-invoices is a project mainly written in PHP, it's free.
LiveCart module for saving invoices in PDF format
404: Not Found