Disclosure of Invention
The application aims to provide a printing charging method, a printing charging device and electronic equipment, and has the beneficial effect of improving the charging accuracy.
The invention provides a printing charging method, which comprises the following steps:
acquiring printing parameter information of a file to be printed;
acquiring format information of a file to be printed;
and generating charging information according to the format information and the printing parameter information.
In the print charging method of the present invention, the step of obtaining format information of a file to be printed includes:
sending the file to be printed to a printer;
acquiring a file name of a file to be printed, which is returned by the printer, wherein the file name is automatically generated by the printer based on the format of the file to be printed;
and acquiring format information of the file to be printed according to the file name.
In the print charging method of the present invention, the step of obtaining the format information of the file to be printed according to the file name includes:
and querying a printer naming rule database according to the file name to acquire format information of the file to be printed.
In the print charging method of the present invention, the step of obtaining format information of a file to be printed includes:
and acquiring attribute information of the file to be printed, and acquiring format information of the file to be printed according to the attribute information.
In the print charging method according to the present invention, the print parameter information includes: printing paper quantity information, printing type information, paper option information, paper size information and printing color information;
the step of generating billing information according to the format information and the printing parameter information includes:
calculating unit price information of each sheet according to the printing type information, the paper option information, the paper size information, the printing color information and the format information;
and generating charging information according to the unit price information and the printing paper quantity information.
A print billing apparatus comprising:
the first acquisition module is used for acquiring the printing parameter information of the file to be printed;
the second acquisition module is used for acquiring format information of the file to be printed;
and the generating module is used for generating charging information according to the format information and the printing parameter information.
In the print charging apparatus according to the present invention, the second acquiring module includes:
the sending unit is used for sending the file to be printed to a printer;
the first acquisition unit is used for acquiring the file name of the file to be printed returned by the printer, and the file name is automatically generated by the printer based on the format of the file to be printed;
and the second acquisition unit is used for acquiring the format information of the file to be printed according to the file name.
In the print charging apparatus of the present invention, the second obtaining unit is configured to query a printer naming rule database according to the file name to obtain format information of the file to be printed.
In the print charging apparatus of the present invention, the second obtaining module is configured to obtain attribute information of the file to be printed, and obtain format information of the file to be printed according to the attribute information.
An electronic device comprising a processor and a memory, the memory having stored therein a computer program, the processor being adapted to perform the method of any of the preceding claims by invoking the computer program stored in the memory.
In view of the above, the printing charging method provided by the present invention obtains the printing parameter information of the file to be printed; acquiring format information of a file to be printed; generating charging information according to the format information and the printing parameter information; the method realizes automatic charging of printing, and the charging refers to the format of the file to be printed, thereby calculating the required cost more accurately and improving the charging accuracy.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In this application, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may comprise direct contact of the first and second features, or may comprise contact of the first and second features not directly but through another feature in between. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
The terms "first," "second," "third," and the like in the description and in the claims of the present application and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, or apparatus, terminal, system comprising a list of steps is not necessarily limited to those steps or modules or elements expressly listed, and may include other steps or modules or elements not expressly listed, or inherent to such process, method, apparatus, terminal, or system.
Referring to fig. 1, fig. 1 is a flowchart of a printing charging method in some embodiments of the present invention, which is applied to a computer, an IPAD, and other terminals. The printing charging method comprises the following steps:
s101, obtaining the printing parameter information of the file to be printed.
The printing parameter information includes, but is not limited to, printing paper quantity information, printing type information, paper option information, paper size information, printing color information, and the like. It may also include a print range option, a layout option, a paper tray option, an operation option, and the like. Wherein, the paper option includes: plain paper, coated paper, card paper, and color paper; paper size options include: a4, A3, a5, B5, B4, a0, a1, a2, 8K, 16K, cover 297 × 440; the type options include: single-sided printing and double-sided printing; the color options include: black and white printing and color printing; the print scope options include: within the range of the number of pages of the printed file, the combination of any number of pages; the layout options include: printing 1 page per version, 2 pages per version, 4 pages per version, 6 pages per version, 8 pages per version, 9 pages per version and a booklet; the paper tray options include all paper trays of the printer; the printer number option includes the number of printers owned in the print shop.
S102, acquiring format information of a file to be printed.
Wherein, for example, the format information of the file to be printed is used for expressing the format of the file to be printed. The format of the file to be printed may be PDF, DOC, DWG, JPG, etc., although it is not limited to these types.
In some embodiments, after the printer acquires the file to be printed, the printer identifies the format of the file to be printed and then generates different temporary file names based on different formats. Therefore, the format of the file to be printed can be judged from the temporary file name.
Specifically, the step S102 includes:
and S1021, sending the file to be printed to a printer. The file to be printed is sent to the printer and cannot be printed immediately, and the printer receives the instruction of the terminal equipment to perform printing operation after payment is successful. After the file to be printed is sent to the printer, preprocessing is required, such as identifying a format. The printer identifies the format of the file to be printed after receiving the file to be printed, and then generates different temporary file names based on different formats.
And S1022, acquiring the file name of the file to be printed returned by the printer, wherein the file name is automatically generated by the printer based on the format of the file to be printed.
Here, the current terminal device stores a temporary naming rule of the printer in advance, for example, a file in a DWG format is named MDx, and a file in a PDF format is named PDFx, etc., which are not examples here.
And S1023, acquiring the format information of the file to be printed according to the file name. After the file name is obtained, the temporary naming rule of the printer stored in the database in advance is inquired, and then the format information of the file to be printed can be obtained.
In some embodiments, the format information may also be obtained by directly querying the attribute information of the file to be printed through the current terminal device. Therefore, this step S102 includes: and acquiring attribute information of the file to be printed, and acquiring format information of the file to be printed according to the attribute information.
S103, generating charging information according to the format information and the printing parameter information.
Among them, since the different formats of documents require different ink usage, format information needs to be referred to when generating billing information.
Specifically, in some embodiments, this step S103 comprises the following sub-steps: s1031, calculating unit price information of each sheet according to the printing type information, the paper option information, the paper size information, the printing color information and the format information; s1032, generating charging information according to the unit price information and the printing paper quantity information. Of course, in the specific implementation process, a certain discount can be made according to the total consumption amount.
In the step, after the charging information is generated, a payment two-dimensional code is generated according to the charging information so that a user can perform code scanning payment, and after collection is successful, a trigger instruction is sent to the printer so that the printer performs printing operation.
In view of the above, the printing charging method provided by the present invention obtains the printing parameter information of the file to be printed; acquiring format information of a file to be printed; generating charging information according to the format information and the printing parameter information; the method realizes automatic charging of printing, and the charging refers to the format of the file to be printed, thereby calculating the required cost more accurately and improving the charging accuracy.
Referring to fig. 2, fig. 2 is a printing billing device, including: a first acquisition module 201, a second acquisition module 202, and a generation module 203.
The first obtaining module 201 is configured to obtain printing parameter information of a file to be printed; the printing parameter information includes, but is not limited to, printing paper quantity information, printing type information, paper option information, paper size information, printing color information, and the like. It may also include a print range option, a layout option, a paper tray option, an operation option, and the like. Wherein, the paper option includes: plain paper, coated paper, card paper, and color paper; paper size options include: a4, A3, a5, B5, B4, a0, a1, a2, 8K, 16K, cover 297 × 440; the type options include: single-sided printing and double-sided printing; the color options include: black and white printing and color printing; the print scope options include: within the range of the number of pages of the printed file, the combination of any number of pages; the layout options include: printing 1 page per version, 2 pages per version, 4 pages per version, 6 pages per version, 8 pages per version, 9 pages per version and a booklet; the paper tray options include all paper trays of the printer; the printer number option includes the number of printers owned in the print shop.
The second obtaining module 202 is configured to obtain format information of a file to be printed.
In some embodiments, for example, the format information of the file to be printed is used to express the format of the file to be printed. The format of the file to be printed may be PDF, DOC, DWG, JPG, etc., although it is not limited to these types. After the printer acquires the file to be printed, the format of the file to be printed is identified, and then different temporary file names are generated based on different formats. Therefore, the format of the file to be printed can be judged from the temporary file name. The second acquisition module includes: the sending unit is used for sending the file to be printed to a printer; the first acquisition unit is used for acquiring the file name of the file to be printed returned by the printer, and the file name is automatically generated by the printer based on the format of the file to be printed; and the second acquisition unit is used for acquiring the format information of the file to be printed according to the file name. And the second acquisition unit is used for inquiring a printer naming rule database according to the file name so as to acquire the format information of the file to be printed.
In some embodiments, the second obtaining module 202 is configured to obtain attribute information of the file to be printed, and obtain format information of the file to be printed according to the attribute information.
The generating module 203 is configured to generate billing information according to the format information and the printing parameter information. Among them, since the different formats of documents require different ink usage, format information needs to be referred to when generating billing information.
Specifically, in some embodiments, the generating module 203 is configured to calculate unit price information of each sheet according to the printing type information, the paper option information, the paper size information, the printing color information, and the format information; and generating charging information according to the unit price information and the printing paper quantity information. Of course, in the specific implementation process, a certain discount can be made according to the total consumption amount. And after the charging information is generated, generating a payment two-dimensional code according to the charging information so that a user can perform code scanning payment, and after the collection is successful, sending a trigger instruction to the printer so that the printer performs printing operation.
In view of the above, the printing charging method provided by the present invention obtains the printing parameter information of the file to be printed; acquiring format information of a file to be printed; generating charging information according to the format information and the printing parameter information; the method realizes automatic charging of printing, and the charging refers to the format of the file to be printed, thereby calculating the required cost more accurately and improving the charging accuracy.
Referring to fig. 3, an embodiment of the present application further provides an electronic device. The electronic device can be a smart phone, a tablet computer and the like. As shown, the electronic device 300 includes a processor 301 and a memory 302. The processor 301 is electrically connected to the memory 302. The processor 301 is a control center of the terminal 300, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or calling a computer program stored in the memory 302 and calling data stored in the memory 302, thereby performing overall monitoring of the terminal.
In this embodiment, the processor 301 in the electronic device 300 loads instructions corresponding to one or more processes of the computer program into the memory 302 according to the following steps, and the processor 301 runs the computer program stored in the memory 302, so as to implement various functions: acquiring printing parameter information of a file to be printed; acquiring format information of a file to be printed; and generating charging information according to the format information and the printing parameter information.
Memory 302 may be used to store computer programs and data. The memory 302 stores computer programs containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 301 executes various functional applications and data processing by calling a computer program stored in the memory 302.
It should be noted that, those skilled in the art can understand that all or part of the steps in the methods of the above embodiments can be implemented by hardware related to instructions of a program, and the program can be stored in a computer readable storage medium, which can include but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The batch printing control method, the batch printing control device, the storage medium and the electronic device provided by the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.