CN111324317A - Local printing method, device, equipment and storage medium - Google Patents

Local printing method, device, equipment and storage medium Download PDF

Info

Publication number
CN111324317A
CN111324317A CN202010098186.4A CN202010098186A CN111324317A CN 111324317 A CN111324317 A CN 111324317A CN 202010098186 A CN202010098186 A CN 202010098186A CN 111324317 A CN111324317 A CN 111324317A
Authority
CN
China
Prior art keywords
printing
template
file
local
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010098186.4A
Other languages
Chinese (zh)
Other versions
CN111324317B (en
Inventor
徐如山
李海萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongpu Software Co Ltd
Original Assignee
Dongpu Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongpu Software Co Ltd filed Critical Dongpu Software Co Ltd
Priority to CN202010098186.4A priority Critical patent/CN111324317B/en
Publication of CN111324317A publication Critical patent/CN111324317A/en
Application granted granted Critical
Publication of CN111324317B publication Critical patent/CN111324317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1224Client or server resources management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1275Print workflow management, e.g. defining or changing a workflow, cross publishing
    • G06F3/1276Print workflow management, e.g. defining or changing a workflow, cross publishing within a printer driver, e.g. driver resides either on a server or on a client
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1284Local printer device

Abstract

The invention discloses a method, a device, equipment and a storage medium for locally printing a bill. The method comprises the following steps: acquiring a printing request which is sent by an external program and/or a terminal and is provided with the receipt data to be printed and a calling instruction for calling local printing service, calling a DES algorithm to decrypt the receipt data to obtain specific printing data, inquiring a corresponding printing template from a local service memory, filling the information carried in the order message into a template file stored in a local service to obtain a printing vector file, the corresponding printer is dispatched from the local service according to the call instruction and is printed, so that the online configuration and the local storage of the template file are realized, the generation of the bill is directly carried out in the local service, and the printing drive is locally called without depending on a browser or an external component, so that the problem that the traditional printing control is poor in compatibility is solved, the local printer calling can realize full-load work, and the printing efficiency and the use experience are improved.

Description

Local printing method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of receipt printing, in particular to a method, a device, equipment and a storage medium for local receipt printing.
Background
The traditional paper surface form printing mode is a stylus printer printing mode, consumable materials used are a graphite box and traditional quadruple single paper, the printing speed is low, the average speed is 2 seconds, one surface form is printed, a printing tool used for printing is a printing tool self-researched by a system, a printing template is set, a printer driver is called to print, the printing tool is not flexible enough, traditional printing service is based on a browser JS method for printing, one printing service control cannot support all browsers, and compatibility is poor.
Disclosure of Invention
The invention mainly aims to solve the technical problems that the traditional printing control has poor compatibility and only the printing drive can be called by depending on a browser kernel.
The invention provides a local printing receipt method in a first aspect, which comprises the following steps:
acquiring a printing request sent by an external program and/or a terminal, wherein the printing request comprises bill data to be printed;
decrypting the order data to obtain an order message and a printing template type;
inquiring a corresponding printing template from a local service memory according to the type of the printing template, filling information carried in the order message into the printing template one by one, drawing a printing vector file of the bill, and printing the vector file; and the printing template is a template file synchronously obtained by the local service from the server through the server monitoring interface.
Optionally, in a first implementation manner of the first aspect of the present invention, before the acquiring a print request sent by an external program and/or a terminal, the method further includes:
controlling the local service to start through a timer, and requesting the server monitoring interface to acquire the version number of the template file on the server;
comparing whether the version number is the same as the version number of the template file stored in the local service memory;
and if not, replacing the template file in the local service memory with the template file on the server.
Optionally, in a second implementation manner of the first aspect of the present invention, the replacing the template file in the local service memory with the template file on the server includes:
downloading a template file corresponding to the latest version number in the server;
converting the template file according to a key-value key _ value file stream form to obtain a template file storage table;
and replacing the template file storage table with the template file storage table in the local service memory.
Optionally, in a third implementation manner of the first aspect of the present invention, after the replacing the template file in the local service memory with the template file on the server, the method further includes:
starting a jetty container service of the Web service in the local service, and providing an http service for requesting a bill printing operation for an external program and/or a terminal based on the jetty container service;
the acquiring of the printing request sent by the external program and/or the terminal comprises:
and acquiring a printing request generated by the external program and/or the terminal according to the bill data to be printed through the http service.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the external program and/or the terminal obtains, according to a print request generated by the receipt data to be printed, through the following steps:
the external program and/or the terminal collects a surface single message to be printed, and DES encryption is carried out on the surface single message to obtain a ciphertext message;
selecting a corresponding template identification number, a document type of the receipt message and printer parameters according to the receipt message;
and generating a key _ value file stream according to the ciphertext message, the template identification number, the document type and the printer parameter according to the key-value key _ value file stream form, and embedding the key _ value file stream into the request.
Optionally, in a fifth implementation manner of the first aspect of the present invention, if the receipt data includes at least two receipt messages, querying, according to the type of the printing template, a corresponding printing template from a local service memory, filling information carried in the order message into the printing template one by one, drawing a printing vector file of the receipt, and printing the vector file includes:
filling and writing information carried in the at least two surface single messages into the printing template respectively to obtain at least two surface single file streams;
sequentially connecting the at least two single file streams in series by adopting splicing characters to obtain a character string file stream;
drawing the character string file streams into PDF surface sheets one by one through a PDF conversion tool;
and calling a preset calling instruction of the local printing service, scheduling a corresponding printer from a printer driving list in the local service, and printing the printing vector file.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the scheduling, according to the call instruction, a corresponding printer from a printer driver list in the local service, and printing the print vector file includes:
analyzing the printer parameters in the calling instruction;
according to the printer parameters, calling printers () function of an ACTIIONCRIPT function of local service through a JS script in the Web service to inquire the corresponding printer name from the printer driver list;
and sending the printing vector file to a printer corresponding to the printer name for printing.
A second aspect of the present invention provides a local print booklet apparatus comprising:
the system comprises an acquisition module, a processing module and a printing module, wherein the acquisition module is used for acquiring a printing request sent by an external program and/or a terminal, and the printing request comprises bill data to be printed;
the decryption module is used for decrypting the order data to obtain an order message and a printing template type;
the file printing module is used for inquiring a corresponding printing template from a local service memory according to the type of the printing template, filling information carried in the order message into the printing template one by one, drawing a printing vector file of the bill and printing the vector file; and the printing template is a template file synchronously obtained by the local service from the server through the server monitoring interface.
Optionally, in a first implementation manner of the second aspect of the present invention, the local print menu device further includes an update module, which is specifically configured to:
controlling the local service to start through a timer, and requesting the server monitoring interface to acquire the version number of the template file on the server;
comparing whether the version number is the same as the version number of the template file stored in the local service memory;
and if not, replacing the template file in the local service memory with the template file on the server.
Optionally, in a second implementation manner of the second aspect of the present invention, the update module is specifically configured to:
downloading a template file corresponding to the latest version number in the server;
converting the template file according to a key-value key _ value file stream form to obtain a template file storage table;
and replacing the template file storage table with the template file storage table in the local service memory.
Optionally, in a fifth implementation manner of the third aspect of the present invention, the local print ticket device further includes an http service module, which is specifically configured to: starting a jetty container service of the Web service in the local service, and providing an http service for requesting a bill printing operation for an external program and/or a terminal based on the jetty container service;
and the acquisition module is used for acquiring a printing request generated by the external program and/or the terminal according to the bill data to be printed through the http service.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the local print receipt device further includes a receipt data generation module, which is specifically configured to:
controlling the external program and/or the terminal to collect a surface single message to be printed, and performing DES encryption on the surface single message to obtain a ciphertext message;
selecting a corresponding template identification number, a document type of the receipt message and printer parameters according to the receipt message;
and generating a key _ value file stream according to the ciphertext message, the template identification number, the document type and the printer parameter according to the key-value key _ value file stream form, and embedding the key _ value file stream into the request.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the file printing module includes a data filling unit, a splicing unit, a drawing unit, and a printing unit, and is specifically configured to:
the data filling unit is used for filling information carried in the at least two surface single messages into the printing template respectively to obtain at least two surface single file streams;
the splicing unit is used for sequentially connecting the at least two single file streams in series by adopting splicing characters to obtain a character string file stream;
the drawing unit is used for drawing the character string file streams into PDF surface lists one by one through a PDF conversion tool;
the printing unit is used for calling a preset calling instruction of the local printing service, scheduling a corresponding printer from a printer driver list in the local service, and printing the printing vector file.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the printing unit is specifically configured to:
analyzing the printer parameters in the calling instruction;
according to the printer parameters, calling printers () function of an ACTIIONCRIPT function of local service through a JS script in the Web service to inquire the corresponding printer name from the printer driver list;
and sending the printing vector file to a printer corresponding to the printer name for printing.
A third aspect of the present invention provides a local print booklet apparatus comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the local print booklet device to execute the local print booklet method described above.
A fourth aspect of the present invention provides a computer readable storage medium having stored therein instructions which, when run on a computer, cause the computer to perform the local print ticket method described above.
In the technical scheme provided by the invention, a printing request which is sent by an external program and/or a terminal and is provided with bill data to be printed and a calling instruction for calling local printing service is obtained, a DES algorithm is called to decrypt the bill data to obtain an order message and a printing template type, a corresponding printing template is inquired from a local service memory according to the printing template type, information carried in the order message is filled into a template file synchronously obtained by the local service from a service end through a service end monitoring interface one by one, a printing vector file of the bill is drawn, and the printing vector file is printed; through the implementation, the template file is synchronized online and stored locally, when the template file is printed, a bill is directly generated in local service, the printing drive is called locally, the problem that the traditional printing control is poor in compatibility is solved without depending on a browser or an external component, meanwhile, due to the template file setting, the management and the maintenance are convenient, the full-load work can be realized through the local printer calling, and the printing efficiency and the use experience are improved.
Drawings
FIG. 1 is a schematic diagram of a first embodiment of a method for locally printing a receipt in accordance with an embodiment of the present invention;
FIG. 2 is a schematic diagram of a second embodiment of a local print ticket method in accordance with an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a specific process for acquiring a print driver and a template file by a local service according to an embodiment of the present invention;
FIG. 4 is a schematic view of a detailed flow chart of a print job provided in an embodiment of the present invention;
FIG. 5 is a schematic diagram of a third embodiment of a method for locally printing a receipt in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram of a first embodiment of a local print booklet apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a second embodiment of a local print booklet mechanism according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a local print-side equipment according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a local printing order method, a device, equipment and a storage medium, wherein the local printing order method can download a template file configured by a server to the local by providing a practical local printing program, when an external program sends printing data to the local service, the data practically received by the local service generates a printing file, and then the printing file is output to a printer driver to realize printing. According to the embodiment mode, the template can be configured on line, management and maintenance are convenient, meanwhile, the printing driver can be called in batches, full-load work of the printer is achieved, the problem that the compatibility of a traditional printing control is poor is solved, the local service does not depend on a browser kernel to call the printing driver, and the windows local printing driver is directly called.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For ease of understanding, a specific flow of an embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a method for locally printing a receipt in an embodiment of the present invention includes:
101. and acquiring a printing request sent by an external program and/or a terminal.
It should be understood that the execution main body of the method embodiment of the present invention may be a local print menu device, and may also be a terminal or a server or some functional main body in an operating system on the terminal, which is not limited herein. The embodiment of the present invention specifically takes a certain part of functional entities in an operating system on a terminal as an execution entity as an example for description.
In this embodiment, the print request includes order data to be printed and a call instruction for calling the local print service, and the order data may be understood as sender information, recipient information, commodity information, and the like in the order. The calling instruction is mainly used for calling a printer in the local service, and the calling instruction can be set in the print request or not, and if the calling instruction is not set in the print request, the printer is selected to print the bill according to default printer setting in the local service after the local service receives the request.
In this embodiment, the print request may be obtained by the local service directly reading from the external program or the terminal temporarily connected to the local service, or may be obtained by the external program or the terminal temporarily connected to the local service actively sending and receiving the print request.
In practical application, before the step, the method further comprises the steps of starting the local service to verify the version of the printer driver in real time, and verifying the version of the template file on the server side, wherein each time the update is verified, the template file of the profile downloaded from the server needs to be repeatedly executed and stored in the memory of the local service, and meanwhile, the printer driver list on the local service, namely the printer list, needs to be updated and obtained. In practical application, the real-time version verification of the printer driver specifically includes two verification processes, namely a driver version of the printer and a local service software version, if the two are checked to be inconsistent, the driver version and the local service software version are determined to be updated, and a corresponding file is downloaded from a server to update the local service.
Further, based on the updated printing information, a jetty container service of the web service is started, an http service is provided, then, based on the http service, a printing request generated in an external program and/or a terminal is received, the printing request is analyzed, and a calling instruction of the bill data and/or the printer is obtained, wherein the calling instruction comprises parameters of the printer with calling.
102. And decrypting the order data to obtain an order message and a printing template type.
In this embodiment, the decryption may specifically be performed by using a DES algorithm, where the DES algorithm is provided by a server, specifically, a handshake protocol is negotiated between a local service and the server, after the negotiation is completed, after the local service receives print order data sent by an external program, the received print order data is decrypted according to a negotiated encryption and decryption algorithm to obtain an order message, and in practical application, the decrypted order message is plaintext message data of the order, and if there is multi-stage decryption, the message decrypted by the DES algorithm may be plaintext data or ciphertext data, and specifically, it is required to determine which stage of decryption algorithm the DES algorithm set by the user belongs to in the using process.
In practical application, the encryption and decryption key limited by the DES algorithm is a vector key, and the data is decrypted based on the vector key to obtain specific data of a bill; further, the plaintext message is made into a data table.
In this embodiment, the type of the printing template may specifically be replaced by a template identifier, in practical applications, after downloading a plurality of template files from a server (different express companies have different express templates, and each express company has an express template of a different version), during the process of storing the template files in a memory by a local service, the method further includes a unique identifier of the downloaded template file, establishing a correspondence relationship based on the identifier and a version number of the template file to form a correspondence relationship table, in practical applications, the identifier may be generated by a generation rule on the server, if so, the identifier is determined by a unique rule without negotiation between the server and the local service, and of course, the identifier may also be determined by a usage habit on the local server or by a user defined serial number, in this case, the request needs to be returned to the server for recording and synchronized to other local services. When the portable document format conversion module is used, an external program selects different template files according to different orders to output corresponding order information, the order information calls the corresponding template files through the template identifiers, then data in the plaintext message is filled in the template files, and the PDF files are obtained through subsequent drawing processing.
103. And inquiring a corresponding printing template from a local service memory according to the type of the printing template, filling information carried in the order message into the printing templates one by one, drawing a printing vector file of the bill, and printing the vector file.
In this embodiment, the print template is a template file synchronously obtained from a server side by the local service through a server side monitoring interface; when the print vector file is obtained by filling, the corresponding data value is extracted from the order message and is filled in the corresponding position in the template file. For example, the order message is a data storage list, items and item values are marked in the list, during filling, the template file is adaptively modified according to the items in the list, and the item values in the list are extracted and added to the template file based on the modified template file to form a printing vector file.
In practical applications, the print vector file can be understood as a file that is not distorted in an environment of enlargement or reduction, such as a PDF file. Specifically, after the data is decrypted, data in a JSON format and a KEY-VALUE format are formed, and contents required by the printing form, such as the name of a sender and receiver, a telephone address, three-segment codes, a form number, user-defined data and the like, are defined in the data. And then, the XML template definition content is taken out from the memory, each parameter in the JSON is filled in the template to generate a PDF file, and finally, the PDF file is sent to a printer. The use of a PDF file has the advantage that a vector file is generated, and the printed file is not distorted and not affected by the resolution.
In this embodiment, when the vector file is printed, a printer may be called to print according to information carried in the print request, if the print request includes printer parameters, the printing is performed according to an instruction, and if there are no printer parameters, the printing is performed by default. And if the printing instruction exists, scheduling a corresponding printer from a printer driver list in the local service according to the printing instruction, and printing the printing vector file.
In this embodiment, the call instruction may be understood as a specific parameter of the called printer, such as a label, and this step may be specifically implemented by:
analyzing the printer parameters in the calling instruction;
according to the printer parameters, calling printers () function of an ACTIIONCRIPT function of local service through a JS script in the Web service to inquire the corresponding printer name from the printer driver list;
and sending the printing vector file to a printer corresponding to the printer name for printing.
In practical application, when the printer is called to perform the simplex printing, the driver call of the printer and the output call of the printing simplex data can be specifically realized in the following ways: by the js printing method, the iframe tag is specifically used, and src? And printing can be realized by using a printing mode of the spliced order message & tname & docnmae.
For example, one order calls the local service printing process to:
the calling party writes calling codes, transfers templates, prints modes and orders and messages;
the local service receives the value parameter, and the order plaintext message is obtained after decryption;
and calling the XML template file, generating a PDF file stream, and sending the file stream to a printer for printing.
According to the technical scheme provided by the embodiment of the invention, the template file configured by the server can be downloaded to the local by providing a practical local printing program, when an external program sends printing data to the local service, the data practically received by the local service generates a printing file, and then the printing file is output to a printer driver to realize printing; the online configuration and the local storage of the template file are realized, the generation of the bill is directly carried out in the local service, the calling of the printing drive is locally carried out, the browser or an external component is not required to be relied on, the problem that the traditional printing control is poor in compatibility is solved, the full-load work can be realized by local printer calling, and the printing efficiency and the use experience are improved.
Referring to fig. 2, in another embodiment of the method for printing a receipt locally according to the embodiment of the present invention, the method provided by the present application is further described below by taking an example of an external program accessing a local printing service, and the method mainly includes two major processes:
201. starting a local service, monitoring a template file on a server in real time, and updating a local printer driver list and the template file;
in this embodiment, the local service runtime may first request the server interface, obtain the latest version number, and determine whether the update is needed, and optionally, the version number here should be understood to include the version number of the driver of the printer in the local service and the version number of the template file for generating the print document. In practical application, in the verification process, if the drive version numbers of the printers are consistent, the version numbers of the template files can be verified within the set timing updating time to perform quick verification, so that the data processing amount of local services can be properly reduced, if the version numbers of the template files fail to be obtained, the subsequent steps are stopped, and the operation of monitoring the template files of the service end is continuously performed. And downloading the template after the version number is successfully acquired, and acquiring a local printing drive list after the template is successfully downloaded. The get printer list method is to get the printer name by JS calling the printers () function of the function ACTIONSCRIPT of the local service.
In practical application, after the version number is obtained, the printing service program of the local service loads the downloaded template file into the memory of the local service, loads the template file into the memory for storage in a key _ value file stream form, and then starts a jetty container service of a web service in the local service to provide an http service, so that an external program and/or a terminal can access the request for printing.
202. And based on the locally updated printer driver list and the printing service provided by the template file, locally generating a bill for the bill printing request sent by the external program, and outputting the bill to the printer for printing.
In this embodiment, for a received print request of a receipt, specifically ciphertext data processed by an external program, when the external program accesses a local print service, the external program specifically implements processing of specific contents of the receipt through the following flow:
step 1, an external program encrypts an order message DES as a value parameter.
And step 2, sending a request to the http service by an external program, and carrying parameters such as a template, a message, a printing mode and the like.
In the step, when a request is sent to the http service, specifically, a request containing data content, a template identification number, a document type, client custom area data and printer parameters is sent to a jetty container;
wherein the document type generally uses PDF data, mailpdfm1 (chinese interpretation) is selected; the printer parameters are then used to obtain the selected or conventionally used parameters based on the user ID.
And 3, after receiving the parameters, the local service performs DES decryption on the value, finds a specific template by using the template parameters, draws a PDF file and sends the PDF file to a printer for printing.
In this embodiment, the printing function requested by the external program sends the parameter to the local service through the http interface, and the local service decrypts the data first, optionally, the data encryption and decryption method here is a DES algorithm, and the encryption and decryption key is a vector key, specifically, provided by the service end, and when the local service packages the EXE program of the local printing service, the local service solidifies the encryption and decryption algorithm and key in the program, which cannot be changed.
The local service decrypts ciphertext data sent by an external program through a corresponding algorithm and a KEY to form data in a JSON format, the data is specifically formed in a KEY-VALUE format, and contents required by a printing menu, such as names of receiving and sending persons, telephone addresses, three-segment codes, a single number, user-defined data and the like, are defined in the data. And then, the XML template definition content is taken out from the memory, each parameter in the JSON is filled in the template to generate a PDF file, and finally, the PDF file is sent to a printer. The use of a PDF file has the advantage that a vector file is generated, and the printed file is not distorted and not affected by the resolution.
When outputting a menu PDF file to a printer for printing, the control may be specifically performed by using an iframe tag, by generating a tag definition src? And printing can be realized by using a printing mode of the spliced order message & tname & docnmae.
For example, when an order calls a local service printing process, a calling party writes a calling code, transfers a template, a printing mode and an order message; the local service receives the value parameter, and the order plaintext message is obtained after decryption; and calling the XML template file, generating a PDF file stream, and sending the file stream to a printer for printing.
Referring to fig. 3, a specific process of obtaining a print driver and a template file by a local service in an embodiment of the present invention includes the following steps:
301. monitoring the version number of a local printer driver and the version number of a template file;
302. judging whether the version number needs to be updated or not;
in this embodiment, the obtaining of the version number specifically includes two version numbers, one version number is in a server or a drive database, the other version number is in a memory of a local service, and the version number in the server and the version number in the memory of the local service are obtained through monitoring, specifically, the version number on the server is monitored first, if the version number is obtained from the server, the corresponding version number is obtained by jumping to the memory of the local service, and finally the two version numbers are compared, if the two version numbers are consistent, no processing is performed, step 301 is continuously performed, and if the two version numbers are not consistent, step 303 is performed.
303. If yes, downloading the printing template from the server;
304. acquiring a printer driver list from a local service;
305. recording all templates in a memory, and storing the templates in a KEY-VALUE format;
306. and starting the Web service jetty of the local service and monitoring the external printing request.
In this embodiment, the main purpose of starting the Web service jetty is to provide an http service interface for an external program, for example, access a website, and when the external program accesses based on the http service, a request including data content, a template identification number, a document type, client custom area data, and printer parameters is specifically initiated to a jetty container;
wherein the document type generally uses PDF data, mailpdfm1 is selected; the printer parameters then obtain the selected or conventionally used parameters based on the user ID.
In practical application, when a request is initiated to a jetty container, the request is optionally requested in the form of a request service URL, for example, the request is http:// ip: port/ydecx/service/mailpx/printdirect. pdf, where information such as data of a menu and a menu template is defined in the URL, specifically, the form is set, and the form setting mode is shown in table 1 below.
In this embodiment, the processing procedure may be to request a single receipt for printing service, or may be to request a batch receipt for printing service, and when the requests are in batch, the requests need to be spliced and connected in series for the receipt to form a character string for transmission, and specifically, each piece of data may be spliced through "@" to form a new character string.
TABLE 1
Figure BDA0002385932620000121
For example, when 2 surface sheets are processed in batch, 2 order messages are spliced by @ and encoded by using base64_ encode, as shown in table 2 below:
TABLE 2
Order message @
In this embodiment, when a request for printing a receipt from an external program to a local service is monitored, the local service obtains data in the request, decrypts the data to generate a receipt file, and sends the receipt file to a printer for printing, as shown in fig. 4, a printing processing flow of the receipt includes the following steps:
401. receiving a printing request sent by the external program;
402. calling local service, and analyzing the printing request to obtain a facebook ciphertext message;
in this step, in the process of parsing the print request, a call instruction for parsing the printer is further included, the call instruction may or may not be in the print request, a special requirement for the menu may be set in the request, and the specific setting may define the field in the manner in table 1 above.
403. Carrying out decryption processing on the surface order ciphertext message according to a decryption key set in the printing service to obtain an order message and a template identifier;
404. acquiring a corresponding template from a memory of a local service according to the template identifier;
in practical application, when a consistent template file cannot be found from the memory according to the template identifier, an external program may be requested to select a similar template file in the memory for modification and definition by specifically setting information of the template file, the definition principle is described below by taking an XML template file as an example, optionally, a definition table is set for definition, and the word size, the key, the content layout, and the like of the template file are set in the table, which is specifically shown in the following table 3:
TABLE 3
Figure BDA0002385932620000131
405. Filling the order message into a template to generate a PDF file stream;
in this embodiment, after the requested data DES is decrypted, the data is filled in a format defined by an XML template, and a PDF file is generated, where when the data is filled, specifically, a content name is displayed according to a name of each region defined by the XML template file, style defines a display style, such as font size, color, boldness, and the like, and a key-value is used to match and fill a field value.
The following description lists specific local service URLs:
URL=http://127.0.0.1:9090/ydecx/service/mailpx/printDirect.pdf?tname=xxx&value=xxxx&docname=xxx
extracting sender information in the URL, and filling according to < block > tag definition in the template, wherein the filling definition tag code is as follows: < block style ═ fjr _ style "top ═ 474" left ═ 3 "width ═ 177" height ═ "36.85" text ═ "{ TM2SENDER _ X }" alignment ═ "left"/>, this label code defines that the SENDER needs to draw from the position of the coordinates [474,3], width 177, height 36.85, font: song, style uses fjr _ style, and the padded data uses the TM2SENDER _ X data set. Where fjr style is defined as: < style name ═ fjr _ style "style ═" normal "size ═"8 "family ═" song body "/>.
Further, the data of the receiver is defined by filling, specifically, the data set TM2SENDER _ X in the template, and the tag indicates the data set of the SENDER, including name, telephone, company, and address information, specifically defined as shown in table 4 below.
Further, when an xml file < line > tag is encountered, a line needs to be drawn in the PDF.
Generating PDF as binary file flow, and calling printer driver to print PDF file.
TABLE 4
Figure BDA0002385932620000141
406. And sending the PDF file stream to a printer for printing.
In this embodiment, after decrypting the requested data DES, the data is filled in using the format defined by the XML template to generate a PDF file, wherein, when filling in the data, the content name is displayed according to the name of each region defined in the XML template file, style defines the display style, such as font size, color, boldface, etc., and the field value is matched and filled in using key-value to generate the PDF file, and finally the PDF file is sent to the printer. The PDF file used in the embodiment has the advantages that the generated vector file is not distorted and is not influenced by the resolution.
For the printer that is calling the local, the printer name is obtained specifically by the printers () function of the function ACTIONSCRIPT that calls the local service by JS.
Further, the call may be made by using an iframe tag, specifically defining src? And printing can be realized by using a printing mode of the spliced order message & tname & docnmae.
Through the implementation of the implementation mode, a printing request which is sent by an external program and/or a terminal and is provided with the receipt data to be printed and a calling instruction for calling the local printing service is obtained, a DES algorithm is called to decrypt the receipt data to obtain specific printing data, a corresponding printing template is inquired from a local service memory, information carried in an order message is filled in a template file stored in the local service to obtain a printing vector file, a corresponding printer is scheduled from the local service according to the calling instruction and is printed, the online configuration and the local storage of the template file are realized, the receipt is directly generated in the local service, the calling of printing drive is locally carried out, a browser or an external component is not required to be relied on, the problem of poor compatibility of a traditional printing control is solved, and the full-load work can be realized through the calling of the local printer, the printing efficiency and the use experience are improved.
Furthermore, the local service provides services by using a Jetty container, the interface supports a POST mode and a GET mode, and the service provision of local printing is provided based on Jetty, so that the performance of the system can be kept in an acceptable state even under the condition of a large number of service requests, and the Jetty is configured through XML or API; the default configuration can meet most of the requirements; embedding Jetty into an application requires very little code.
Referring to fig. 5, another embodiment of the method for locally printing a receipt according to the embodiment of the present invention specifically includes the following steps:
501. receiving external incoming parameters;
in this embodiment, a print request accessed based on an HTTP service provided locally from the outside is received, where the request includes data content of a menu, a template identification number, a document type, client-defined area data, and a printer parameter.
Further, before this step, the method further comprises: controlling the local service to start through a timer, and requesting the server monitoring interface to acquire the version number of the template file on the server;
comparing whether the version number is the same as the version number of the template file stored in the local service memory;
and if not, downloading the template file on the server side, and replacing the template file in the local service memory.
In practical application, when the template file on the server is downloaded and the template file in the local service memory is replaced, the method specifically comprises the following steps:
downloading a template file corresponding to the latest version number in the server;
converting the template file according to a key-value key _ value file stream form to obtain a template file storage table;
and replacing the template file storage table with the template file storage table in the local service memory.
502. Finding a template file defined in the memory according to the tname;
in this embodiment, after downloading the template file from the server, the local service stores the template file in the memory, and further includes allocating a unique identifier to the downloaded template file, establishing a correspondence based on the identifier and a version number of the template file to form a correspondence table, and after storing, the local service feeds back the correspondence to the server; when the portable document format conversion module is used, an external program selects different template files according to different orders to output corresponding order information, the order information calls the corresponding template files through the template identifiers, and then data in the plaintext message is filled in the template files to obtain the PDF files.
503. Filling the parameters according to the template key by using the parameter values in the parameters;
in the step, the DES algorithm is called to decrypt the order data to obtain an order message and a printing template type; the DES algorithm is provided by a server, and simultaneously comprises an encryption and decryption KEY, wherein the KEY is a vector KEY, the plaintext data of the receipt is obtained after received parameters are decrypted through the KEY, data in a JSON format and a KEY-VALUE format are formed, and the data defines the content required by the printing receipt, such as the name of a receiver and sender, a telephone address, a three-segment code, a single number, user-defined data and the like. And then, taking out XML template definition contents from the memory, and filling each parameter in JSON into the template.
504. And forming a PDF file stream, and outputting the PDF file stream to a printer for printing.
In this embodiment, if the simplex data includes at least two simplex messages, when forming a PDF file stream, the method includes: filling and writing information carried in the at least two surface single messages into the printing template respectively to obtain at least two surface single file streams;
sequentially connecting the at least two single file streams in series by adopting splicing characters to obtain a character string file stream;
and drawing the character string file streams into PDF (Portable document Format) surface lists one by one through a PDF conversion tool, then calling a preset calling instruction of the local printing service, scheduling a corresponding printer from a printer driver list in the local service, and printing the printing vector file.
Further, when printing, a corresponding printer is scheduled from the printer driver list in the local service to print the PDF file stream through a call instruction in the request sent by the external program, and the specific implementation may be: analyzing the printer parameters in the calling instruction; according to the printer parameters, calling printers () function of an ACTIIONCRIPT function of local service through a JS script in the Web service to inquire the corresponding printer name from the printer driver list; and sending the printing vector file to a printer corresponding to the printer name for printing.
Through the implementation of the embodiment, the template file configured by the server is downloaded to the local, when an external program sends the printing data to the local service, the data received by the local service is used for generating the printing file, and then the printing file is output to the printer driver to realize printing; in the process of printing the whole single surface, the printing is realized locally, the template is downloaded locally, the printing file is generated locally, the local printer driver is called for printing, the printing driver is called without depending on a browser kernel, the windows local printing driver is called directly, the problem that the traditional printing control is poor in compatibility is solved, meanwhile, the local printer is called to realize full-load work, and the printing efficiency and the use experience are improved.
With reference to fig. 6, the local receipt printing method in the embodiment of the present invention is described above, and a local receipt printing device in the embodiment of the present invention is described below, where an embodiment of the local receipt printing device in the embodiment of the present invention includes:
the system comprises an acquisition module 61, a processing module and a processing module, wherein the acquisition module is used for acquiring a printing request sent by an external program and/or a terminal, and the printing request comprises bill data to be printed and a calling instruction for calling local printing service;
the decryption module 62 is used for calling a DES algorithm to decrypt the order data to obtain an order message and a printing template type;
a file printing module 63, configured to query a corresponding printing template from a local service memory according to the type of the printing template, fill and write information carried in the order message into the printing template one by one, draw a printing vector file of the bill, and print the vector file; and the printing template is a template file synchronously obtained from the server through the server monitoring interface by the local service.
According to the technical scheme provided by the embodiment of the invention, the template file configured by the server is downloaded to the local, when an external program sends the printing data to the local service, the data received by the local service is used for generating the printing file, and then the printing file is output to the printer driver to realize printing. The printing service is characterized by: 1) the template is configured on line, so that the management and the maintenance are convenient; 2) and calling the printing drive in batches to realize full-load work of the printer. 3) The problem of poor compatibility of a traditional printing control is solved, local services do not rely on a browser kernel to call a printing driver, windows local printing drivers are directly called, and the problem of poor compatibility of the traditional printing control is solved.
Referring to fig. 7, an embodiment of a local print ticket device according to an embodiment of the present invention includes:
the system comprises an acquisition module 61, a processing module and a processing module, wherein the acquisition module is used for acquiring a printing request sent by an external program and/or a terminal, and the printing request comprises bill data to be printed and a calling instruction for calling local printing service;
the decryption module 62 is used for calling a DES algorithm to decrypt the order data to obtain an order message and a printing template type;
a file printing module 63, configured to query a corresponding printing template from a local service memory according to the type of the printing template, fill and write information carried in the order message into the printing template one by one, draw a printing vector file of the bill, and print the vector file; the printing template is a template file synchronously obtained from a server through a server monitoring interface by the local service;
and the printing module 64 is configured to schedule a corresponding printer from the printer driver list in the local service according to the call instruction, and print the print vector file.
Optionally, the print file generating module 63 includes a data filling unit 631, a splicing unit 632, a drawing unit 633 and a printing unit 634, and is specifically configured to:
the data filling unit 631 is configured to fill information carried in the at least two simplex messages into the printing template, respectively, to obtain at least two simplex document streams;
the splicing unit 632 is configured to sequentially concatenate the at least two single file streams by using splicing characters to obtain a character string file stream;
the drawing unit 633 is configured to draw the character string file streams into PDF surface sheets one by one through a PDF conversion tool;
the printing unit 634 is configured to invoke a preset invoking instruction of the local printing service, schedule a corresponding printer from a printer driver list in the local service, and print the print vector file.
Optionally, the printing unit 634 is specifically configured to:
analyzing the printer parameters in the calling instruction;
according to the printer parameters, calling printers () function of an ACTIIONCRIPT function of local service through a JS script in the Web service to inquire the corresponding printer name from the printer driver list;
and sending the printing vector file to a printer corresponding to the printer name for printing.
Optionally, the local print order device further includes an update module 64, which is specifically configured to:
controlling the local service to start through a timer, and requesting the server monitoring interface to acquire the version number of the template file on the server;
comparing whether the version number is the same as the version number of the template file stored in the local service memory;
and if not, downloading the template file on the server side, and replacing the template file in the local service memory.
Optionally, the update module 64 is specifically configured to:
downloading a template file corresponding to the latest version number in the server;
converting the template file according to a key-value key _ value file stream form to obtain a template file storage table;
and replacing the template file storage table with the template file storage table in the local service memory.
Optionally, the local print menu device further includes an http service module 65, which is specifically configured to: starting a jetty container service of the Web service in the local service, and providing an http service for requesting a bill printing operation for an external program and/or a terminal based on the jetty container service;
and the acquisition module is used for acquiring a printing request generated by the external program and/or the terminal according to the bill data to be printed through the http service.
Optionally, the local receipt printing device further includes a receipt data generation module 67, which is specifically configured to:
controlling the external program and/or the terminal to collect a surface single message to be printed, and performing DES encryption on the surface single message to obtain a ciphertext message;
selecting a corresponding template identification number, a document type of the receipt message and printer parameters according to the receipt message;
and generating a key _ value file stream according to the ciphertext message, the template identification number, the document type and the printer parameter according to the key-value key _ value file stream form, and embedding the key _ value file stream into the request.
The content is described based on the same embodiment as the local bill printing method of the present invention, and therefore, the content of the embodiment of the local bill printing device is not described in detail in this embodiment.
Fig. 6 to 7 describe the local printing receipt device in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the local printing receipt device in the embodiment of the present invention in detail from the perspective of hardware processing.
Fig. 8 is a schematic diagram of an embodiment of a local print sheet device 1000 according to the present invention, which may include one or more processors (CPUs) 1010 (e.g., one or more processors) and a memory 1020, one or more storage media 1030 (e.g., one or more mass storage devices) storing applications 1033 or data 1032, and may have a relatively large difference due to configuration or performance. Memory 1020 and storage media 1030 may be, among other things, transient or persistent storage. The program stored on storage medium 1030 may include one or more modules (not shown), each of which may include a sequence of instructions operating on XXX device 1000. Still further, the processor 1010 may be configured to communicate with the storage medium 1030 to execute a series of instructional operations on the storage medium 1030 on the local print ticket device 1000.
The local print ticket-based device 1000 may also include one or more power supplies 1040, one or more wired or wireless network interfaces 1050, one or more input-output interfaces 1060, and/or one or more operating systems 1031, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the local print booklet device configuration shown in fig. 8 does not constitute a limitation of local print booklet based devices, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
In this embodiment, the above-mentioned local print receipt apparatus may also be a system composed of two parts, namely, a mobile terminal and a local service device, where the local service device may be a desktop computer or a current printer device, and of course, the local service device is a device that is added with a local print service function set by the local print receipt method provided in the above-mentioned embodiment in the current device, and the local service device implements, by executing a program code of the method provided in the above-mentioned embodiment, a list formed by obtaining a template file from a service end and updating a driver of a local printer, and then starts a web service to monitor the print access of the mobile terminal, where before accessing the print function of the local service, the mobile terminal needs to encrypt the receipt data to be printed to form a key _ value file stream request, accessing the jetty container based on the request, providing data content containing the bill, a template identification number, a document type, client self-defined area data, printer parameters and the like for the local service equipment, decrypting the local service equipment according to the received request to obtain a plaintext, finding a corresponding template file in a memory of the local service, filling data to form a PDF file stream, and finally calling a local printer to print the PDF file stream.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, which may also be a volatile computer readable storage medium, having stored therein instructions, which when run on a computer, cause the computer to perform the steps of the local print receipt method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A local print order method, the local print order method comprising:
acquiring a printing request sent by an external program and/or a terminal, wherein the printing request comprises bill data to be printed;
decrypting the order data to obtain an order message and a printing template type;
inquiring a corresponding printing template from a local service memory according to the type of the printing template, filling information carried in the order message into the printing template one by one, drawing a printing vector file of the bill, and printing the vector file; and the printing template is a template file synchronously obtained by the local service from the server through the server monitoring interface.
2. The local print receipt method according to claim 1, further comprising, before the acquiring a print request sent by an external program and/or a terminal:
controlling the local service to start through a timer, and requesting the server monitoring interface to acquire the version number of the template file on the server;
comparing whether the version number is the same as the version number of the template file stored in the local service memory;
and if not, replacing the template file in the local service memory with the template file on the server.
3. The local print receipt method according to claim 2, wherein the replacing the template file in the local service memory with the template file on the server comprises:
downloading a template file corresponding to the latest version number in the server;
converting the template file according to a key-value key _ value file stream form to obtain a template file storage table;
and replacing the template file storage table with the template file storage table in the local service memory.
4. The local print receipt method according to claim 3, further comprising, after the replacing the template file in the local service memory with the template file on the server:
starting a jetty container service of the Web service in the local service, and providing an http service for requesting a bill printing operation for an external program and/or a terminal based on the jetty container service;
the acquiring of the printing request sent by the external program and/or the terminal comprises:
and acquiring a printing request generated by the external program and/or the terminal according to the bill data to be printed through the http service.
5. The local receipt printing method according to claim 4, wherein the external program and/or the terminal generates a print request according to receipt data to be printed, by:
the external program and/or the terminal collects a surface single message to be printed, and DES encryption is carried out on the surface single message to obtain a ciphertext message;
selecting a corresponding template identification number, a document type of the bill message and printer parameters according to the bill message;
and generating a key _ value file stream according to the ciphertext message, the template identification number, the document type and the printer parameter according to the key-value key _ value file stream form, and embedding the key _ value file stream into the request.
6. The local bill printing method according to claim 1, wherein if the bill data includes at least two bill messages, the method queries a corresponding printing template from a local service memory according to the type of the printing template, fills information carried in the order message into the printing template one by one, draws a printing vector file of the bill, and prints the vector file includes:
filling and writing information carried in the at least two surface single messages into the printing template respectively to obtain at least two surface single file streams;
sequentially connecting the at least two single file streams in series by adopting splicing characters to obtain a character string file stream;
drawing the character string file streams into PDF surface sheets one by one through a PDF conversion tool;
and calling a preset calling instruction of the local printing service, scheduling a corresponding printer from a printer driver list in the local service, and printing the printing vector file.
7. The local print voucher method of claim 6, wherein the preset call instruction for calling the local print service schedules a corresponding printer from a printer driver list in the local service, and printing the print vector file comprises:
analyzing the printer parameters in the calling instruction;
according to the printer parameters, calling printers () function of an ACTIIONCRIPT function of local service through a JS script in the Web service to inquire the corresponding printer name from the printer driver list;
and sending the printing vector file to a printer corresponding to the printer name for printing.
8. A local print booklet apparatus, said local print booklet apparatus comprising:
the system comprises an acquisition module, a processing module and a printing module, wherein the acquisition module is used for acquiring a printing request sent by an external program and/or a terminal, and the printing request comprises bill data to be printed;
the decryption module is used for decrypting the order data to obtain an order message and a printing template type;
the file printing module is used for inquiring a corresponding printing template from a local service memory according to the type of the printing template, filling information carried in the order message into the printing template one by one, drawing a printing vector file of the bill and printing the vector file; and the printing template is a template file synchronously obtained by the local service from the server through the server monitoring interface.
9. A local print booklet device, the local print booklet device comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invoking the instructions in the memory to cause the local print booklet device to perform the local print booklet method of any one of claims 1-7.
10. A computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the local print ticket method of any of claims 1-7.
CN202010098186.4A 2020-02-18 2020-02-18 Local printing face list method, device, equipment and storage medium Active CN111324317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010098186.4A CN111324317B (en) 2020-02-18 2020-02-18 Local printing face list method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010098186.4A CN111324317B (en) 2020-02-18 2020-02-18 Local printing face list method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111324317A true CN111324317A (en) 2020-06-23
CN111324317B CN111324317B (en) 2024-03-26

