CN107665102A - Method, apparatus, storage medium and the system of mobile print data - Google Patents
Method, apparatus, storage medium and the system of mobile print data Download PDFInfo
- Publication number
- CN107665102A CN107665102A CN201710806372.7A CN201710806372A CN107665102A CN 107665102 A CN107665102 A CN 107665102A CN 201710806372 A CN201710806372 A CN 201710806372A CN 107665102 A CN107665102 A CN 107665102A
- Authority
- CN
- China
- Prior art keywords
- printed
- data
- server
- data acquisition
- sent
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1218—Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
- G06F3/122—Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources with regard to computing resources, e.g. memory, CPU
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1238—Secure printing, e.g. user identification, user rights for device usage, unallowed content, blanking portions or fields of a page, releasing held jobs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
- G06F3/1286—Remote printer device, e.g. being remote from client or server via local network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
- G06F3/1287—Remote printer device, e.g. being remote from client or server via internet
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
- G06F3/1289—Remote printer device, e.g. being remote from client or server in server-client-printer device configuration, e.g. the server does not see the printer
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The present invention relates to a kind of method, apparatus, storage medium and the system of mobile print data.A kind of method of mobile print data, methods described include:The print request that computer equipment receiving terminal is sent, print request include data acquisition information to be printed;Computer equipment generates data acquisition authorization requests to be printed according to data acquisition information to be printed, and data acquisition authorization requests to be printed are sent to server, so that server returns to data to be printed according to data acquisition authorization requests to be printed;Computer equipment receives data to be printed, and data to be printed are sent to printing device and printed, the server is in external network, and the computer equipment, terminal, printing device are in internal network.In addition, additionally provide a kind of device, storage medium and the system of mobile print data.Method, apparatus, storage medium and the system of above-mentioned mobile print data reduce the resource consumption of terminal, there is provided more efficient, easily move printing.
Description
Technical field
The present invention relates to computer realm, more particularly to a kind of method, apparatus of mobile print data, storage medium and
System.
Background technology
When people move office using mobile device, the server of company is likely to be in external network outwards
Portion provides service, literary from the mobile device in internal network to being transmitted between corporate server in order to ensure the security of data
Part is allowed, but equipment of the corporate server internally in network, which actively sends data, not to be allowed, it is necessary to internal
Equipment in network asks to authorize to corporate server.
In such a scenario because corporate server actively can not send document to printer, traditional method is if desired
Printed document, it is necessary to first from corporate server by profile download to terminal, then from terminal to printer send document printed,
Not only occupied terminal space, and inconvenience is printed, resource consumption is big.
The content of the invention
Based on this, it is necessary to the data on the server in external network obtained for the terminal in internal network
The problem of inconvenient, resource consumption is big is internally printed on the printing device of network, there is provided a kind of method of mobile print data,
Device, storage medium and system.
A kind of method of mobile print data, methods described include:
The print request that computer equipment receiving terminal is sent, the print request include data acquisition information to be printed;
Computer equipment generates data acquisition authorization requests to be printed according to the data acquisition information to be printed, by described in
Data acquisition authorization requests to be printed are sent to server, so that the server please according to the data acquisition mandate to be printed
Ask and return to data to be printed;
Computer equipment receives the data to be printed, and the data to be printed are sent to printing device and printed,
The server is in external network, and the computer equipment, terminal, printing device are in internal network.
In one of the embodiments, before the step of print request that the computer equipment receiving terminal is sent, also
Including:
The terminal is sent in page end generates the instructions of data to be printed to the server;
The server according to the instruction calls data generate interface generation corresponding to data to be printed and it is described wait beat
Print data acquisition information;
The server sends the data acquisition information to be printed to the terminal.
In one of the embodiments, the step of print request that the computer equipment receiving terminal is sent, includes:
The print request that the computer equipment is sent by the background printing application reception terminal by page end.
In one of the embodiments, the computer equipment receives what the terminal was sent by WebSocket agreements
Print request.
A kind of device of mobile print data, applied in computer equipment, described device includes:
Receiving module, the print request sent for receiving terminal, the print request are believed including data acquisition to be printed
Breath;
Download module, will for generating data acquisition authorization requests to be printed according to the data acquisition information to be printed
The data acquisition authorization requests to be printed are sent to server, so that the server is awarded according to the data acquisition to be printed
Power request returns to data to be printed;
Print module, for receiving the data to be printed, the data to be printed are sent to printing device and beaten
Print, the server are in external network, and the computer equipment, terminal, printing device are in internal network.
A kind of computer-readable recording medium, computer-readable recording medium are located in computer equipment, it is characterised in that
Computer program is stored with the computer-readable recording medium, when the computer program is executed by processor so that institute
State computing device following steps:The print request that receiving terminal is sent, the print request are believed including data acquisition to be printed
Breath;Data acquisition authorization requests to be printed are generated according to the data acquisition information to be printed, by the data acquisition to be printed
Authorization requests are sent to server, so that the server returns to number to be printed according to the data acquisition authorization requests to be printed
According to;The data to be printed are received, the data to be printed are sent to printing device and printed, the server is in outer
Portion's network, the computer equipment, terminal, printing device are in internal network.
Method, apparatus, the storage medium of above-mentioned mobile print data, the number to be printed that computer equipment is sent by terminal
According to data to be printed corresponding to information from server download are obtained, terminal only needs to send data acquisition information to be printed, is not required to
Data to be printed are downloaded, reduce the resource consumption of terminal, terminal only needs to send print request to computer equipment, calculated
Machine equipment can download data to be printed automatically and complete to send data to be printed to printing device, there is provided more convenient and efficient
Mobile printing.
A kind of system of mobile print data, the system include:
Terminal, include data acquisition information to be printed for sending print request to computer equipment, the print request;
Computer equipment, the print request sent for receiving terminal.
Computer equipment is additionally operable to generate data acquisition authorization requests to be printed according to the data acquisition information to be printed,
The data acquisition authorization requests to be printed are sent to server, so that the server is according to the data acquisition to be printed
Authorization requests return to data to be printed.
Computer equipment is additionally operable to receive the data to be printed, and the data to be printed are sent to printing device and carried out
Printing, the server are in external network, and the computer equipment, terminal, printing device are in internal network.
In one of the embodiments, the terminal, which is additionally operable to send in page end, generates the instructions of data to be printed to institute
State server, the server is used for according to corresponding to the instruction calls data generate interface generation data to be printed and described
Data acquisition information to be printed, the server are additionally operable to send the data acquisition information to be printed to the terminal.
In one of the embodiments, the computer equipment is additionally operable to lead to by the background printing application reception terminal
Cross the print request of page end transmission.
In one of the embodiments, the computer equipment is additionally operable to receive the terminal by WebSocket agreements
The print request of transmission.
The system of above-mentioned mobile print data, terminal by the data acquisition information to be printed that the reception server is sent without
It is the data to be printed that direct the reception server is sent, reduces the resource consumption of terminal.Computer is sent by receiving terminal
Data acquisition information to be printed rather than the data to be printed that send of direct receiving terminal, reduce the resource of computer equipment
Consumption.Meanwhile terminal and the resource consumption of computer equipment reduction also imply that reduces data to be printed on network
Transmission time, and the process of the interaction between computer equipment and server is carried out automatically, provide the user it is more efficient,
Easily printing.
Brief description of the drawings
Figure 1A is the application environment schematic diagram of the method for mobile print data in one embodiment;
Fig. 1 is the schematic flow sheet of the method for mobile print data in one embodiment;
Fig. 2 is the systematic difference environment schematic of mobile print data in one embodiment;
Fig. 3 is the internal structure schematic diagram of the device of mobile print data in one embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not
For limiting the present invention.
It is appreciated that term " background printing application " used in the present invention, which can be used for description herein, is arranged on calculating
A print application on machine equipment, the print application for the first time install when be graphical interfaces, be all later
Automatic start when computer equipment is started shooting, is maintained at running background, and show without graphical interfaces.
Figure 1A is the application environment schematic diagram of one embodiment, and as shown in Figure 1A, the application environment includes internal network 10
With external network 20, can wherein be communicated between internal network 10 and external network 20 by network, its mode to communicate
Can be by the server in external network 20 for the computer equipment 110 in internal network 10 and terminal 130
220 send the request data that simultaneously the reception server 220 is returned, but the server 220 in external network 20 can not be actively
Data are sent to the computer equipment 110 in internal network 10 and terminal 130.The receiving terminal 130 of computer equipment 110 is sent out
The print request sent, print request include data acquisition information to be printed.Computer equipment 110 is believed according to data acquisition to be printed
Breath generates data acquisition authorization requests to be printed, and data acquisition authorization requests to be printed are sent to server 220, so that service
Device 220 returns to data to be printed according to data acquisition authorization requests to be printed.Computer equipment 110 receives the number to be printed
According to the data to be printed are sent to printing device 150 and printed.
Wherein, terminal 130 can be any mobile device that can connect WIFI.Such as smart mobile phone, intelligent watch, flat board
Computer etc..
Specifically, terminal 130 is an iPhone 7.
Wherein, computer equipment 110 can be a PC, server or portable computer.
Specifically, computer equipment 110 is a ThinkPad T470.
Wherein, printing device 150 can be any printing device for possessing printing function, and such as wired printer, WIFI are beaten
Print machine, infrared printing machine etc..
Specifically, printing device 150 is a HP P1108 monochrome laser printer.
As shown in figure 1, in one embodiment, there is provided a kind of method of mobile print data, including herein below:
Step S110, the print request that receiving terminal is sent, the print request include data acquisition information to be printed.
Wherein, print request is the request for printing data to be printed, for example sends one with specific by terminal
The computer instruction of form, the instruction, which is used to perform, prints data to be printed.For example print request can be the browser of terminal
Background printing with computer equipment is applied is connected and carries out the transmission that communicates, background printing application by WebSocket agreements
The printing of data to be printed is completed according to the print request received.
Wherein, using WebSocket serve end programs are included, the WebSocket takes the background printing on computer equipment
Business end program includes the computer program of one section of print request for receiving the data to be printed that user is sent by page end.
Wherein, the browser in terminal includes WebSocket client-side program, and the WebSocket client-side program includes
The computer program of the print request of one section of data to be printed sent by user.
Data acquisition information to be printed is the information for obtaining data to be printed, such as the acquisition of data to be printed
Location, such as http address, IP address, the physical label of equipment, the mark etc. of data to be printed.Data to be printed can be difference
The data of form, such as document, picture, electronic bill etc..
Data acquisition information to be printed can be various storage formats.Specifically, the form of data acquisition information to be printed
Can be the character string of JSON forms, the character string includes the download address of data to be printed and sends request of data to be printed
Subscriber identity information.When such as data to be printed are electronic bill, then the acquisition address of data to be printed is that electronic bill is servicing
Storage address on device, the subscriber identity information for sending data to be printed is the identity information for the user for generating the electronic bill.
Specifically, the electronic bill is the electronic invoice of PDF format.
Step S120, data acquisition authorization requests to be printed are generated according to data acquisition information to be printed, by number to be printed
Sent according to authorization requests are obtained to server, so that server returns to number to be printed according to data acquisition authorization requests to be printed
According to.
Wherein, data acquisition authorization requests to be printed are the requests for obtaining data to be printed.For example set by computer
The instruction of the standby acquisition data to be printed generated according to the download address of data to be printed.Specifically, data acquisition to be printed
Authorization requests can the electronic bills of the PDF according to download address and generate obtain the download address corresponding to PDF electronics
The instruction of bill.
Generating data acquisition authorization requests to be printed according to data acquisition information to be printed is completed by background printing application
's.Specific process is as follows, and background printing application receives data acquisition information to be printed first, is then obtained according to data to be printed
Breath of winning the confidence finds the download address of data to be printed, finally generates data acquisition to be printed according to the download address of data to be printed
Authorization requests.Specifically, background printing application receives the character string of a JSON form, the word of JSON forms is then parsed
The download request of the PDF electronic bills is downloaded in the download address of PDF electronic bills in symbol string, then generation.
Data acquisition authorization requests to be printed, which are sent to server, to be completed by background printing application, and background printing should
Instruction is sent with being generated according to the data acquisition authorization requests to be printed of above-mentioned generation, the transmission is by data acquisition mandate to be printed
Request is sent to the server specified.Specifically, background printing application receives the character string of a JSON form, then parse
The download address of the PDF electronic bills gone out in the character string of JSON forms, then the download of generation download PDF electronic bills please
Ask, then the download request for downloading PDF electronic bills is sent to the server corresponding to the download address.
Server returns to data to be printed according to data acquisition authorization requests to be printed to be completed by background printing application.
The download address of to be printed data of the download module of background printing application in data acquisition authorization requests to be printed, automatically
Complete the download to data to be printed on server.Specifically, background printing application receives the character string of a JSON form,
Then the download address of the PDF electronic bills in the character string of JSON forms is parsed, the PDF electronic bills are downloaded in then generation
Download request, the download request of download PDF electronic bills is then sent to the server corresponding to the download address, so
The download module of background printing application is automatically performed the download of PDF electronic bills according to the download address of PDF electronic bills afterwards.
Step S130, data to be printed are received, data to be printed are sent to printing device and printed, server is in
External network, computer equipment, terminal, printing device are in internal network.
Wherein, data to be printed are received, data to be printed, which are sent, and carry out printing to printing device is answered by background printing
With completion.The data to be printed that are downloaded to according to step S120, the software of background printing application call local printer connect
Mouthful, by calling, the reception of print data is treated in the software interface completion of local printer and the printing of print data is treated in realization
Operation.Specifically, background printing application receives the character string of a JSON form, then parses the character string of JSON forms
In PDF electronic bills download address, then generation download the PDF electronic bills download request, then by download PDF
The download request of electronic bill is sent to the server corresponding to the download address, then the download module root of background printing application
It is automatically performed the download of PDF electronic bills according to the download address of PDF electronic bills, then background printing is applied receiving
PDF electronic bills are sent to local printer, complete the printing to PDF electronic bills.
Server is in external network, and computer equipment, terminal, printing device are in internal network.Specifically, server
Can be the corporate server in external network, computer equipment can be a PC or server or portable computing
Machine, terminal can be a smart mobile phone.Printing device can be any printing device for possessing printing function, such as wired printing
Machine, WIFI printers, infrared printing machine etc..
In one embodiment, before step S110, in addition to:Terminal sends the finger for generating data to be printed in page end
Make to server, server data to be printed and data acquisition to be printed according to corresponding to instruction calls data generate interface generation
Information, server send the data acquisition information to be printed to the terminal.
Wherein, terminal sends the instruction for generating data to be printed in page end, and the instruction may include under data to be printed
The subscriber identity information of set address and data to be printed.In one embodiment, data acquisition information to be printed is PDF electronic tickets
According to acquisition information, the PDF electronic bills obtain the download address of information including PDF electronic bills and send PDF electronic bills
Subscriber identity information.
Terminal obtains the data message to be printed that user is inputted by page end, and terminal receives user and sends confirmation generation
The instruction of data message to be printed, then server receive the instruction for the generation data to be printed that terminal is sent in page end.
Wherein, data generation interface is the software interface of generation specific format data, and the specific format can be picture, text
Shelves or electronic bill etc..Such as the software interface that data generation interface is the electronic bill for generating PDF format, server receives use
The software interface of the generation PDF format electronic bill of itself is called, so after the instruction for the generation electronic bill that terminal is sent in family
The electronic bill of specific PDF format is generated afterwards.
Wherein, server data to be printed and data to be printed according to corresponding to instruction calls data generate interface generation obtain
Win the confidence breath, and data acquisition information to be printed is sent to terminal.Server selects according to the form of the data to be printed received
The software interface of generation data to be printed corresponding to selecting completes to treat the generation of print data and data acquisition information to be printed.
Specifically, data to be printed are the electronic bill of PDF format, and server receives the request call of generation PDF electronic bills
It is used for the software interface for handling PDF electronic bills on server, completes the life of the acquisition information to the electronic bill of the PDF format
Into wherein the acquisition information of PDF electronic bills includes the download address of PDF electronic bills and sends the use of the PDF electronic bills
Family identity information.
Specifically, terminal receives log-on message and logs in print platform webpage, print platform web displaying candidate ticket to be printed
According to type, target print bill type is received, the instruction of data to be printed, server root are generated according to target print bill type
Beaten according to the data generation interface of generation data to be printed corresponding to the form selection of the data to be printed received to complete to treat
The generation of printing evidence and data acquisition information to be printed.
Specifically, data to be printed are the electronic bill of PDF format, and server receives generation PDF electronic bills
It is used for the software interface for handling PDF electronic bills on request call server, completes the acquisition to the electronic bill of the PDF format
The acquisition information of the generation of information, wherein PDF electronic bills includes the download address of PDF electronic bills and sends the PDF electronics
The subscriber identity information of bill.
In one embodiment, the step of print request that computer equipment receiving terminal is sent, includes:
The print request that computer equipment is sent by the background printing application reception terminal by page end.
Wherein, the print request that computer equipment receiving terminal is sent is the print request sent by terminal by page end
And the background printing application for the receiving terminal for passing through computer equipment receives the print request to realize.Page end and background printing
The communication of application employs WebSocket agreements to realize.
Wherein, page end is client corresponding to server, and user can be with by the browser log-on webpage end in terminal
To be printed data of the generation with specific format.Specifically, user can generate PDF format by smart mobile phone log-on webpage end
Electronic bill.
The application program for an installation on a computing device is applied in background printing.The function of the application program is reception
The acquisition information for the data to be printed that terminal is sent, is treated according to corresponding to downloading from a server the acquisition information of data to be printed
Print data, data to be printed are finally subjected to printing on a local printer being connected with computer equipment.Tool
Body, such as data to be printed are the electronic invoice of PDF format, and background printing application receives the download address of PDF electronic bills,
According to the download address, the PDF electronic bills corresponding to are downloaded on computer equipment from server, finally by the PDF electronics
Bill is sent on a local printer being connected with computer equipment and printed.
In one embodiment, the print request that computer equipment is sent by WebSocket agreements receiving terminal.
Wherein, WebSocket agreements are a kind of new procotols based on TCP.It realizes browser and server
Full duplex (full-duplex) communicates --- and allow server actively to send information to client.
Wherein, using WebSocket serve end programs are included, the WebSocket takes the background printing on computer equipment
Business end program includes the computer program of one section of print request for receiving the data to be printed that user is sent by page end.
Wherein, the browser in terminal includes WebSocket client-side program, and the WebSocket client-side program includes
The computer program of the print request of one section of data to be printed sent by user.
Terminal sends the acquisition information of data to be printed by the page end of browser login service device, by using
WebSocket agreements, the background printing application communication that the page end in terminal can be directly and on computer equipment, so as to calculate
The print request that machine equipment can be sent with receiving terminal.
Specifically, WebSocket agreements are passed through between the background printing application on the page end and computer equipment of terminal
It can carry out data transmission to communicate between terminal and computer equipment, then computer equipment is direct the data received
Printed on the local printer being connected with computer equipment.
Specifically, the page end of terminal login service device, the WebSocket client-side program in page end perform one section and beaten
The instruction of PDF electronic bills is printed, the instruction includes the download address of PDF electronic bills and sends user's body of PDF electronic bills
Part information.The WebSocket service ends in background printing application on computer equipment receive the instruction and parsed therein
The download address of PDF electronic bills, then background printing is applied is somebody's turn to do according to one section of acquisition of the download address of PDF electronic bills execution
The instruction of PDF electronic bills, then server PDF electronic bills are sent to computer equipment.
As shown in Fig. 2 in one embodiment, there is provided a kind of system of mobile print data, the system include:
Terminal 10, believe for sending print request to computer equipment, the print request including data acquisition to be printed
Breath.
Wherein, terminal 10 by page end or locally applied sends above-mentioned print request to computer equipment 20.
Wherein, print request is the request for printing data to be printed.Such as print request can be a kind of with spy
The computer instruction for the formula that fixes, the instruction are used to complete the printing for treating print data, and the print command includes data to be printed
Acquisition information.Specifically, the print request can be a kind of print command of printing PDF electronic bills, the print command bag
Include the download address of PDF electronic bills and the user profile of generation PDF electronic bills.
Computer equipment 20, the print request sent for receiving terminal.
Wherein, computer equipment 20 generates data acquisition authorization requests to be printed according to data acquisition information to be printed, will
Data acquisition authorization requests to be printed are sent to server, are treated so that server returns according to data acquisition authorization requests to be printed
Print data.
Computer equipment 20 is additionally operable to receive print request by background printing application, and background printing is applied from receiving
Print request in parse corresponding to data to be printed download address, according to the download address of data to be printed from server
It is upper to obtain data to be printed.
Wherein, data acquisition authorization requests to be printed are the requests for obtaining data to be printed.For example set by computer
The instruction of the standby acquisition data to be printed generated according to the download address of data to be printed.Specifically, data acquisition to be printed
Authorization requests can the electronic bills of the PDF according to download address and the instruction of PDF electronic bills specified of the acquisition that generates.
Computer equipment 20 is additionally operable to receive data to be printed, and data to be printed are sent to printing device and printed,
Server is in external network, and computer equipment 20, terminal 10, printing device are in internal network.
Specifically, server can be the corporate server in external network, and computer equipment 20 can be one
PC or server or portable computer, terminal 10 can be a smart mobile phone.Printing device can possess printing to be any
The printing device of function, such as wired printer, WIFI printers, infrared printing machine.
In one embodiment, terminal 10, which is additionally operable to send in page end, generates the instructions of data to be printed to server,
Server is used for data to be printed and data acquisition to be printed letter according to corresponding to the instruction calls data generate interface generation
Breath, server are additionally operable to send data acquisition information to be printed to terminal 10.
Wherein, the instruction for the generation data to be printed that terminal is sent in page end, the instruction can include data to be printed
Download address and send the subscriber identity informations of data to be printed.In one embodiment, data acquisition information to be printed is
The acquisition information of PDF electronic bills, the PDF electronic bills, which obtain information, to be included the download address of PDF electronic bills and sends PDF
The subscriber identity information of electronic bill.
Terminal obtains the data message to be printed that user is inputted by page end, and terminal receives user and sends confirmation generation
The instruction of data message to be printed, then server receive the instruction for the generation data to be printed that terminal is sent in page end.
Wherein, data generation interface is the software interface of generation specific format data, and the specific format can be picture, text
Shelves or electronic bill etc..Such as the software interface that data generation interface is the electronic bill for generating PDF format, server receives use
The software interface of the generation PDF format electronic bill of itself is called, so after the instruction for the generation electronic bill that terminal is sent in family
The electronic bill of specific PDF format is generated afterwards.
Wherein, server data to be printed and data to be printed according to corresponding to instruction calls data generate interface generation obtain
Win the confidence breath, and data acquisition information to be printed is sent to terminal.Server selects according to the form of the data to be printed received
The software interface of generation data to be printed corresponding to selecting completes to treat the generation of print data and data acquisition information to be printed.
Specifically, data to be printed are the electronic bill of PDF format, and server receives the request call of generation PDF electronic bills
It is used for the software interface for handling PDF electronic bills on server, completes the life of the acquisition information to the electronic bill of the PDF format
Into wherein the acquisition information of PDF electronic bills includes the download address of PDF electronic bills and sends the use of the PDF electronic bills
Family identity information.
Specifically, terminal receives log-on message and logs in print platform webpage, print platform web displaying candidate ticket to be printed
According to type, target print bill type is received, the instruction of data to be printed, server root are generated according to target print bill type
Beaten according to the data generation interface of generation data to be printed corresponding to the form selection of the data to be printed received to complete to treat
The generation of printing evidence and data acquisition information to be printed.
Specifically, data to be printed are the electronic bill of PDF format, and server receives generation PDF electronic bills
It is used for the software interface for handling PDF electronic bills on request call server, completes the acquisition to the electronic bill of the PDF format
The acquisition information of the generation of information, wherein PDF electronic bills includes the download address of PDF electronic bills and sends the PDF electronics
The subscriber identity information of bill.
Wherein, the instruction for generating data to be printed is to obtain the acquisition information of data to be printed from server.Such as this
Instruct to generate the instruction of specific format data to be printed, terminal is by performing the instructions of the generation specific format data to be printed
The acquisition information of the specific format data to be printed of server transmission can be received.Specifically, the instruction is generation PDF lattice
The instruction of the electronic bill of formula, terminal can receive the download for the electronic bill that server is sent by performing the instruction
Location and the subscriber identity information for sending the generation electronic bill.
Specifically, terminal sends the instruction of the electronic bill of generation PDF format in page end to server, server calls
Generate the electronic bill of PDF format and the acquisition information of PDF electronic bills corresponding to the software interface generation of PDF electronic bills.
Wherein, the acquisition information of the PDF electronic bills is the character string of JSON forms, and the character string of the JSON forms includes PDF electricity
The download address of sub- bill and the subscriber identity information of generation PDF electronic bills.
Specifically, page end is the webpage corresponding to a server, and user is completed by log-on webpage on page end
Data to be printed are filled in, and then send print request to computer equipment in page end.
In one embodiment, computer equipment is additionally operable to send by page end by background printing application receiving terminal
Print request.
Wherein, the print request that computer equipment receiving terminal is sent is to send print request by page end by terminal,
And the background printing application for the receiving terminal for passing through computer equipment receives the print request to realize.Page end and background printing
The communication of application employs WebSocket agreements to realize.
Communication between background printing on the page end and computer equipment of terminal application is realized by WebSocket
File transmission and the local printing directly connected at computer equipment end that can be directly realized by between terminal and computer equipment
Machine is printed.
In one embodiment, the printing that computer equipment is additionally operable to send by WebSocket agreements receiving terminal please
Ask.
Wherein, the page end of terminal login service device, the print request of data to be printed is sent, by using
WebSocket agreements, the background printing application communication that the page end in terminal can be directly and on computer equipment, so as to calculate
The print request that machine equipment can be sent with receiving terminal.
Communication between background printing on the page end and computer equipment of terminal application is realized by WebSocket
File transmission and the local printing directly connected at computer equipment end that can be directly realized by between terminal and computer equipment
Machine is printed, without that could realize the transmission and printing of file by buying a printer with WIFI.
As shown in figure 3, a kind of device of mobile print data, applied in computer equipment, described device includes:
Receiving module 1110, the print request sent for receiving terminal, the print request obtain including data to be printed
Win the confidence breath.
Download module 1120, please for generating data acquisition mandate to be printed according to the data acquisition information to be printed
Ask, the data acquisition authorization requests to be printed are sent to server, so that the server is according to the data to be printed
Obtain authorization requests and return to data to be printed.
Print module 1130, for receiving the data to be printed, the data to be printed are sent to printing device
Row printing, the server are in external network, and the computer equipment, terminal, printing device are in internal network.
In one embodiment, data acquisition information to be printed is the data to be printed that terminal sends generation in page end
Instruction to the server so that server according to corresponding to the instruction calls data generate interface generation data to be printed and
Data acquisition information to be printed, data acquisition information to be printed are used to send to terminal.
In one embodiment, receiving module 1110 is additionally operable to pass through webpage by the background printing application reception terminal
Hold the print request sent.
In one embodiment, download module 1120 is additionally operable to be printed according to the data acquisition information generation to be printed
Data acquisition authorization requests, the data acquisition authorization requests to be printed are sent to server so that the server according to
The data acquisition authorization requests to be printed return to data to be printed.
In one embodiment, print module 1130 is additionally operable to receive the data to be printed, by the data to be printed
Send to printing device and printed, the server is in external network, the computer equipment, terminal, at printing device
In internal network.
In one embodiment, there is provided a kind of computer-readable recording medium, computer-readable recording medium is positioned at calculating
In machine equipment, computer program is stored with computer-readable recording medium, when computer program is executed by processor so that place
Manage device and perform following steps:The print request that receiving terminal is sent, print request include data acquisition information to be printed;According to treating
Print data obtains information and generates data acquisition authorization requests to be printed, and data acquisition authorization requests to be printed are sent to service
Device, so that server returns to data to be printed according to data acquisition authorization requests to be printed;Data to be printed are received, will be to be printed
Data send to printing device and printed, and server is in external network, and computer equipment, terminal, printing device are in interior
Portion's network.
In one embodiment, the data acquisition information to be printed is that the terminal is to be printed in page end transmission generation
The instruction of data is to the server, so that the server is treated according to corresponding to the instruction calls data generate interface generation
Print data and the data acquisition information to be printed, data acquisition information to be printed are used to send to terminal.
In one embodiment, the step of print request that the computer equipment receiving terminal is sent, includes:
The print request that the computer equipment is sent by the background printing application reception terminal by page end.
In one embodiment, the computer equipment receives the printing of the terminal transmission by WebSocket agreements
Request.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of method of mobile print data, methods described include:
The print request that computer equipment receiving terminal is sent, the print request include data acquisition information to be printed;
Computer equipment generates data acquisition authorization requests to be printed according to the data acquisition information to be printed, waits to beat by described
Print data acquisition authorization requests are sent to server, so that the server returns according to the data acquisition authorization requests to be printed
Return data to be printed;
Computer equipment receives the data to be printed, and the data to be printed are sent to printing device and printed, described
Server is in external network, and the computer equipment, terminal, printing device are in internal network.
2. according to the method for claim 1, it is characterised in that the print request that the computer equipment receiving terminal is sent
The step of before, in addition to:
The terminal is sent in page end generates the instructions of data to be printed to the server;
The server data to be printed and number to be printed according to corresponding to the instruction calls data generate interface generation
According to acquisition information;
The server sends the data acquisition information to be printed to the terminal.
3. according to the method for claim 1, it is characterised in that the print request that the computer equipment receiving terminal is sent
The step of include:
The print request that the computer equipment is sent by the background printing application reception terminal by page end.
4. according to the method described in any one of claims 1 to 3, it is characterised in that the computer equipment passes through WebSocket
Agreement receives the print request that the terminal is sent.
5. a kind of system of mobile print data, it is characterised in that the system includes:
Terminal, include data acquisition information to be printed for sending print request to computer equipment, the print request;
Computer equipment, the print request sent for receiving terminal;
The computer equipment is additionally operable to generate data acquisition authorization requests to be printed according to the data acquisition information to be printed,
The data acquisition authorization requests to be printed are sent to server, so that the server is according to the data acquisition to be printed
Authorization requests return to data to be printed;
The computer equipment is additionally operable to receive the data to be printed, and the data to be printed are sent to printing device and carried out
Printing, the server are in external network, and the computer equipment, terminal, printing device are in internal network.
6. system according to claim 5, it is characterised in that the terminal is additionally operable to be printed in page end transmission generation
To the server, the server is used to treat according to corresponding to the instruction calls data generate interface generation for the instruction of data
Print data and the data acquisition information to be printed, the server are additionally operable to send the data acquisition information to be printed
To the terminal.
7. system according to claim 5, it is characterised in that the computer equipment is additionally operable to by background printing application
Receive the print request that the terminal is sent by page end.
8. system according to claim 5, it is characterised in that the computer equipment is additionally operable to assist by WebSocket
View receives the print request that the terminal is sent.
9. a kind of device of mobile print data, applied in computer equipment, described device includes:
Receiving module, the print request sent for receiving terminal, the print request include data acquisition information to be printed;
Download module, for generating data acquisition authorization requests to be printed according to the data acquisition information to be printed, by described in
Data acquisition authorization requests to be printed are sent to server, so that the server please according to the data acquisition mandate to be printed
Ask and return to data to be printed;
Print module, for receiving the data to be printed, the data to be printed are sent to printing device and printed, institute
State server and be in external network, the computer equipment, terminal, printing device are in internal network.
10. a kind of computer-readable recording medium, computer-readable recording medium is located in computer equipment, it is characterised in that
Computer program is stored with the computer-readable recording medium, when the computer program is executed by processor so that institute
State computing device following steps:The print request that receiving terminal is sent, the print request are believed including data acquisition to be printed
Breath;Data acquisition authorization requests to be printed are generated according to the data acquisition information to be printed, by the data acquisition to be printed
Authorization requests are sent to server, so that the server returns to number to be printed according to the data acquisition authorization requests to be printed
According to;The data to be printed are received, the data to be printed are sent to printing device and printed, the server is in outer
Portion's network, the computer equipment, terminal, printing device are in internal network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710806372.7A CN107665102A (en) | 2017-09-08 | 2017-09-08 | Method, apparatus, storage medium and the system of mobile print data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710806372.7A CN107665102A (en) | 2017-09-08 | 2017-09-08 | Method, apparatus, storage medium and the system of mobile print data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107665102A true CN107665102A (en) | 2018-02-06 |
Family
ID=61097373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710806372.7A Pending CN107665102A (en) | 2017-09-08 | 2017-09-08 | Method, apparatus, storage medium and the system of mobile print data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107665102A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599296A (en) * | 2019-08-23 | 2019-12-20 | 达疆网络科技(上海)有限公司 | Method for realizing Web-end automatic order printing service based on Netty and WebSocket protocols |
CN110825540A (en) * | 2019-11-14 | 2020-02-21 | 中国民航信息网络股份有限公司 | Ticket image generation method and device |
CN110888613A (en) * | 2019-11-28 | 2020-03-17 | 北京中启智源数字信息技术有限责任公司 | Printing method, printing device, printing system and electronic equipment |
CN111381786A (en) * | 2020-03-10 | 2020-07-07 | 江苏苏宁物流有限公司 | Text printing method and device, computer equipment and storage medium |
CN111845143A (en) * | 2020-07-10 | 2020-10-30 | 上海悦易网络信息技术有限公司 | Method and device for printing by handheld device |
CN111897501A (en) * | 2020-08-05 | 2020-11-06 | 南昌梦想软件有限公司 | Data cloud printing method, device, storage medium and system |
CN111966400A (en) * | 2019-05-20 | 2020-11-20 | 上海寒武纪信息科技有限公司 | Instruction processing method and device and related product |
WO2021051664A1 (en) * | 2019-09-19 | 2021-03-25 | 益萃网络科技(中国)有限公司 | Printing method and apparatus, computer device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1932749A (en) * | 2005-09-13 | 2007-03-21 | 株式会社理光 | Network printing method and computer program product |
WO2011102218A1 (en) * | 2010-02-22 | 2011-08-25 | Canon Kabushiki Kaisha | Printing system, control method, storage client apparatus, printing apparatus, and web application server |
CN103593150A (en) * | 2013-11-28 | 2014-02-19 | 深圳中兴网信科技有限公司 | Terminal, server and method based on webpage print bar code |
-
2017
- 2017-09-08 CN CN201710806372.7A patent/CN107665102A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1932749A (en) * | 2005-09-13 | 2007-03-21 | 株式会社理光 | Network printing method and computer program product |
WO2011102218A1 (en) * | 2010-02-22 | 2011-08-25 | Canon Kabushiki Kaisha | Printing system, control method, storage client apparatus, printing apparatus, and web application server |
CN103593150A (en) * | 2013-11-28 | 2014-02-19 | 深圳中兴网信科技有限公司 | Terminal, server and method based on webpage print bar code |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111966400A (en) * | 2019-05-20 | 2020-11-20 | 上海寒武纪信息科技有限公司 | Instruction processing method and device and related product |
CN111966400B (en) * | 2019-05-20 | 2024-07-19 | 上海寒武纪信息科技有限公司 | Instruction processing method and device and related products |
CN110599296A (en) * | 2019-08-23 | 2019-12-20 | 达疆网络科技(上海)有限公司 | Method for realizing Web-end automatic order printing service based on Netty and WebSocket protocols |
WO2021051664A1 (en) * | 2019-09-19 | 2021-03-25 | 益萃网络科技(中国)有限公司 | Printing method and apparatus, computer device and storage medium |
CN110825540A (en) * | 2019-11-14 | 2020-02-21 | 中国民航信息网络股份有限公司 | Ticket image generation method and device |
CN110888613A (en) * | 2019-11-28 | 2020-03-17 | 北京中启智源数字信息技术有限责任公司 | Printing method, printing device, printing system and electronic equipment |
CN110888613B (en) * | 2019-11-28 | 2024-03-26 | 北京中启智源数字信息技术有限责任公司 | Printing method, printing device, printing system and electronic equipment |
CN111381786A (en) * | 2020-03-10 | 2020-07-07 | 江苏苏宁物流有限公司 | Text printing method and device, computer equipment and storage medium |
CN111381786B (en) * | 2020-03-10 | 2022-08-19 | 江苏苏宁物流有限公司 | Text printing method and device, computer equipment and storage medium |
CN111845143A (en) * | 2020-07-10 | 2020-10-30 | 上海悦易网络信息技术有限公司 | Method and device for printing by handheld device |
CN111845143B (en) * | 2020-07-10 | 2022-03-18 | 上海万物新生环保科技集团有限公司 | Method and device for printing by handheld device |
CN111897501A (en) * | 2020-08-05 | 2020-11-06 | 南昌梦想软件有限公司 | Data cloud printing method, device, storage medium and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107665102A (en) | Method, apparatus, storage medium and the system of mobile print data | |
CN105718225B (en) | A kind of cloud print service system and its application method | |
US6922258B2 (en) | Method and apparatus for printing remote images using a mobile device and printer | |
US9001355B2 (en) | Methods and structure for simplified enterprise printing from mobile devices | |
CN105611112B (en) | Multifunctional image forms device | |
US10225416B2 (en) | Server storing authentication information in association with device information in storage | |
US10146564B2 (en) | Server apparatus, image forming apparatus, information processing apparatus, image forming control method, and image forming control program | |
US9203817B2 (en) | Multifunction apparatus and multifunction apparatus control system | |
US10225254B2 (en) | Server transmitting device information assigned to service identification information | |
US20110035785A1 (en) | Information processing system, control method thereof and storage medium | |
US20130179961A1 (en) | Information processing system control method, intermediate service device, authentication method, and storage medium | |
US9361053B2 (en) | Confidential-sender email addresses for printing | |
US20150124278A1 (en) | Printing with payment validation | |
CN102547011B (en) | For generation of method and the imaging device of user interface screen | |
US9286462B2 (en) | Apparatus and method for automatic login | |
CN111897501A (en) | Data cloud printing method, device, storage medium and system | |
CN106066774A (en) | For providing the method for cloud print service and performing equipment and the system of the method | |
EP1241575A2 (en) | System and method for distributed processing | |
US8559028B2 (en) | Multifunction apparatus | |
CN110347355A (en) | Cloud Method of printing, equipment and computer readable storage medium | |
CN103377011B (en) | A kind of moving printing method of public network | |
US20180220041A1 (en) | Image Forming Method for Private Output Using Mobile Terminal | |
CN101770347A (en) | Printing system and printing method thereof | |
CN107609953A (en) | The quick treating method and apparatus of order | |
CN110633443A (en) | Method, device, equipment and medium for in-page data communication |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180206 |