Financial reimbursement receipt printing method and system, electronic equipment and medium
By recognizing and automatically converting electronic invoices and attachments in various formats, a print task queue is generated, solving the problem of handling diverse formats in enterprise reimbursement systems, enabling batch printing and ensuring document integrity, and improving financial audit efficiency and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING HESI HUIZHI INFORMATION TECHNOLOGY CO LTD
- Filing Date
- 2026-02-04
- Publication Date
- 2026-05-19
AI Technical Summary
Existing corporate expense reimbursement systems cannot effectively handle diverse attachment formats, requiring employees to manually convert formats, increasing operational complexity, affecting financial audit efficiency, and failing to achieve batch printing and synchronous output, posing a risk of formatting errors and content loss.
This invention provides a method and system for printing financial reimbursement documents. By recognizing electronic invoices and attachments in various formats, it automatically converts them to the target format (PDF), generates a print task queue, and supports batch printing. Combined with original file retention and format conversion logs, it ensures the integrity of printed content and business traceability.
It enables automatic conversion and batch printing of multiple file formats, reducing manual operations by employees, improving printing efficiency, ensuring the integrity and traceability of printed content, and enhancing the efficiency of financial auditing and user experience.
Smart Images

Figure CN122064306A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of invoice processing technology, and in particular to a method, system, electronic device, and medium for printing financial reimbursement documents. Background Technology
[0002] During the digital transformation of corporate financial reimbursement, employee expense reports often require electronic invoices and various formats of attachments, making printing and archiving a crucial step in financial review. While most current corporate reimbursement systems support printing electronic invoices and attachments, the increasing variety of attachment formats uploaded by employees, coupled with the diversification of business scenarios, renders existing printing functions inadequate for actual business needs, causing significant inconvenience for both employee reimbursement and financial review processes. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a method, system, electronic device and medium for printing financial reimbursement documents, which can support the printing of multiple file formats and the batch printing of reimbursement documents, thereby improving printing efficiency.
[0004] To achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows: In a first aspect, embodiments of the present invention provide a method for printing financial reimbursement documents, comprising: acquiring at least one reimbursement document to be printed and an electronic invoice and / or attachment file associated with the reimbursement document, and identifying the format of the electronic invoice and / or attachment file; if the electronic invoice and / or attachment file is not in the target format, converting the electronic invoice and / or attachment file into the target format based on a preset format adaptation algorithm; generating a print task queue based on the reimbursement document and the electronic invoice and / or attachment file in the target format, and printing the reimbursement document and the electronic invoice and / or attachment file in the target format based on the print task queue.
[0005] Optionally, at least one expense report to be printed can be obtained, including: obtaining a print request initiated by the user, and based on the print request, obtaining at least one expense report and metadata of the electronic invoice and attachment files associated with the expense report.
[0006] Optionally, the formats of electronic invoices and attachments include at least: JPG, DOCX, and PDF formats; the target format is PDF; based on a preset format adaptation algorithm, the electronic invoices and / or attachments are converted to the target format, including: for DOCX format electronic invoices and attachments, reading the text, images, tables, and layout styles of the DOCX format electronic invoices and attachments, and using a preset conversion algorithm to convert the text, images, and tables into PDF format electronic invoices and attachments according to the layout styles; for JPG format electronic invoices and attachments, using an image compression and format encapsulation algorithm to compress the JPG format electronic invoices and attachments according to a preset resolution, and encapsulating the compressed electronic invoices and attachments into PDF format electronic invoices and attachments.
[0007] Optionally, based on a preset format adaptation algorithm, after converting the document to be printed into the target format, the method further includes: associating the electronic invoices and attachments before and after conversion; storing the electronic invoices and attachments before conversion in a preset original file directory; and storing the electronic invoices and attachments after conversion in a preset conversion file directory.
[0008] Optionally, it also includes: recording the conversion information of electronic invoices and / or attachments during the format conversion process, generating a format conversion log, and associating the format conversion log with the reimbursement document; wherein the conversion information includes at least: conversion time, original file name, original format, converted file name, conversion status, and operator.
[0009] Optionally, the reimbursement documents, electronic invoices in the target format, and / or attachments can be printed based on the print task queue, including: batch outputting print content according to the reimbursement document dimension based on the print task queue; wherein, the print content includes: reimbursement documents and electronic invoices in the target format associated with the reimbursement documents and / or attachments.
[0010] Secondly, embodiments of the present invention provide a system for printing financial reimbursement documents, comprising: a format recognition module, used to acquire at least one reimbursement document to be printed and an electronic invoice and / or attachment file associated with the reimbursement document, and to recognize the format of the electronic invoice and / or attachment file; a format conversion module, used to convert the electronic invoice and / or attachment file into the target format based on a preset format adaptation algorithm if the electronic invoice and / or attachment file is not in the target format; and a print output module, used to generate a print task queue based on the reimbursement document and the electronic invoice and / or attachment file in the target format, and to print the reimbursement document and the electronic invoice and / or attachment file in the target format based on the print task queue.
[0011] Optionally, the print output module is specifically used to: batch output print content according to the expense report document dimension based on the print task queue; wherein, the print content includes: expense report documents and electronic invoices and / or attachments in the target format associated with the expense report documents.
[0012] Thirdly, embodiments of the present invention provide an electronic device including a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the steps of any of the methods provided in the first aspect above.
[0013] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the method provided in any of the first aspects above.
[0014] The embodiments of the present invention bring the following beneficial effects: The method, system, electronic device, and medium for printing financial reimbursement documents provided by this invention first acquire at least one reimbursement document to be printed, along with associated electronic invoices and / or attachments, and identify the format of the electronic invoices and / or attachments. If the electronic invoices and / or attachments are not in the target format, they are converted to the target format based on a preset format adaptation algorithm. Then, a print task queue is generated based on the reimbursement document and the target format electronic invoices and / or attachments, and the reimbursement document and the target format electronic invoices and / or attachments are printed based on the print task queue. This method can automatically convert and print electronic invoices and / or attachments associated with reimbursement documents of various formats, eliminating the need for manual format conversion by the user. It also enables batch printing and simultaneous printing of electronic invoices and / or attachments associated with reimbursement documents, improving printing efficiency.
[0015] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0016] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0017] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0018] Figure 1 A flowchart illustrating a method for printing financial reimbursement documents as provided in an embodiment of the present invention; Figure 2 A schematic diagram of the structure of a financial reimbursement document printing system provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] Most current corporate expense reimbursement systems support printing electronic invoices and attachments. However, with the diversification of business scenarios, the formats of attachments uploaded by employees are becoming increasingly diverse, and the existing printing functions can no longer meet actual business needs, resulting in the following problems: (1) The existing reimbursement system’s standard printing function is only compatible with PDF format invoices and attachments. It cannot directly print common format files such as pictures (e.g., jpg) and Word (docx). Employees need to manually convert the format before printing, which is cumbersome and increases the reimbursement burden.
[0021] (2) Some systems do not support batch selection and printing of document lists, or cannot output all electronic invoices and attachments at the same time when printing in batches. They need to print each document one by one, which takes a long time and affects the efficiency of financial auditing and archiving.
[0022] (3) If non-PDF format attachments are manually converted to a print-compatible format, problems such as format disorder and content loss may occur; and the original file may be lost after conversion, which is not conducive to subsequent business traceability and verification.
[0023] (4) The existing system cannot customize the printing compatibility rules according to the enterprise's office software environment (such as uniform use of Office software, with attachments mainly in docx format), resulting in insufficient adaptability.
[0024] Based on this, the present invention provides a method, system, electronic device and medium for printing financial reimbursement documents, which can support the printing of multiple file formats and the batch printing of reimbursement documents, thereby improving printing efficiency.
[0025] To facilitate understanding of this embodiment, a method for printing financial reimbursement documents disclosed in this invention will first be described in detail. This method is applied to a financial reimbursement document printing engine that integrates multi-format parsing, automatic format conversion, batch printing scheduling, and original file retention functions. This financial reimbursement document printing engine can be embedded in an enterprise reimbursement system. See also... Figure 1 The flowchart shown illustrates a method for printing financial reimbursement documents, indicating that the method mainly includes the following steps S101 to S103: Step S101: Obtain at least one expense reimbursement form to be printed, as well as the associated electronic invoice and / or attachment file, and identify the format of the electronic invoice and / or attachment file.
[0026] In one implementation, obtaining at least one expense reimbursement document to be printed includes: obtaining a print request initiated by a user, and based on the print request, obtaining at least one expense reimbursement document and metadata of the electronic invoice and attachment files associated with the expense reimbursement document.
[0027] In practice, users can select the expense reports to be printed in batches on the expense report list page and initiate a one-click print request; or initiate a print request on the details page of a single expense report. The system triggers the printing engine and simultaneously obtains the metadata (including file format, storage path, associated document ID, etc.) of the electronic invoices (including PDF, JPG, etc.) associated with the expense report and all attachment files.
[0028] Step S102: If the electronic invoice and / or attachment file is not in the target format, convert the electronic invoice and / or attachment file to the target format based on a preset format adaptation algorithm.
[0029] In one implementation, the printing engine identifies the format of the acquired electronic invoices and / or attachments, distinguishing between target formats (PDF format, directly printable) and non-target formats (PG format, DOCX format, etc., requiring conversion before printing), and generates a format identification list. For the identified non-target format electronic invoices and / or attachments, the printing engine calls a preset format conversion module to automatically convert them to the target format (print-compatible format); during the conversion process, a format adaptation algorithm is used to ensure that the content and layout of the converted file are consistent with the original file.
[0030] Step S103: Based on the expense report, the electronic invoice in the target format, and / or the attachment file, generate a print task queue, and print the expense report, the electronic invoice in the target format, and / or the attachment file based on the print task queue.
[0031] In one implementation, the printing engine integrates all electronic invoices (read directly or converted) and attachment files (converted) of the current expense report according to the enterprise printing platform configuration rules, and generates a unified print task queue.
[0032] Furthermore, based on the print task queue, print content is output in batches according to the expense report document dimension; wherein, the print content includes: expense report documents and electronic invoices and / or attachments in the target format associated with the expense report documents.
[0033] In practice, the printing engine outputs print content in batches according to the reimbursement document dimension based on the print task queue, ensuring that electronic invoices and all attachments of the same reimbursement document are printed and archived synchronously; after printing is completed, the printing status (success / failure) is fed back to the user.
[0034] The above-mentioned method for printing financial reimbursement documents provided in this embodiment of the invention can automatically convert and print electronic invoices and / or attachments associated with reimbursement documents of various formats without requiring users to manually convert the formats. At the same time, it can batch print and synchronously print electronic invoices and / or attachments associated with reimbursement documents, thereby improving printing efficiency.
[0035] In one implementation, a "file format-processing strategy" mapping table (Map) is pre-built.<FileFormat,ProcessStrategy> The processing rules for the preset mainstream formats are shown in Table 1.
[0036] Table 1. Preset processing rules for mainstream formats
[0037] When the printing engine is triggered, the following recognition logic is executed: pseudocode / / Pseudocode: File format recognition and strategy matching Function matchProcessStrategy(file list): The list of processing tasks is `processTasks = []` for each file in the file list: Format = Parse file extension / file header information to obtain file format if the mapping table contains(format): Strategy = mapping table.get(format) processTasks.add(newtask(fileID, format, strategy, file storage path)) else: Marked as "Format not supported", returns a user prompt. return processTasks In one implementation, when the printing engine is triggered, it reads the electronic invoices and attachments of the expense reimbursement documents to be printed to generate a file list; for each file in the file list, it parses the file extension / file header information to obtain the file format, determines the corresponding file processing strategy according to the "file format-processing strategy" mapping table, and generates a print job; if the file format is not included in the "file format-processing strategy" mapping table, the file is marked as unsupported and a prompt is returned to the user.
[0038] In one implementation, the formats of the electronic invoice and attachments include at least: JPG, DOCX, and PDF; the target format is PDF. For the aforementioned step S102, i.e., when converting the electronic invoice and / or attachments to the target format based on a preset format adaptation algorithm, the following methods may be used, including but not limited to: (1) For DOCX format electronic invoices and attachments, read the text, images, tables and layout styles of DOCX format electronic invoices and attachments, and use the preset conversion algorithm to convert the text, images and tables into PDF format electronic invoices and attachments according to the layout styles.
[0039] In practice, for DOCX format electronic invoices and attachments, an Office component-based conversion algorithm is used. The system calls the Office service integrated in the background to read the text, images, tables and other content of the DOCX format electronic invoices and attachments, and converts them into PDF files according to the original layout. During the conversion process, special formats (such as formulas and comments) are adapted to avoid content loss or errors.
[0040] (2) For JPG format electronic invoices and attachments, an image compression and format encapsulation algorithm is used to compress the JPG format electronic invoices and attachments according to a preset resolution, and then encapsulate the compressed electronic invoices and attachments into PDF format electronic invoices and attachments.
[0041] In practice, for electronic invoices and attachments in JPG format, an image compression and format encapsulation algorithm is used to compress the JPG images to a preset resolution (adapting to printing paper sizes) and then directly encapsulate them into PDF files, ensuring image clarity while reducing the size of printed files.
[0042] Furthermore, based on a preset format adaptation algorithm, after converting the document to be printed into the target format, the process also includes: associating the electronic invoices and attachments before and after conversion; storing the electronic invoices and attachments before conversion in a preset original file directory; and storing the electronic invoices and attachments after conversion in a preset conversion file directory.
[0043] In practice, after the format conversion is completed, the system creates two subdirectories, one for the original file and one for the converted file, in the reimbursement file storage directory. Both the original and converted files are fully preserved to ensure print compatibility and business traceability. Original file directory: The original electronic invoices and attachments (jpg, docx, etc., i.e., the electronic invoices and attachments before conversion) uploaded by the user are fully preserved, and the corresponding reimbursement document ID and file ID are associated with them. Users can preview and download the original files on the document details page.
[0044] Converted file directory: Stores the converted PDF file (i.e., the converted electronic invoice and attachment files), which is only used for printing output and does not affect the storage and use of the original file.
[0045] In one embodiment, the method further includes: recording the conversion information of electronic invoices and / or attachments during the format conversion process, generating a format conversion log, and associating the format conversion log with the reimbursement document; wherein the conversion information includes at least: conversion time, original file name, original format, converted file name, conversion status, and operator.
[0046] In practice, the system can automatically record detailed information for each format conversion, including conversion time, original file name, original format, converted file name, conversion status (success / failure), operator, etc. The log is linked to the expense report and can be used for subsequent verification and traceability.
[0047] This invention constructs a financial reimbursement document printing engine that integrates multi-format parsing, automatic format conversion, batch print scheduling, and original file retention. Through preset format parsing and conversion rules, it achieves automatic recognition and compatible processing of invoices and attachments in various formats such as PDF, JPG, and DOCX. It supports batch printing of document lists, automatically retaining original attachment files while ensuring the integrity of the printed content, thus achieving a dual improvement in printing efficiency and business traceability. This financial reimbursement document printing engine mainly includes the following components: (1) Multi-format recognition and adaptation module This module forms the foundation for multi-format printing. Its core function is to accurately identify the file formats of various invoices and attachments, and match them with corresponding processing strategies (direct printing / printing after conversion). The system maintains a "File Format - Processing Strategy" framework, with preset processing rules for mainstream formats, as shown in Table 1.
[0048] (2) Automatic format conversion and original file preservation module The core function of this module is to automatically convert non-PDF files (jpg, docx) to PDF format while completely preserving the original file, ensuring print compatibility and business traceability. The format conversion mechanism includes: For docx format files, an Office component-based conversion algorithm is used, which calls the Office service integrated in the system background to read the text, images, tables and other content of the docx file and convert it into a PDF file according to the original layout style; during the conversion process, special format (such as formulas and comments) are adapted to avoid content loss or disorder.
[0049] For JPG format files: Image compression and format encapsulation algorithms are used to compress JPG images to a preset resolution (adapting to printing paper sizes) and then directly encapsulate them into PDF files, ensuring image clarity while reducing the size of printed files.
[0050] After conversion, the system creates two subdirectories, the original file and the converted file, in the reimbursement file storage directory: Original file directory: Fully preserves the original files (jpg, docx, etc.) uploaded by users, associates them with the corresponding expense report ID and file ID, and allows users to preview and download the original files on the document details page.
[0051] Convert File Directory: Stores the converted PDF file for printing purposes only, without affecting the storage and use of the original file.
[0052] The system automatically records detailed information for each format conversion, including conversion time, original file name, original format, converted file name, conversion status (success / failure), operator, etc. The log is linked to the expense report and can be used for subsequent verification and traceability.
[0053] (3) Batch printing scheduling module This module enables batch printing of documents, supporting batch scheduling of invoice and attachment printing tasks for multiple documents, thereby improving printing efficiency.
[0054] After a user selects multiple expense reports to be printed on the document list page and clicks the one-click print button, the system triggers a batch print request. The batch print scheduler assembles the print job according to the following logic: pseudocode / / Pseudocode: Batch Print Task Assembly The function `assembleBatchPrintTasks(select document ID list)`: Batch PrintQueue = [] For each document ID in the list of selected document IDs: Document Information = Retrieves basic document information (document number, claimant, department, etc.) Electronic Invoice List = Retrieves all electronic invoice files (including PDF, JPG, etc.) associated with this document. Attachment List = Retrieves all attachment files associated with this document (including PDF, docx, jpg, etc.). / / Match the processing strategy for each file and perform the conversion (if necessary) Invoice processing task = matchProcessStrategy(electronic invoice list) Attachment processing task = matchProcessStrategy(attachment list) Perform the conversion task to generate a list of printable PDF files. / / Assemble a print job package for a single document A single task package = a new task package (document information, a list of converted invoice PDFs, a list of converted attachment PDFs). batchPrintQueue.add(single task package) return batchPrintQueue The batch printing scheduler integrates the printing content of each document (document information + all invoices + all attachments) into a single print job according to the order of the task packages and sends it to the printing platform. It supports configuring printing parameters (such as paper size, number of copies, duplex printing, etc.). After printing is completed, it returns the overall printing results to the user. If there are documents that failed to print, it marks the specific reasons for the failure (such as file corruption, unsupported format, etc.).
[0055] (4) Printing platform configuration module This module allows administrators to customize printing rules according to the actual office environment of the enterprise, improving system adaptability. The core configuration functions of this module include: Format configuration support: You can add / modify / delete "file format-processing strategy" mapping rules to adapt to the new attachment format requirements of enterprises (such as adding PNG image format, XLSX table format, etc.).
[0056] Conversion parameter configuration: Configure conversion parameters (such as the resolution of the PDF after JPG conversion, the font adaptation rules after docx conversion, etc.) for different format conversion needs.
[0057] Default printing parameter configuration: Set the company's default printing parameters (such as default paper size A4, default number of copies to 1, etc.) to reduce manual configuration operations for users.
[0058] The printing method for financial reimbursement documents provided in this invention supports direct printing of multiple file formats without requiring employees to manually convert formats; it supports batch selection of documents for one-click printing, simultaneously outputting all invoices and attachments, significantly reducing employee operation steps and financial review and archiving time, thus improving reimbursement and review efficiency; it employs a targeted format conversion algorithm to ensure that the converted file layout and content are consistent with the original file; at the same time, it completely preserves the original file, facilitating subsequent business traceability and verification, avoiding the risk of original file loss, and ensuring print quality and file integrity; it supports administrators to customize the configuration of format processing rules, conversion parameters, and printing parameters, adapting to the office software environment and business needs of different enterprises, enhancing system adaptability and flexibility, and broadening its applicability; it simplifies the printing operation process, reduces tedious operations such as manual conversion and printing one document at a time, reduces problems such as format errors and content loss caused by human error, and improves user experience.
[0059] In this embodiment of the invention, in order to further improve printing efficiency and user experience, a structured printing template can also be used to print reimbursement documents. The structured printing template organically integrates the messy and diverse original attachments with the structured reimbursement information to form a clear, standardized, traceable, and easy-to-archive paper or electronic printout.
[0060] In practical implementation, the structured printing template can adopt a combined main document and attachment structure. The printed output is divided into two logical parts: the main document contains structured business data such as the claimant's information, expense details, approval status, and total amount; the attachments embed all uploaded voucher files (invoices, itineraries, contracts, etc.) in sequence, with each attachment on a separate page or in a separate section. The template's basic structure is unified, and companies can customize fields according to their financial regulations (such as cost center, project number, budget item, etc.). Each page contains key metadata (such as expense report number, printing time, page number) to ensure traceability of paper archives. Specifically, the structured printing template may include the following components: (1) Cover page, including: the title of the expense report (such as travel expense expense report), expense report number (unique identifier), name of the person claiming expense, department, employee number, submission date, approval completion time, total amount (in words + in figures), approval status (approved / pending review, etc.).
[0061] (2) The main bill details page includes: a table of expense details (expense type (transportation, accommodation, catering, etc.), date, reason, amount, payment method, related invoice number, etc.), an approval flow summary (approver, opinion, time), and remarks (such as special instructions, loan repayment, etc.).
[0062] (3) Attachment area Attachment header (at the beginning of each attachment), such as "Attachment X: [filename or smart name]" and automatically extracted key information as a subtitle; Attachment content display: Images (JPG / PNG) are centered and automatically scaled to the A4 safe area, preserving the original aspect ratio; PDF / Office documents are converted to images or embedded in PDF pages, preserving the original layout; multi-page attachments are displayed continuously, with each page retaining the attachment identifier (e.g., "Attachment 2 - Page 1").
[0063] In this embodiment of the invention, intelligent enhancement processing can also be applied to the attachments, including but not limited to: automatically rotating tilted images; sharpening or enhancing the contrast of low-resolution screenshots; and overlaying a semi-transparent watermark on informal documents (such as WeChat chat records): "This page is supplementary supporting material".
[0064] (4) Footer information: Left side: expense report number; Middle: page number; Right side: printing time.
[0065] In this embodiment of the invention, a dynamic adaptation mechanism is used to control the template, including but not limited to: automatic pagination control, setting a minimum number of rows to retain (e.g., at least 2 rows of expense details to retain on the current page) to avoid page breaks in the middle of tables or attachment images; attachments are sorted by upload order, expense occurrence time, or file type; blank page control, the system automatically detects and skips completely blank pages to avoid wasting paper.
[0066] Furthermore, in this embodiment of the invention, a privacy protection strategy can be adopted to automatically identify sensitive information such as ID card number and bank card number, highlight them in red in the print preview, and print the complete content only after the user confirms, or directly blur out the sensitive information; at the same time, an anti-tampering mark or QR code can be added to the main page, and scanning the code can verify whether the printed document is consistent with the original data of the system.
[0067] The present invention, through the above-described structured printing template design, can achieve standardization, readability, compliance, and audit friendliness of reimbursement output while retaining flexibility, effectively solving the problem of printing chaos caused by diverse attachment formats, and improving employee experience and financial processing efficiency.
[0068] In addition to the method for printing financial reimbursement documents provided in the foregoing embodiments, this invention also provides a system for printing financial reimbursement documents, see [link to documentation]. Figure 2 The diagram shows the structure of a financial reimbursement form printing system, which may include the following parts: The format recognition module 201 is used to obtain at least one expense reimbursement document to be printed and the electronic invoice and / or attachment file associated with the expense reimbursement document, and to recognize the format of the electronic invoice and / or attachment file.
[0069] The format conversion module 202 is used to convert the electronic invoice and / or attachment file into the target format based on a preset format adaptation algorithm if the electronic invoice and / or attachment file is not in the target format.
[0070] The print output module 203 is used to generate a print task queue based on the expense report, the electronic invoice in the target format, and / or the attachment file, and to print the expense report, the electronic invoice in the target format, and / or the attachment file based on the print task queue.
[0071] The financial reimbursement document printing system provided in this embodiment of the invention can automatically convert and print electronic invoices and / or attachments associated with reimbursement documents of various formats without requiring manual format conversion by the user. At the same time, it can batch print and synchronously print electronic invoices and / or attachments associated with reimbursement documents, thereby improving printing efficiency.
[0072] In one implementation, the format recognition module 201 is specifically used to: obtain a print request initiated by a user, and based on the print request, obtain at least one expense reimbursement document and metadata of the electronic invoice and attachment files associated with the expense reimbursement document.
[0073] In one implementation, the electronic invoice and attachment files are in at least the following formats: JPG, DOCX, and PDF; the target format is PDF. Specifically, the format conversion module 20 is used to: for DOCX format electronic invoices and attachment files, read the text, images, tables, and layout styles of the DOCX format electronic invoices and attachment files, and use a preset conversion algorithm to convert the text, images, and tables into PDF format electronic invoices and attachment files according to the layout styles; for JPG format electronic invoices and attachment files, use an image compression and format encapsulation algorithm to compress the JPG format electronic invoices and attachment files according to a preset resolution, and encapsulate the compressed electronic invoices and attachment files into PDF format electronic invoices and attachment files.
[0074] In one embodiment, the system further includes: an original file retention module, used to: associate the electronic invoices and attachments before and after conversion; store the electronic invoices and attachments before conversion in a preset original file directory; and store the electronic invoices and attachments after conversion in a preset conversion file directory.
[0075] In one embodiment, the system further includes a log generation module, used to record conversion information of electronic invoices and / or attachments during the format conversion process, generate a format conversion log, and associate the format conversion log with the reimbursement document; wherein the conversion information includes at least: conversion time, original file name, original format, converted file name, conversion status, and operator.
[0076] In one implementation, the print output module is specifically used to: batch output print content according to the expense reimbursement document dimension based on the print task queue; wherein, the print content includes: expense reimbursement documents and electronic invoices and / or attachments in the target format associated with the expense reimbursement documents.
[0077] It should be noted that the system provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the system embodiment can be referred to the corresponding content in the aforementioned method embodiment.
[0078] This invention also provides an electronic device, specifically, the electronic device includes a processor and a storage device; the storage device stores a computer program, and the computer program, when run by the processor, executes the method described in any of the above embodiments.
[0079] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device 100 includes: a processor 30, a memory 31, a bus 32 and a communication interface 33. The processor 30, the communication interface 33 and the memory 31 are connected through the bus 32. The processor 30 is used to execute executable modules, such as computer programs, stored in the memory 31.
[0080] The memory 31 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 33 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.
[0081] Bus 32 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0082] The memory 31 is used to store programs. After receiving an execution instruction, the processor 30 executes the program. The method executed by the device for defining the flow process disclosed in any of the foregoing embodiments of the present invention can be applied to the processor 30 or implemented by the processor 30.
[0083] Processor 30 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 30 or by instructions in software form. Processor 30 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 31. The processor 30 reads the information in memory 31 and, in conjunction with its hardware, completes the steps of the above method.
[0084] The computer program product of the readable storage medium provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the foregoing method embodiments. For specific implementation, please refer to the foregoing method embodiments, which will not be repeated here.
[0085] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0086] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for printing financial reimbursement documents, characterized in that, include: Obtain at least one expense reimbursement form to be printed, along with the associated electronic invoice and / or attachment file, and identify the format of the electronic invoice and / or the attachment file; If the electronic invoice and / or the attached file are not in the target format, the electronic invoice and / or the attached file will be converted to the target format based on a preset format adaptation algorithm. Based on the expense report, the electronic invoice in the target format, and / or the attachment file, a print task queue is generated, and the expense report, the electronic invoice in the target format, and / or the attachment file are printed based on the print task queue.
2. The method according to claim 1, characterized in that, Obtain at least one expense report to be printed, including: Obtain a print request initiated by the user, and based on the print request, obtain at least one expense report document and the metadata of the electronic invoice and attachment files associated with the expense report document.
3. The method according to claim 1, characterized in that, The electronic invoice and the attached documents shall include at least the following formats: JPG, DOCX, and PDF; the target format is PDF. Based on a preset format adaptation algorithm, the electronic invoice and / or the attached files are converted into the target format, including: For the DOCX format electronic invoice and attachment files, the text, images, tables, and layout styles of the DOCX format electronic invoice and attachment files are read, and a preset conversion algorithm is used to convert the text, images, and tables into PDF format electronic invoices and attachment files according to the layout styles; For the JPG format electronic invoices and attachments, an image compression and format encapsulation algorithm is used to compress the JPG format electronic invoices and attachments according to a preset resolution, and then encapsulate the compressed electronic invoices and attachments into PDF format electronic invoices and attachments.
4. The method according to claim 3, characterized in that, Based on a preset format adaptation algorithm, after converting the document to be printed into the target format, the process also includes: Link the electronic invoices and attachments before and after the conversion; Store the original electronic invoices and attachments in the preset original file directory; The converted electronic invoices and attachments are stored in a preset conversion file directory.
5. The method according to claim 3, characterized in that, Also includes: Record the conversion information of the electronic invoice and / or the attached file during the format conversion process, generate a format conversion log, and associate the format conversion log with the reimbursement document; wherein, the conversion information includes at least: conversion time, original file name, original format, converted file name, conversion status, and operator.
6. The method according to claim 1, characterized in that, Printing the expense reimbursement documents, the electronic invoices in the target format, and / or the attachment files based on the print task queue includes: Based on the print task queue, print content is output in batches according to the expense reimbursement document dimension; wherein, the print content includes: the expense reimbursement document and the electronic invoice and / or the attachment file in the target format associated with the expense reimbursement document.
7. A system for printing financial reimbursement documents, characterized in that, include: A format recognition module is used to acquire at least one expense reimbursement form to be printed and the electronic invoice and / or attachment file associated with the expense reimbursement form, and to recognize the format of the electronic invoice and / or the attachment file; The format conversion module is used to convert the electronic invoice and / or the attachment file into the target format based on a preset format adaptation algorithm if the electronic invoice and / or the attachment file is not in the target format. The print output module is used to generate a print task queue based on the expense report, the electronic invoice in the target format, and / or the attachment file, and to print the expense report, the electronic invoice in the target format, and / or the attachment file based on the print task queue.
8. The system according to claim 7, characterized in that, The print output module is specifically used for: Based on the print task queue, print content is output in batches according to the expense reimbursement document dimension; wherein, the print content includes: the expense reimbursement document and the electronic invoice and / or the attachment file in the target format associated with the expense reimbursement document.
9. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the steps of the method according to any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program thereon, characterized in that, The computer program, when run by a processor, performs the steps of the method described in any one of claims 1 to 6.