Family

ID=71163441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010098186.4A Active CN111324317B (en) 2020-02-18 2020-02-18 Local printing face list method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111324317B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949229A (en) * 2020-07-29 2020-11-17 唯品会(珠海)电子商务有限公司 Method and device for printing bill, computer equipment and storage medium
CN112035076A (en) * 2020-08-25 2020-12-04 上海中通吉网络技术有限公司 JSON-based printing analysis method, device, equipment and printing system
CN112036803A (en) * 2020-11-06 2020-12-04 上海洋漪信息技术有限公司 Method for generating general cross-border logistics distribution list
CN112506450A (en) * 2020-12-08 2021-03-16 杭州贝嘟科技有限公司 Method and device for generating water-washed label, electronic device and storage medium
CN112631531A (en) * 2020-12-24 2021-04-09 艾体威尔电子技术(北京)有限公司 Multi-channel cloud printing system
CN113238721A (en) * 2021-05-11 2021-08-10 浪潮软件股份有限公司 OFFICE template printing method for unified government affairs service
CN113434098A (en) * 2021-07-09 2021-09-24 北京京东振世信息技术有限公司 Printing function implementation method, device, electronic equipment, system and storage medium
CN114103506A (en) * 2021-09-28 2022-03-01 环盛智能(深圳)有限公司 Mobile phone rear film printing and cutting method
CN114780156A (en) * 2022-04-24 2022-07-22 中国工商银行股份有限公司 External operation equipment calling method and device
CN115061646A (en) * 2022-08-17 2022-09-16 深圳美云集网络科技有限责任公司 Method and device for printing bill, computer equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2645230A2 (en) * 2012-03-30 2013-10-02 Brother Kogyo Kabushiki Kaisha Template processing program and template processing method
CN103870984A (en) * 2014-02-28 2014-06-18 浪潮软件集团有限公司 Network invoice template control method based on cloud computing
WO2014090060A1 (en) * 2012-12-13 2014-06-19 Tencent Technology (Shenzhen) Company Limited Method and apparatus for processing a webpage
US20140240739A1 (en) * 2013-02-27 2014-08-28 Ricoh Company, Ltd. Apparatus, system and method for providing print manager service
CN106406560A (en) * 2016-08-29 2017-02-15 武汉开目信息技术股份有限公司 Method and system for outputting vector fonts of mechanical engineering characters in desktop operation system
EP3176689A1 (en) * 2015-12-03 2017-06-07 Ricoh Company Ltd. Print control program, print control method, computer and networked system
CN107340981A (en) * 2017-07-20 2017-11-10 深圳市瑞联智造科技有限公司 Material label print system
CN107450869A (en) * 2017-08-21 2017-12-08 百望电子发票数据服务有限公司 The online print system and method for a kind of PDF electronic invoices layout files
CN108572801A (en) * 2017-03-10 2018-09-25 菜鸟智能物流控股有限公司 Printing processing method and device, printing end, logistics platform and server
CN109218011A (en) * 2018-09-07 2019-01-15 山东中磁视讯股份有限公司 A kind of multimedia resources of mobile terminal verification method based on MD5
CN109271759A (en) * 2018-09-26 2019-01-25 杭州凯米科技有限公司 So file security reinforcement technique method based on Android platform
CN109542366A (en) * 2018-10-26 2019-03-29 金蝶软件(中国)有限公司 Method of printing, device, equipment and storage medium based on browser
CN110377248A (en) * 2019-07-30 2019-10-25 佛山青象科技有限公司 Bulk print control method, device and electronic equipment
CN110413954A (en) * 2019-07-29 2019-11-05 北京北大软件工程股份有限公司 Standard file printout method for previewing, device, equipment and storage medium
CN110780829A (en) * 2019-10-15 2020-02-11 武汉牌洲湾广告科技有限公司 Advertisement printing method, device, equipment and medium based on cloud service

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2645230A2 (en) * 2012-03-30 2013-10-02 Brother Kogyo Kabushiki Kaisha Template processing program and template processing method
WO2014090060A1 (en) * 2012-12-13 2014-06-19 Tencent Technology (Shenzhen) Company Limited Method and apparatus for processing a webpage
US20140240739A1 (en) * 2013-02-27 2014-08-28 Ricoh Company, Ltd. Apparatus, system and method for providing print manager service
CN103870984A (en) * 2014-02-28 2014-06-18 浪潮软件集团有限公司 Network invoice template control method based on cloud computing
EP3176689A1 (en) * 2015-12-03 2017-06-07 Ricoh Company Ltd. Print control program, print control method, computer and networked system
CN106406560A (en) * 2016-08-29 2017-02-15 武汉开目信息技术股份有限公司 Method and system for outputting vector fonts of mechanical engineering characters in desktop operation system
CN108572801A (en) * 2017-03-10 2018-09-25 菜鸟智能物流控股有限公司 Printing processing method and device, printing end, logistics platform and server
CN107340981A (en) * 2017-07-20 2017-11-10 深圳市瑞联智造科技有限公司 Material label print system
CN107450869A (en) * 2017-08-21 2017-12-08 百望电子发票数据服务有限公司 The online print system and method for a kind of PDF electronic invoices layout files
CN109218011A (en) * 2018-09-07 2019-01-15 山东中磁视讯股份有限公司 A kind of multimedia resources of mobile terminal verification method based on MD5
CN109271759A (en) * 2018-09-26 2019-01-25 杭州凯米科技有限公司 So file security reinforcement technique method based on Android platform
CN109542366A (en) * 2018-10-26 2019-03-29 金蝶软件(中国)有限公司 Method of printing, device, equipment and storage medium based on browser
CN110413954A (en) * 2019-07-29 2019-11-05 北京北大软件工程股份有限公司 Standard file printout method for previewing, device, equipment and storage medium
CN110377248A (en) * 2019-07-30 2019-10-25 佛山青象科技有限公司 Bulk print control method, device and electronic equipment
CN110780829A (en) * 2019-10-15 2020-02-11 武汉牌洲湾广告科技有限公司 Advertisement printing method, device, equipment and medium based on cloud service

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
GIANNETTI FABIO: "Paginate Dynamic and Web Content", 《DOCENG 2011: PROCEEDINGS OF THE 2011 ACM SYMPOSIUM ON DOCUMENT ENGINEERING》, 6 June 2012 (2012-06-06) *
孙秀洪;: "局域网打印管理问答", 网络安全和信息化, no. 12, 5 December 2019 (2019-12-05) *
王万兵;叶水生;肖璐;: "反XSS绕过过滤规则设计与研究", 计算机与数字工程, no. 04, 20 April 2018 (2018-04-20) *
陈昱;刘中金;赵威威;马原;石志强;孙利民;: "一种大规模的跨平台同源二进制文件检索方法", 计算机研究与发展, no. 07, 15 July 2018 (2018-07-15) *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949229A (en) * 2020-07-29 2020-11-17 唯品会(珠海)电子商务有限公司 Method and device for printing bill, computer equipment and storage medium
CN112035076A (en) * 2020-08-25 2020-12-04 上海中通吉网络技术有限公司 JSON-based printing analysis method, device, equipment and printing system
CN112036803A (en) * 2020-11-06 2020-12-04 上海洋漪信息技术有限公司 Method for generating general cross-border logistics distribution list
CN112036803B (en) * 2020-11-06 2021-01-22 上海洋漪信息技术有限公司 Method for generating general cross-border logistics distribution list
CN112506450A (en) * 2020-12-08 2021-03-16 杭州贝嘟科技有限公司 Method and device for generating water-washed label, electronic device and storage medium
CN112631531A (en) * 2020-12-24 2021-04-09 艾体威尔电子技术(北京)有限公司 Multi-channel cloud printing system
CN113238721A (en) * 2021-05-11 2021-08-10 浪潮软件股份有限公司 OFFICE template printing method for unified government affairs service
CN113238721B (en) * 2021-05-11 2022-10-04 浪潮软件股份有限公司 OFFICE template printing method for unified government affairs service
CN113434098A (en) * 2021-07-09 2021-09-24 北京京东振世信息技术有限公司 Printing function implementation method, device, electronic equipment, system and storage medium
CN113434098B (en) * 2021-07-09 2024-03-01 北京京东振世信息技术有限公司 Printing function realization method, device, electronic equipment, system and storage medium
CN114103506A (en) * 2021-09-28 2022-03-01 环盛智能(深圳)有限公司 Mobile phone rear film printing and cutting method
CN114780156A (en) * 2022-04-24 2022-07-22 中国工商银行股份有限公司 External operation equipment calling method and device
CN115061646A (en) * 2022-08-17 2022-09-16 深圳美云集网络科技有限责任公司 Method and device for printing bill, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111324317B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
CN111324317B (en) Local printing face list method, device, equipment and storage medium
US7734773B2 (en) Web system, communication control device, and storage medium
US6320587B1 (en) Font processing apparatus in network environment and method thereof
US6505252B1 (en) Data transfer utilizing preview data
US5848413A (en) Method and apparatus for accessing and publishing electronic documents
US7219168B2 (en) Method and system for a generic document processing device client
EP2575026A2 (en) Wireless printing from a device outside the network
KR101101828B1 (en) Image forming control apparatus, image forming apparatus and control method of the same
CN107346320B (en) Data calling method and device
US7315396B2 (en) Systems and methods for generating banner pages
US20050137937A1 (en) Method and apparatus for web-based label printing
US20030081788A1 (en) Secure printing to a web-based imaging print service
US20120166551A1 (en) Methods for emailing labels as portable data files and devices thereof
JP3782685B2 (en) Image server, client device, and control method thereof
US20030182137A1 (en) On-line print brokering system and method
CN113377309A (en) Variable two-dimensional code image real-time printing method, device, equipment and medium
JP2004110131A (en) Information processor, information processing method and information processing system
JP4935377B2 (en) Blog server device and information processing system
CN111045614A (en) Running statement printing method, nested file generation method, client and server
JP4159869B2 (en) Information providing apparatus, information providing method, information providing system, and information providing program
JP2006146932A (en) Image server and its operation control method
JP2004252248A (en) Electronic manuscript receiving and processing system
CN111124323A (en) Realization method for calling client printer interface based on Applet mode
JP5223962B2 (en) Blog server device and information processing system
JP2004206456A (en) Information providing device, information providing method, information providing system, and information providing program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant