Kailing Technology

How can the three source files of invoice PDF, OFD and XML be directly archived into electronic accounting archives? | Kailing Technology AI electronic accounting archives solution

Product News2026-12-01Kailing Technology · Business-Finance-Tax Solution Team
How can the three source files of invoice PDF, OFD and XML be directly archived into electronic accounting archives? | Kailing Technology AI electronic accounting archives solution

Since the spread of fully digitalized e-invoices, finance staff have more invoice files on hand: the same invoice may exist in PDF, OFD, and XML formats. Some save only the PDF, some save all three, and some simply print it out and paste it behind the voucher. Which one should be archived? Can it be archived directly without printing? This article first explains the role of each of the three files, then, in accordance with the requirements of the Notice on Standardizing the Reimbursement, Booking, and Archiving of Electronic Accounting Vouchers (Cai Kuai [2020] No. 6), explains the process for archiving invoice source files directly into electronic accounting archives, as well as how the Kailing Technology AI electronic accounting archives solution handles the collection, verification, association, and inspection steps.

-6097 4119

▍I. Three types of files and what each handles

PDF, OFD, and XML are not three "copies" of the same invoice; they serve different purposes.

Once the division of labor among the three files is understood, archiving will not neglect one for the other: XML ensures data can be verified, and layout files ensure readability.

Simply put, PDF and OFD are responsible for viewing, and XML is responsible for use. For fully digitalized e-invoices, according to the publicly stated position of tax authorities, the XML file with a digital signature should be retained for booking and archiving; PDF and OFD are mainly for reading and printing and should not alone replace XML as archive files. For other types of electronic invoices, the actually obtained electronic invoice files and their metadata should be saved, and readability and verification should be ensured. Digital signatures are used to verify the source of files and whether content has been altered; after archiving, integrity verification should also be performed to ensure no tampering during long-term preservation.

▍II. Why source files should be archived instead of printouts

Cai Kuai [2020] No. 6 clarifies that if a unit uses paper printouts of electronic accounting vouchers as the basis for reimbursement, booking, and archiving, it must simultaneously save the electronic accounting vouchers from which the paper copies were printed. Specific requirements for booking electronic vouchers may also refer to the Electronic Voucher Booking Requirements series of national standards (GB/T 44554). That is, printouts cannot replace electronic source files; and where conditions are met, electronic accounting vouchers may be reimbursed, booked, and archived solely in electronic form without printing.

If only screenshots or only printed copies are stored, once verification requires validating the authenticity of the invoice or reading the invoice face data, there is no way to provide the source file. Therefore, the first principle of invoice archiving is to collect the source files completely into the archive system.

▍III. Where source files come from: four common entry points

The sources of invoice source files are scattered, and the archiving system must be able to collect from multiple entry points.

Where source files come from: four common entry points

Four entry points for invoice source files

In Kailing Technology's solution, in the expense control and reimbursement step, scanning the code retrieves the PDF, OFD, and XML source files from the electronic tax bureau; after reimbursement is completed, the source files enter the archives together with the reimbursement form; source files from other entry points are synchronized separately by source, recording the additions and failures of each synchronization.

Where source files come from: four common entry points

Kailing Technology archive collection: synchronized records from multiple sources

▍IV. Five steps for direct archiving

After source files enter the archive system, archiving is completed through the following five steps.

1. Identification and parsing

The system identifies file formats and reads structured fields from XML; when only layout files exist, AI OCR extracts key information from the invoice face to uniformly form invoice metadata.

2. Verification and deduplication

Verify status by invoice number and other information, identifying voided and red-flushed invoices; merge multiple formats of the same invoice into one archive record to avoid duplicate archiving.

3. Association with vouchers

Link invoices to the corresponding accounting vouchers by association rules such as reimbursement number, payment number, amount, and date, forming a correspondence between vouchers and attachments.

4. Four-property testing

Check whether files can be read normally, whether metadata is complete, whether check values are consistent, and whether storage and permissions meet requirements; those that fail enter the exception pool with the reason stated.

Four-property detection

Kailing Technology four-property check: anomaly reasons listed one by one

5. File assembly and storage

Materials that pass inspection are filed into the repository together with vouchers according to archive number rules and enter retention period management.

▍V. Three common questions

First, what if a fully digitalized e-invoice has only a PDF and no XML. It is recommended to retrieve the XML file with a digital signature through the tax digital account or by scanning the code, and archive it together with the PDF; if it cannot be obtained temporarily, first save the PDF and have the system extract metadata, mark it as pending supplementation, and supplement it promptly.

Second, the same invoice has been uploaded several times by different people. The system deduplicates by invoice number, so the same invoice forms only one archive record, and multiple files are stored as different formats of the same archive.

Third, the invoice has already been printed and pasted behind a paper voucher. Printed paper copies cannot replace electronic source files; the corresponding electronic invoice should be retrieved and supplemented for archiving; for future reimbursements, it is recommended to collect source files directly and no longer print.

"Printouts are only shadows; the source file is the evidence."

Fourth, cross-year invoices. Invoices obtained in the previous year and reimbursed and booked in the current year are archived with the booking voucher into the current year; the archive records both the invoice issuance date and the booking date, and both dates can be searched.

▍After archiving: how to use invoice archives

After invoice source files are archived, their use goes beyond storage. First, retrieval and review: during audits or verification, search by invoice number, seller, amount and date, and see which voucher it is attached to; second, statistical analysis: based on the structured fields in XML, count input situations by seller, tax rate and invoice type; third, expiry management: invoices are managed together with vouchers according to the retention period, and enter the appraisal process upon expiry.

