Auxiliary printing method and product
By converting different file formats into PDF and sending them to the printer queue, compatibility issues in a diverse printing environment are solved, and rapid batch printing and efficiency improvements are achieved.
Patent Information
- Application Number
- CN202411733964.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-14
AI Technical Summary
The prior art is difficult to achieve compatibility of file formats, paper sizes, etc. in a diverse printing environment, resulting in frequent errors or inability to print during printing.
Provides an auxiliary printing method, by receiving the user's to be printed, downloading and saving files, converting non-PDF files into PDF files, and sending files and their printing requirements to the printer queue.
It realizes compatibility between different file formats and paper sizes, supports fast batch printing, improves daily printing efficiency, and records file format, page number, paper size and other data for easy statistics.
Smart Images

Figure CN119620972A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an auxiliary printing method and product. Background Art
[0002] With the rapid development of enterprises, the continuous maturity of applications in various industries, and the emergence of standardized office processes, many companies have implemented centralized printing in their daily work. However, the diversity of printing environments has brought a lot of printing incompatibilities and the inability to accurately count printing results, resulting in frequent errors or failure to print during the printing process. Summary of the invention
[0003] The present invention aims to solve various printing scenario problems, such as different file formats, including doc, pdf, png, etc., different paper requirements, including A1, A3, A4, single-sided, double-sided, black and white, color, horizontal, vertical, etc., and statistics according to the file format, number of pages, and paper size. It is used to solve the printing compatibility problems caused by the current diversified printing environment and facilitate the implementation of centralized printing.
[0004] To solve the above problems, the present invention provides the following technical solutions:
[0005] An auxiliary printing method comprises the following steps:
[0006] S1: receiving a print task from a user, the print task including a file to be printed and a printing requirement;
[0007] S2: Download the file to be printed according to the task to be printed, and save the file to be printed to the local disk;
[0008] S3: if the file to be printed is not in the form of a PDF file, convert the file to be printed into a PDF file;
[0009] S4: Send the file to be printed in the form of a PDF file and the corresponding printing request to the printer queue.
[0010] Preferably, the method further comprises the steps of:
[0011] S5: After printing is successful, the completion status of the task to be printed is recorded.
[0012] Preferably, the method of converting the file to be printed into a PDF file is: if the file to be printed is a streaming file or a picture file, the file to be printed is converted into a PDF file; if the file to be printed is HTML web page content, the file to be printed is converted into a picture file and then converted into a PDF file.
[0013] Preferably, the method of converting the to-be-printed file in the form of a streaming file or an image file into a PDF file is to use the Aspose component.
[0014] Preferably, the file to be printed is saved to the local disk in an AES encrypted form.
[0015] The present invention also provides a computer program product, comprising a computer program, which implements the above method when executed by a processor.
[0016] Beneficial effects: The auxiliary printing method provided by the present invention supports fast batch printing and improves daily printing efficiency. The format, number of pages, and paper size of the file are recorded during the printing process to achieve statistics. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart in an embodiment of the present invention; DETAILED DESCRIPTION
[0018] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] Some terms used in the embodiments of the present invention are explained below to facilitate understanding by those skilled in the art.
[0020] (1) Streaming files: Streaming files support free editing. When browsing, the layout is calculated and drawn in a streaming manner. Streaming files generally contain metadata, styles, and bookmarks. Hyperlinks, objects, sections (the largest layout unit, document contents of different page styles form different sections), paragraphs, sentences, and other elements and attributes. These contents are described in a certain hierarchical structure to form the format of a streaming document. Word document is a typical streaming file.
[0021] (2) HTML (Hyper Text Markup Language): It is a markup language that includes a series of tags that can unify the document format on the Internet and connect scattered Internet resources into a logical whole. HTML text is a descriptive text composed of HTML commands. HTML commands can describe text, graphics, animations, sounds, tables, links, etc.
[0022] (3) AES (Advanced Encryption Standard): It is a block encryption standard adopted by the U.S. federal government. This standard is used to replace the original DES. It has been analyzed by many parties and is widely used around the world.
[0023] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0024] like Figure 1 As shown, the present invention provides an auxiliary printing method, comprising the following steps:
[0025] S1: receiving a print task from a user, the print task including a file to be printed and a printing requirement; the printing requirement includes the number of pages to be printed or the paper size;
[0026] S2: Download the file to be printed according to the task to be printed, and save the file to be printed to the local disk. The file to be printed is saved in the form of AES encryption to avoid leakage of sensitive files;
[0027] S3: If the file to be printed is a streaming file or an image file, the file to be printed is converted into a PDF file using the Aspose component; if the file to be printed is HTML web page content, the file to be printed is converted into an image file, and then converted into a PDF file using the Aspose component;
[0028] S4: Sending the file to be printed in the form of a PDF file and the corresponding printing request to the printer queue;
[0029] S5: After the printing is successful, the completion status of the task to be printed is recorded; the completion status of the task to be printed includes data such as the printing result, the number of pages, and the paper size.
[0030] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An auxiliary printing method, characterized in that: The following steps are involved: S1: receiving a print task from a user, where the print task includes a file to be printed and a printing requirement; S2: Download the file to be printed according to the task to be printed, and save the file to be printed to the local disk; S3: if the file to be printed is not in the form of a PDF file, convert the file to be printed into a PDF file; S4: Send the file to be printed in the form of a PDF file and the corresponding printing request to the printer queue.
2. The auxiliary printing method according to claim 1, characterized in that: Also includes the steps: S5: After printing is successful, the completion status of the task to be printed is recorded.
3. The auxiliary printing method according to claim 1, characterized in that: The method of converting the file to be printed into a PDF file is as follows: if the file to be printed is a streaming file or an image file, the file to be printed is converted into a PDF file; if the file to be printed is HTML web page content, the file to be printed is converted into an image file and then converted into a PDF file.
4. The auxiliary printing method according to claim 3, characterized in that: The way to convert a file to be printed in the form of a streaming file or an image file into a PDF file is to use the Aspose component.
5. The auxiliary printing method according to claim 1, characterized in that: The file to be printed is saved to the local disk in AES encrypted form.
6. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.