The invention provides a method and a system for parallelly generating an OFD layout file of an electronic invoice. The method comprises the steps that the number of invoices in obtained original invoice data of electronic invoices is analyzed, the number of batches of electronic invoice OFD layout files needing to be generated is determined, a corresponding number of main threads are created for each batch, one electronic invoice is distributed to each main thread, the main threads recognize the electronic invoice data, and invoice types are determined; if the invoice is a list electronic invoice, the page number of the invoice is calculated and a sub-thread with the same page number is created, and a corresponding page of the list electronic invoice is processed in the sub-thread, and the processing result returns to the main thread, and an OFD layout file of the list electronic invoice is generated by the main thread; and after all the main threads are ended, the single-batch batch electronic invoice generation process is ended. According to the method and the system, batch parallel generation of the OFD layout files of the electronic invoices is realized, wherein the generation speed is improved, and the time cost is reduced.