Note that the retention period of invoice archives is determined by the accounting vouchers to which they belong. When configuring retention periods, enterprises should follow the schedule and entity rules attached to the Measures for the Management of Accounting Archives, and do not need to set a separate retention period for invoices.

▍VI. What AI does in invoice archiving

In invoice archiving, AI mainly undertakes three types of work: first, recognition, extracting fields from scanned copies and invoices that only have layout files; second, matching, recommending possible corresponding vouchers by amount, date, seller and other information when the document number is missing or inconsistent, for manual confirmation; third, retrieval, supporting natural language search for invoices after archiving, for example "special invoices issued by a certain seller in a certain month".

AI provides auxiliary results; the associations are ultimately confirmed by finance, ensuring that every correspondence in the archive can withstand verification.

▍FAQ

Q: Must PDF, OFD, and XML all be saved when archiving fully digitalized e-invoices?

A: According to the publicly stated position of the tax authorities, fully digitalized e-invoices should retain the XML file with a digital signature as the archival file; PDF and OFD may be saved together for reading and printing.

Q: Is it acceptable to print invoices and then archive them?

A: If paper printouts are used for booking and archiving, the corresponding electronic source files must be saved at the same time; when conditions are met, archiving may be electronic only, with no printing.

Q: Can an XML file prove that an invoice is genuine?

A: The fully digitalized e-invoice XML carries a digital signature, which can be used to verify whether the source and content have been altered; after archiving, an integrity check is also required, and the invoice status can be verified as needed.

Q: Will multiple formats of the same invoice be archived repeatedly?

A: The Kailing Technology system deduplicates by invoice number, and multiple formats are saved as the same archive record.

To have invoice source files go directly into the archives without printing, learn about Kailing Technology's AI electronic accounting archives solution: https://www.kailingteck.com/eaa/ .

As a national high-tech enterprise, Kailing Technology focuses on the digital and intelligent transformation of enterprise business-finance-tax and operations management, providing software products, system integration, implementation and delivery, and operational services for various government agencies, institutions, group enterprises, and SMEs.

The company has now formed ten core product lines, including: AI digital employee system, enterprise expense control management system, customer relationship management system, reverse invoicing management system, invoice issuance for individuals management system, electronic archives management system, tax fully digitalized e-invoice Leqi system, tax invoice management system, group tax filing system, and AI OCR recognition system. It is committed to connecting enterprise business, finance, tax, funds, and archive data to help customers improve operational efficiency, business-finance-tax compliance capabilities, and digital management levels.

If you have any business-finance-tax digital transformation needs, welcome to contact us. Beijing Kailing Technology will serve you wholeheartedly.

If you have any business-finance-tax digital transformation needs, welcome to contact us. Beijing Kailing Technology will serve you wholeheartedly.

Keywords: Invoice PDF OFD XML archiving, fully digitalized e-invoice source file archiving, XML invoice archiving, OFD invoice archiving, electronic invoice archiving requirements, Kailing Technology AI electronic accounting archives solution

About Kailing Technology
As a comprehensive business-finance-tax digitalization solution service provider, Kailing Technology provides business-finance-tax management digital transformation products and operational services for various government agencies, institutions, and large, medium, and small enterprises. The product line includes: solutions for sales contract management system, procurement contract management system, fully digitalized Leqi interface project, automatic output invoicing system, reverse invoicing system, invoice issuance for individuals system, employee expense control and reimbursement system, input VAT invoice management system, supply chain collaborative reconciliation system, image AI OCR recognition system, automatic financial bookkeeping system, electronic accounting archives system, etc., comprehensively driving the digitalization process across various fields.
Consultation Hotline: 18513895936 / 010-60974119 Location: Beijing
Common Questions
Should fully digitalized e-invoices be archived as PDF, OFD, or XML?
According to the publicly stated position of the tax authorities, fully digitalized e-invoices should be archived with the digitally signed XML file; PDF and OFD are mainly for reading and printing and should not alone replace XML as archive files. XML records structured fields for easy verification and statistics, while layout files ensure readability; the two have different roles.
Is it acceptable to print the invoice and paste it behind the voucher for archiving?
No. Caihui [2020] No. 6 stipulates that if paper printouts are used as the basis for reimbursement, booking, and archiving, the corresponding electronic accounting vouchers must be saved at the same time. When conditions are met, archiving may be electronic only, with no printing. Printouts are only shadows; the source file is the evidence.
If the same invoice is uploaded by multiple people and also has multiple formats such as PDF and OFD, will it be archived repeatedly?
No. The system verifies and deduplicates by invoice number and other information; multiple formats of the same invoice are merged into one archive record, and multiple files are saved as different formats of the same archive to avoid duplicate filing.
What if a fully digitalized e-invoice has only a PDF and no XML?
It is recommended to retrieve the digitally signed XML file through the tax digital account or by scanning the code, and archive it together with the PDF; if it cannot be obtained temporarily, save the PDF first and have the system extract metadata, mark it as pending supplementation, and complete it promptly.
How can invoice source files be used after archiving?
Search and review by invoice number, seller, amount and date, and see which voucher it is attached to; count input by seller, tax rate and invoice type based on XML structured fields; invoices are managed with vouchers according to the retention period and enter the appraisal process upon expiry.
Related solutions
Electronic Accounting Archive Management
Electronic voucher archiving, single-set system, compliant and auditable →
Enterprise expense control and reimbursement system
Intelligent reimbursement, compliance control, one-click bookkeeping →
Leqi Direct Connection solution
Direct connection to the tax bureau's Leqi channel, connecting the last mile of ERP →
Telephone consultationBook a Demo
✕
Home ›AI digital employee ›Core products ›Customer Stories ›Insights ›Book a Demo
010-60974119