Why all this trouble? The invoices doesn't need to exists in file format, they can be generated on demand using data from the database as requested.
I have a company and I need to issue invoices and register them in a system from my country to pay the taxes. Instead of issuing one invoice to...