CN109144435A - Data-printing method and device - Google Patents
Data-printing method and device Download PDFInfo
- Publication number
- CN109144435A CN109144435A CN201810943250.7A CN201810943250A CN109144435A CN 109144435 A CN109144435 A CN 109144435A CN 201810943250 A CN201810943250 A CN 201810943250A CN 109144435 A CN109144435 A CN 109144435A
- Authority
- CN
- China
- Prior art keywords
- format
- data
- initial data
- file
- printed
- 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/1203—Improving or facilitating administration, e.g. print management
- G06F3/1208—Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
-
- 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/1253—Configuration of print job parameters, e.g. using UI at the client
-
- 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/128—Direct printing, e.g. sending document file, using memory stick, printing from a camera
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The disclosure is directed to a kind of data-printing method and devices.This method comprises: receiving the initial data for the file to be printed that transmitting terminal is sent, the initial data is the data that the file to be printed is shown or stored in the transmitting terminal;Rendering processing is carried out to the initial data, to obtain the corresponding print data of the initial data, the print data is the data that printing device can identify;The file to be printed is printed out according to the print data.The disclosure can realize the printing of file without installing printing drive software, so as to be obviously improved the comfort level of file printout.
Description
Technical field
This disclosure relates to printing technique field more particularly to a kind of data-printing method and device.
Background technique
Existing file printing method usually require client install printing drive software in file to be printed into
Row rendering processing to be converted into the print data of general format or professional format that printing device can identify, and will turn
Print data after changing is sent to printing device by direct-connected cable or wireless tunnel, is just able to achieve text to be printed in this way
The printout of part.Based on above-mentioned Method of printing it is found that being either both needed to pre- in computer client still in mobile client
The specific printing drive software of first installation is just able to achieve the printout of file, this can not just accomplish to print at any time.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides a kind of data-printing method and device.Institute
It is as follows to state technical solution:
According to the first aspect of the embodiments of the present disclosure, a kind of data-printing method is provided, comprising:
The initial data for the file to be printed that transmitting terminal is sent is received, the initial data is the file to be printed in institute
State the data that transmitting terminal is shown or stored;
Rendering processing is carried out to the initial data, to obtain the corresponding print data of the initial data, the printing
Data are the data that printing device can identify;
The file to be printed is printed out according to the print data.
In one embodiment, described that rendering processing is carried out to the initial data, it is corresponding to obtain the initial data
Print data include:
The format of the initial data is identified, with judge the initial data format and preset format whether
Match, the preset format includes object format;
When the format of the initial data is matched with the object format, rendering processing is carried out to the initial data,
The initial data is converted to the print data that can be identified by the printing device.
In one embodiment, the preset format further includes parameter format, described to render to the initial data
Processing, to obtain the corresponding print data of the initial data further include:
When the format of the initial data is mismatched with the object format and is matched with the parameter format, acquisition pair
The pre-processing instruction that the initial data formats;
The format of the initial data is converted into the school to match with the object format according to the pre-processing instruction
Positive format.
In one embodiment, described that rendering processing is carried out to the initial data, it is corresponding to obtain the initial data
Print data further include:
When the format of the initial data and the object format and the parameter format mismatch, sent out to server
Pretreatment is sent to request, the pretreatment request carries the information of the initial data and the object format;
Receive the correction data based on the initial data that the server responds the pretreatment request and returns, institute
The format and the object format for stating correction data match.
In one embodiment, the format to the initial data, which identify, includes:
The file format for obtaining the initial data and the font format in file;
Font format in the file format and the file and the preset format in system format library are carried out pair
Than with the relationship of the format of the determination initial data and the preset format.
In one embodiment, the initial data for receiving the file to be printed that transmitting terminal is sent includes:
The multiple communication port for monitoring the printing device setting, pass through the multiple communication ends to receive the transmitting terminal
The initial data for the file to be printed that any one communication port in mouthful is sent, the multiple communication port include connection client
It holds, the communication port of Internet of Things platform and storage medium.
According to the second aspect of an embodiment of the present disclosure, a kind of data-printing device is provided, comprising:
Module is obtained, the initial data of the file to be printed for receiving transmitting terminal transmission, the initial data is described
The data that file to be printed is shown or stored in the transmitting terminal;
Rendering module, for carrying out rendering processing to the initial data, to obtain the corresponding printing of the initial data
Data, the print data are the data that printing device can identify;
Print module, for being printed out according to the print data to the file to be printed.
In one embodiment, the rendering module includes:
Detection unit identifies for the format to the initial data, with judge the format of the initial data with
Whether preset format matches, and the preset format includes object format;
Rendering unit, for when the format of the initial data is matched with the object format, to the initial data
Rendering processing is carried out, the initial data is converted to the print data that can be identified by printing device.
In one embodiment, the preset format further includes parameter format, the rendering module further include:
First pretreatment unit, for when the initial data format and the object format mismatch and with the ginseng
When examining format match, the pre-processing instruction formatted to the initial data is obtained;
Unit is corrected, for being converted into the format of the initial data and the target lattice according to the pre-processing instruction
The correction format that formula matches.
In one embodiment, the rendering module further include:
Second pretreatment unit, it is equal for the format and the object format and the parameter format when the initial data
When mismatch, pretreatment request is sent to server, the pretreatment request carries the initial data and the target
The information of format;
Receiving unit, for receive the server respond it is described pretreatment request and return based on the initial data
Correction data, the format of the correction data matches with the object format.
In one embodiment, the detection unit includes:
Detection sub-unit, the font format in file format and file for obtaining the initial data;
Comparing subunit, for by the file format and the file font format and system format library in
The preset format compares, with the relationship of the format of the determination initial data and the preset format.
According to the third aspect of an embodiment of the present disclosure, a kind of data-printing device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The initial data for the file to be printed that transmitting terminal is sent is received, the initial data is the file to be printed in institute
State the data that transmitting terminal is shown or stored;
Rendering processing is carried out to the initial data, to obtain the corresponding print data of the initial data, the printing
Data are the data that printing device can identify;
The file to be printed is printed out according to the print data.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with
Machine instruction, when which is executed by processor the step of realization first aspect any embodiment the method.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The technical solution passes through the initial data for receiving file to be printed, and in the inside of printing device to the received original of institute
Beginning data carry out rendering processing, to obtain the print data that can be identified by printing device, are based ultimately upon the print data to realize
The printout of file to be printed.So, which can realize to treat by the inter-process of printing device and beat
The rendering and output of printed text part, therefore can effectively avoid necessity that various printing drive softwares are installed in all kinds of clients
Property, the printing at any time of file can be so realized, to be obviously improved the comfort level of file printout.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the step flow chart of data-printing method shown according to an exemplary embodiment;
Fig. 2 is the flow chart shown according to an exemplary embodiment that rendering processing is carried out to initial data;
Fig. 3 is the flow chart of data-printing method shown according to an exemplary embodiment;
Fig. 4 is the module map one of data-printing device shown according to an exemplary embodiment;
Fig. 5 is the module map two of data-printing device shown according to an exemplary embodiment;
Fig. 6 is the module map three of data-printing device shown according to an exemplary embodiment;
Fig. 7 is the module map four of data-printing device shown according to an exemplary embodiment;
Fig. 8 is the module map five of data-printing device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Method of printing in the related technology usually requires to install specific printing drive software in client, and passes through this dozen
Print drive software carries out rendering processing come the file to be printed of document and the formats such as picture to client application, with
It is converted into the print data of the general format or professional format that can be identified by printing device, then by the print data after conversion
It is sent to printing device by channels such as internet, local area network or direct-connected cables, to realize that the printing of file to be printed is defeated
Out.But either in computer client still in mobile client, require that specific printing drive software is installed in advance
It is able to achieve the printout of file, therefore can not accomplish to print at any time.
Certainly, other Method of printings in the related technology also can be directly used the physical supports such as USB flash disk and come to text to be printed
Part is stored, and the format conversion of file is completed by the in house software of printing device.But this mode is needed client
The file to be printed at end is shifted by physical support, and operation is relatively cumbersome, therefore ease for use is lower.
To solve the above-mentioned problems, the embodiment of the present disclosure provides a kind of data-printing method, is related to printing device, described
Printing device may include vertical printer, A seating printer and other equipment with printing function, the disclosure to this not
It limits.Based on this, data-printing method provided in the embodiment of the present disclosure, by the original number for receiving file to be printed
According to and rendering processing being carried out to the received initial data of institute in the inside of printing device, with obtain capable of being identified by printing device
Print data is based ultimately upon the print data to realize the printout of file to be printed.So, which passes through
The inter-process of printing device can realize rendering and output to file to be printed, therefore can effectively avoid in all kinds of visitors
The necessity that various printing drive softwares are installed on the end of family, can so realize the printing at any time of file, to be obviously improved
The comfort level of file printout.
Fig. 1 is a kind of flow chart of data-printing method shown according to an exemplary embodiment.The data-printing method
Executing subject be printing device.According to Fig. 1, which includes the following steps S101~S103:
In step s101, the initial data for the file to be printed that transmitting terminal is sent is received, the initial data is wait beat
Printed text part is in the data that transmitting terminal is shown or is stored.
In the present embodiment, the transmitting terminal refers to the terminal for sending file to be printed, such as mobile phone or computer etc., this
A little terminals can be for example, by internet or the radio connection of local area network, or the wired connection for example, by direct-connected cable
Mode and the initial data of file to be printed is sent to printing device.Wherein, the initial data of the file to be printed is for example
It may include text, picture and combination etc., and be not limited, these data usually require to format
Print language can be formed and finally realize printout.It is exemplary, by taking mobile phone sends out PDF document to printing device as an example, mobile phone
It can connect the local area network to where printing device, and the PDF document printed will be needed to be sent to printing by the local area network and set
Standby, printing device will receive the PDF document that mobile phone is sent by its internal wireless communication port being arranged at this time, and will receive
To PDF document be buffered in print system storage device in.
In step s 102, rendering processing is carried out to initial data, to obtain the corresponding print data of the initial data, institute
Stating print data is the data that printing device can identify.
In the present embodiment, the rendering processing refers to the processing side by a kind of Data Format Transform for another data format
Method, the data format before conversion are the formats of initial data, i.e. file to be printed in the data format that transmitting terminal is shown or is stored,
Data format after conversion is the format of print data, i.e. the general format or professional format that can identify of printing device.Example
, printing device can transfer the PDF document cached in the storage device and the format of the document is detected and identified, into
And rendering processing is carried out to it based on the current format of the document and obtains the general format or dedicated of corresponding print data
Formula.Wherein, the process for rendering processing can both be executed by the rendering module built in printing device, can also be set by printing
The cloud processor of standby connection executes, and the present embodiment is not construed as limiting this.
In step s 103, file to be printed is printed out according to print data.
In the present embodiment, since print data is the print language that can be directly read by printing device, printing device
The file to be printed by rendering processing can be printed out according to the print data.Exemplary, printing device is being examined
It just can read the print data when measuring print data, printing device can be treated according to the print data read at this time beats
The PDF document file of print is printed out.
Based on above-mentioned steps it is found that data-printing method provided by the embodiment of the present disclosure, passes through reception file to be printed
Initial data, and rendering processing is carried out to the received initial data of institute in the inside of printing device, to obtain to be set by printing
The print data of standby identification, is based ultimately upon the print data to realize the printout of file to be printed.So, the technology
Scheme is not necessarily to install all kinds of printing drive softwares in client, can only be realized by the inter-process of printing device to be printed
The rendering and output of the initial data of file, therefore can be realized the printing at any time of file, to promote the convenience of file printout
Degree.
Data-printing method provided by disclosure exemplary embodiment is described in detail with reference to the accompanying drawing.
In step s101, the initial data for the file to be printed that transmitting terminal is sent is received, the initial data is wait beat
Printed text part is in the data that transmitting terminal is shown or is stored.
Specifically, the method that printing device receives the initial data of file to be printed may include: monitoring printing device
The multiple communication port being arranged, with receive transmitting terminal by any one communication port in multiple communication port send to
The initial data of mimeograph documents.Wherein, multiple communication port includes but is not limited to connect client, Internet of Things platform, Yi Jicun
The communication port of storage media.
It follows that each communication port of printing device is respectively used to connection client such as mobile phone, Internet of Things platform i.e.
Internet of Things cloud platform and storage medium such as USB flash disk etc., and client, Internet of Things platform and storage medium are as transmission
It holds and the file for needing to print is sent to printing device by corresponding communication port.Exemplary, Internet of Things platform can will need
The picture or PDF document of printing are sent directly to printing device by corresponding communication port, since printing device is being opened
It will be recycled always under state and monitor each communication port, therefore once there is file to be transmitted by some communication port, beaten
Printing apparatus can get the working signal of the communication port and receive corresponding file data from the communication port.
In the present embodiment, printing device the initial data of received file to be printed be probably derived from different communication port
The transmitting terminal of connection, since all kinds of transmitting terminals are not necessarily to install specific printing drive software, as long as the file that needs are printed
It is sent to printing device, received file to be printed is rendered and be exported by printing device, therefore this reality
The comfort level of file printout can be promoted by applying example not only, but also can also receive the file to be printed from different channels, from
And improve the versatility of print data and the ease for use of printing device.
In step s 102, rendering processing is carried out to initial data, to obtain the corresponding print data of the initial data, institute
Stating print data is the data that printing device can identify.
In this example embodiment, the method that printing device carries out rendering processing to initial data may include using printing
Rendering module built in equipment carries out rendering processing to initial data.Fig. 2 illustrates printing device to initial data
Carry out the flow chart of rendering processing.As can be seen from FIG. 2, this method comprises the following steps S1021~S1024:
In step S1021, the format of initial data is identified, to judge the format and preset format of initial data
Whether match, the preset format includes object format and parameter format.
Wherein, object format refers to that printing device can support the format of rendering, such as PDF format or picture lattice completely
Formula etc., printing device need for the corresponding file data of object format to be converted into the print data that printing device can identify,
It is able to achieve the printout of file to be printed;Parameter format, which refers to need to convert by format, can just make printing device support rendering
Format, such as the various formats etc. that office software is related to, printing device need the corresponding file data of the parameter format
It is converted into meeting the file data of object format, rendering processing could be carried out to it.
In the present embodiment, the format of initial data and the relationship of preset format are actually the format and mesh of initial data
Relationship between style formula and parameter format, as long as specifying the format of initial data and the pass of object format and parameter format
System could carry out subsequent processing to initial data according to the relationship.It should be understood that object format and parameter format are contained
The specific range of lid needs depending on the resource that printing device embeds, therefore the present embodiment can be by embedding in printing device
Enter more resources to promote the rendering efficiency of printing device.
In step S1022, when the format of initial data matches with object format, initial data is carried out at rendering
Reason, to convert raw data into the print data that can be identified by printing device.
Exemplary, if initial data is PDF document, the format of initial data is PDF format, and the culvert of object format
Lid range includes PDF format and picture format etc. again.By comparison it is found that the format of initial data meets object format, that is, beat
Rendering module built in printing apparatus can support the initial data of the format completely, and printing device can be directly to the original number at this time
According to rendering processing is carried out, to be converted into the print data that can be identified by printing device.
In step S1023, when the format of initial data mismatches and matches with parameter format with object format, obtain
The pre-processing instruction formatted to initial data is taken, and is converted into the format of initial data according to the pre-processing instruction
The correction format to match with object format.
Exemplary, if initial data is word document, the format of initial data is word format, and object format
Covering scope does not include word format, but the covering scope of parameter format includes word format.By comparing it is found that initial data
Format although do not meet object format, but meet parameter format, i.e. preprocessing module built in printing device can be completed pair
The conversion process of the formatted file data is corrected with the format to initial data and obtains corresponding correction format, the school
Positive format is object format, at this time printing device can to by pretreatment be file data obtained from format conversion processing into
Row rendering processing, to be converted into the print data that can be identified by printing device.
In step S1024, when the format of initial data is mismatched with object format and parameter format, to server
It sends the pretreatment request for carrying initial data and object format information, and responds pretreatment request and right in server
Initial data receives corresponding correction data after being corrected processing, and format and the object format of the correction data match.
Exemplary, if initial data is the word document of embedded sytlized font, the format of initial data is word text
The corresponding word format of shelves and include sytlized font format in word document, and the covering scope of parameter format includes
Word format, but the range of object format and parameter format is not covered by above-mentioned sytlized font format.It is by comparison it is found that former
The format of beginning data does not meet object format and parameter format, at this time only can not be complete by the preprocessing module built in printing device
The conversion process of the pairs of formatted file data, it is therefore desirable to which the cloud server for requesting printing device to connect comes to the original number
According to format carry out conversion process.Specifically, printing device according to the initial data of file to be printed and can need
To object format information generate one pretreatment request be sent to cloud server, enable cloud server pre- according to this
Request is handled to the operational order needed to be implemented, and processing can be corrected to initial data according to the operational order,
Such as cloud server can convert raw data into the correction for meeting object format by more assisting configuration file
The correction data being converted to will be back to printing device after completing correction process by data, and printing device receives at this time
To correction data be to meet the data of object format, therefore printing device can carry out at rendering the correction data received
Reason, to be converted into the print data that can be identified by printing device.Certainly, cloud server for initial data processing not
It is limited to the above-mentioned correction data for converting raw data into and meeting object format, such as can also be and convert raw data into
Meet the intermediate data of parameter format, printing device also needs further to pre-process the intermediate data at this time, can
Enough be converted to the correction data for meeting object format.
Based on foregoing description it is found that the rendering treatment process of printing device may need such as font or special file format
The support of equal multiple resources, only in the case where the various formats that printing device can support completely initial data to be related to,
It could carry out accurate rendering processing to initial data.So, have in the present embodiment to the recognition methods of initial data
The file format and the font format in file that body may include: acquisition initial data, and the initial data that will acquire
Font format in file format and file is compared with the preset format in system format library, to determine initial data
The relationship of format and preset format.Wherein, preset format includes object format and parameter format.
When the font format in the file format of initial data and file matches with above-mentioned object format, printing
Equipment can the data to the object format carry out rendering processing, to be converted into the print data that printing device can identify.
When the font format in the file format of initial data and file matches with above-mentioned parameter format, printing
Equipment can pre-process the data of the parameter format by built-in preprocessing module, meet mesh to be converted into
The correction format of style formula.
When in the file format of initial data and file font format and above-mentioned object format and parameter format it is equal
When mismatch, printing device can be pre-processed the data of the parameter format by cloud server, to obtain basis
Meet the correction data of object format obtained by initial data conversion.
So, rendering processing method provided by the embodiment of the present disclosure can according to the format of file to be printed and
The configuration of printing device and carry out corresponding operation, such as printing device the initial data of file to be printed can be carried out it is local pre-
Processing or request cloud server are pre-processed or are directly rendered, so can expanding printing equipment
The file type that can be handled, to promote the versatility of printing device.
In step s 103, file to be printed is printed out according to print data.
Specifically, needed for printing device can obtain after the initial data to file to be printed carries out rendering processing
Print data, printing device once detects that the print data will generate corresponding print command at this time, so that inside it
Print module drive print engine to print out it according to the print command, thus complete to file to be printed
Printing.
The realization process of disclosed technique scheme is described in detail with reference to the accompanying drawing.
Fig. 3 is the schematic flow chart of data-printing method shown according to an exemplary embodiment, and executing subject is to beat
Printing apparatus.According to Fig.3, which includes the following steps:
In step S301, each communication port is monitored to receive the initial data of the file to be printed of client transmission;
In step s 302, the font format in the file format and file of initial data and system format library are obtained
In preset format, preset format includes object format and parameter format;
In step S303, judge whether the format of initial data matches with object format;
In step s 304, rendering processing is carried out to initial data, can be known with converting raw data into printing device
Other print data;
In step S305, judge whether the format of initial data matches with parameter format;
In step S306, initial data is pre-processed, to convert raw data into the school for meeting object format
Positive format;
In step S307, rendering processing is carried out to the data with correction format, to be converted into printing device energy
The print data enough identified;
In step S308, initial data is pre-processed by cloud server, to obtain meeting object format
Correction data;
In step S309, rendering processing is carried out to correction data, is beaten be converted into that printing device can identify
Printing evidence;
In step s310, file to be printed is printed out according to print data.
The technical solution of the present embodiment is by receiving the initial data of file to be printed, and by printing device to being received
Initial data carry out rendering processing, with obtain can by printing device identify print data, be based ultimately upon the print data come
Realize the printout of file to be printed.So, which is not necessarily to install all kinds of printing drive softwares in client,
Rendering and output to the initial data of file to be printed only can be realized by the inter-process of printing device, therefore can be real
The printing at any time of existing file, to promote the comfort level of file printout.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 4 is the module frame chart of data-printing device shown according to an exemplary embodiment.The device can be used various
Mode is implemented, such as all components of implementing device in the server, or in server side implements to fill in a coupled manner
Component in setting;The device being implemented in combination with as the part of electronic equipment or complete by software, hardware or the two
Portion.According to Fig.4, which includes obtaining module 401, rendering module 402 and print module 403.Wherein:
Obtaining module 401 can be used for receiving the initial data of file to be printed of transmitting terminal transmission, and the initial data is
File to be printed is in the data that transmitting terminal is shown or is stored.
Rendering module 402 can be used for carrying out rendering processing to initial data, to obtain the corresponding printing number of the initial data
According to the print data is the data that printing device can identify.
Print module 403 can be used for printing out file to be printed according to print data.
Data-printing device provided by the embodiment of the present disclosure can be used for executing above-mentioned data-printing method, the side of execution
Formula and beneficial effect are similar to the above embodiments, and which is not described herein again.
In one embodiment, refering to what is shown in Fig. 5, the acquisition module 401 may include monitoring unit 4011 and obtain
Take unit 4012.Specifically, monitoring unit 4011 can be used for monitoring multiple communication port of printing device setting, it is each to detect
A communication port is transmitted with the presence or absence of data, and acquiring unit 4012 can be used for receiving transmitting terminal and pass through in multiple communication port
The initial data for the file to be printed that any one communication port is sent.Wherein, multiple communication port may include connection visitor
Family end, Internet of Things platform and storage medium communication port, and be not limited.
In one embodiment, refering to what is shown in Fig. 6, the rendering module 402 may include detection unit 4021 and wash with watercolours
Contaminate unit 4022.Specifically, detection unit 4021 can be used for identifying the format of initial data, to judge initial data
Format whether matched with preset format, rendering unit 4022 can be used for when the format of initial data is matched with object format pair
Initial data carries out rendering processing, to convert raw data into the print data that can be identified by printing device.Wherein, this is default
Format includes object format and parameter format, be can store in system format library.In the present embodiment, the detection unit
4021 may include detection sub-unit and comparing subunit, detection sub-unit can be used for obtaining initial data file format and
Font format in file, comparing subunit can be used for will be in the font format and system format library in file format and file
Preset format compare, to determine the format of initial data and the relationship of preset format.
In one embodiment, refering to what is shown in Fig. 7, the rendering module 402 can also include the first pretreatment unit
4023 and correction unit 4024.Specifically, the first pretreatment unit 4023 can be used for the format and target lattice when initial data
The pre-processing instruction formatted to initial data is obtained when formula is mismatched and matched with parameter format, corrects unit 4024
Can be used for the correction format for the format of initial data being converted into according to the pre-processing instruction matching with object format.
In one embodiment, refering to what is shown in Fig. 8, the rendering module 402 can also include the second pretreatment unit
4025 and receiving unit 4026.Specifically, the second pretreatment unit 4025 can be used for the format and target lattice when initial data
Pretreatment request is sent to server when formula and parameter format mismatch, pretreatment request carries initial data and mesh
The information of style formula, receiving unit 4026 can be used for receiving server response pretreatment request and return based on initial data
Correction data, format and the object format of the correction data match.
In the technical scheme provided by this disclosed embodiment, by receiving the initial data of file to be printed, and printing
The inside of equipment carries out rendering processing to the received initial data of institute, to obtain the print data that can be identified by printing device, most
The printout of file to be printed is realized based on the print data eventually.So, which is not necessarily to pacify in client
All kinds of printing drive softwares are filled, the wash with watercolours to the initial data of file to be printed only can be realized by the inter-process of printing device
Dye and output, therefore can be realized the printing at any time of file, to promote the comfort level of file printout.
The embodiment of the present disclosure also provides a kind of data-printing device, which includes:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
The initial data for the file to be printed that transmitting terminal is sent is received, the initial data is file to be printed in transmitting terminal
The data for being shown or being stored;
Rendering processing is carried out to initial data, to obtain the corresponding print data of the initial data, the print data is
The data that printing device can identify;
File to be printed is printed out according to print data.
In one embodiment, above-mentioned processor is also configured to:
The format of the initial data is identified, with judge the initial data format and preset format whether
Match, the preset format includes object format;
When the format of the initial data is matched with the object format, rendering processing is carried out to the initial data,
The initial data is converted to the print data that can be identified by the printing device.
In one embodiment, above-mentioned processor is also configured to:
When the format of the initial data is mismatched with the object format and is matched with the parameter format, acquisition pair
The pre-processing instruction that the initial data formats;
The format of the initial data is converted into the school to match with the object format according to the pre-processing instruction
Positive format.
In one embodiment, above-mentioned processor is also configured to:
When the format of the initial data and the object format and the parameter format mismatch, sent out to server
Pretreatment is sent to request, the pretreatment request carries the information of the initial data and the object format;
Receive the correction data based on the initial data that the server responds the pretreatment request and returns, institute
The format and the object format for stating correction data match.
In one embodiment, above-mentioned processor is also configured to:
The file format for obtaining the initial data and the font format in file;
Font format in the file format and the file and the preset format in system format library are carried out pair
Than with the relationship of the format of the determination initial data and the preset format.
In one embodiment, above-mentioned processor is also configured to:
The multiple communication port for monitoring the printing device setting, pass through the multiple communication ends to receive the transmitting terminal
The initial data for the file to be printed that any one communication port in mouthful is sent, the multiple communication port include connection client
It holds, the communication port of Internet of Things platform and storage medium.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
The embodiment of the present disclosure provides a kind of non-transitorycomputer readable storage medium, the instruction in the storage medium
When being executed by the processor of data-printing device, so that data-printing device is able to carry out above-mentioned data-printing method, it is described
Method includes:
The initial data for the file to be printed that transmitting terminal is sent is received, the initial data is file to be printed in transmitting terminal
The data for being shown or being stored;
Rendering processing is carried out to initial data, to obtain the corresponding print data of the initial data, the print data is
The data that printing device can identify;
File to be printed is printed out according to print data.
In one embodiment, described that rendering processing is carried out to the initial data, it is corresponding to obtain the initial data
Print data include:
The format of the initial data is identified, with judge the initial data format and preset format whether
Match, the preset format includes object format;
When the format of the initial data is matched with the object format, rendering processing is carried out to the initial data,
The initial data is converted to the print data that can be identified by the printing device.
In one embodiment, the preset format further includes parameter format, described to render to the initial data
Processing, to obtain the corresponding print data of the initial data further include:
When the format of the initial data is mismatched with the object format and is matched with the parameter format, acquisition pair
The pre-processing instruction that the initial data formats;
The format of the initial data is converted into the school to match with the object format according to the pre-processing instruction
Positive format.
In one embodiment, described that rendering processing is carried out to the initial data, it is corresponding to obtain the initial data
Print data further include:
When the format of the initial data and the object format and the parameter format mismatch, sent out to server
Pretreatment is sent to request, the pretreatment request carries the information of the initial data and the object format;
Receive the correction data based on the initial data that the server responds the pretreatment request and returns, institute
The format and the object format for stating correction data match.
In one embodiment, the format to the initial data, which identify, includes:
The file format for obtaining the initial data and the font format in file;
Font format in the file format and the file and the preset format in system format library are carried out pair
Than with the relationship of the format of the determination initial data and the preset format.
In one embodiment, the initial data for receiving the file to be printed that transmitting terminal is sent includes:
The multiple communication port for monitoring the printing device setting, pass through the multiple communication ends to receive the transmitting terminal
The initial data for the file to be printed that any one communication port in mouthful is sent, the multiple communication port include connection client
It holds, the communication port of Internet of Things platform and storage medium.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (13)
1. a kind of data-printing method characterized by comprising
The initial data for the file to be printed that transmitting terminal is sent is received, the initial data is the file to be printed in the hair
The data that sending end is shown or stored;
Rendering processing is carried out to the initial data, to obtain the corresponding print data of the initial data, the print data
The data that can be identified for printing device;
The file to be printed is printed out according to the print data.
2. data-printing method according to claim 1, which is characterized in that described to be carried out at rendering to the initial data
It manages, includes: to obtain the corresponding print data of the initial data
The format of the initial data is identified, to judge whether the format of the initial data matches with preset format,
The preset format includes object format;
When the format of the initial data is matched with the object format, rendering processing is carried out to the initial data, it will
The initial data is converted to the print data that can be identified by the printing device.
3. data-printing method according to claim 2, which is characterized in that the preset format further includes parameter format,
It is described that rendering processing is carried out to the initial data, to obtain the corresponding print data of the initial data further include:
When the format of the initial data is mismatched with the object format and is matched with the parameter format, obtain to described
The pre-processing instruction that initial data formats;
The format of the initial data is converted into the correction lattice to match with the object format according to the pre-processing instruction
Formula.
4. data-printing method according to claim 3, which is characterized in that described to be carried out at rendering to the initial data
Reason, to obtain the corresponding print data of the initial data further include:
When the format of the initial data and the object format and the parameter format mismatch, sent to server pre-
Processing request, the pretreatment request carry the information of the initial data and the object format;
Receive the correction data based on the initial data that the server responds the pretreatment request and returns, the school
The format of correction data matches with the object format.
5. data-printing method according to claim 2, which is characterized in that the format to the initial data carries out
Identification includes:
The file format for obtaining the initial data and the font format in file;
Font format in the file format and the file is compared with the preset format in system format library, with
Determine the format of the initial data and the relationship of the preset format.
6. data-printing method according to claim 1-5, which is characterized in that described to receive what transmitting terminal was sent
The initial data of file to be printed includes:
The multiple communication port for monitoring the printing device setting, are passed through in the multiple communication port with receiving the transmitting terminal
Any one communication port send file to be printed initial data, the multiple communication port include connection client,
The communication port of Internet of Things platform and storage medium.
7. a kind of data-printing device characterized by comprising
Module is obtained, the initial data of the file to be printed for receiving transmitting terminal transmission, the initial data is described wait beat
The data that printed text part is shown or stored in the transmitting terminal;
Rendering module, for carrying out rendering processing to the initial data, to obtain the corresponding print data of the initial data,
The print data is the data that printing device can identify;
Print module, for being printed out according to the print data to the file to be printed.
8. data-printing device according to claim 7, which is characterized in that the rendering module includes:
Detection unit is identified for the format to the initial data, to judge the format of the initial data and preset
Whether format matches, and the preset format includes object format;
Rendering unit, for being carried out to the initial data when the format of the initial data is matched with the object format
The initial data is converted to the print data that can be identified by printing device by rendering processing.
9. data-printing device according to claim 8, which is characterized in that the preset format further includes parameter format,
The rendering module further include:
First pretreatment unit, for mismatching and with described when the format of the initial data and the object format with reference to lattice
When formula matches, the pre-processing instruction formatted to the initial data is obtained;
Unit is corrected, for being converted into the format of the initial data and the object format phase according to the pre-processing instruction
Matched correction format.
10. data-printing device according to claim 9, which is characterized in that the rendering module further include:
Second pretreatment unit, for when the initial data format and the object format and the parameter format not
Timing sends pretreatment request to server, and the pretreatment request carries the initial data and the object format
Information;
Receiving unit, the school based on the initial data for responding the pretreatment request for receiving the server and returning
Correction data, the format of the correction data match with the object format.
11. data-printing device according to claim 9, which is characterized in that the detection unit includes:
Detection sub-unit, the font format in file format and file for obtaining the initial data;
Comparing subunit, for by the file format and the file font format and system format library in described in
Preset format compares, with the relationship of the format of the determination initial data and the preset format.
12. a kind of data-printing device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The initial data for the file to be printed that transmitting terminal is sent is received, the initial data is the file to be printed in the hair
The data that sending end is shown or stored;
Rendering processing is carried out to the initial data, to obtain the corresponding print data of the initial data, the print data
The data that can be identified for printing device;
The file to be printed is printed out according to the print data.
13. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
The step of any one of claim 1-6 the method is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810943250.7A CN109144435A (en) | 2018-08-17 | 2018-08-17 | Data-printing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810943250.7A CN109144435A (en) | 2018-08-17 | 2018-08-17 | Data-printing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109144435A true CN109144435A (en) | 2019-01-04 |
Family
ID=64790002
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810943250.7A Pending CN109144435A (en) | 2018-08-17 | 2018-08-17 | Data-printing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109144435A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110278265A (en) * | 2019-06-20 | 2019-09-24 | 宜春宜联科技有限公司 | Processing method, device, storage medium and the electronic equipment of the upper transmitting file of user |
CN110908618A (en) * | 2019-11-15 | 2020-03-24 | 北京小米移动软件有限公司 | File printing method and device and storage medium |
CN113312013A (en) * | 2021-06-03 | 2021-08-27 | 苏州博瑞凯德信息技术有限公司 | Printing method, printing system and storage medium |
CN113868158A (en) * | 2021-08-27 | 2021-12-31 | 浪潮电子信息产业股份有限公司 | On-chip system, data comparison method, device, equipment and computer medium |
CN114185499A (en) * | 2021-12-13 | 2022-03-15 | 上海麦色医疗科技有限公司 | Printer sharing system based on unstructured data analysis |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006268312A (en) * | 2005-03-23 | 2006-10-05 | Fuji Xerox Co Ltd | Print processing program, apparatus and method thereof, and document management program, apparatus and method thereof |
CN101551738A (en) * | 2008-04-03 | 2009-10-07 | 村田机械株式会社 | Printing control apparatus and printing control method |
CN106383673A (en) * | 2016-08-31 | 2017-02-08 | 安徽天斯努信息技术股份有限公司 | Self-service printing method, device and equipment |
-
2018
- 2018-08-17 CN CN201810943250.7A patent/CN109144435A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006268312A (en) * | 2005-03-23 | 2006-10-05 | Fuji Xerox Co Ltd | Print processing program, apparatus and method thereof, and document management program, apparatus and method thereof |
CN101551738A (en) * | 2008-04-03 | 2009-10-07 | 村田机械株式会社 | Printing control apparatus and printing control method |
CN106383673A (en) * | 2016-08-31 | 2017-02-08 | 安徽天斯努信息技术股份有限公司 | Self-service printing method, device and equipment |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110278265A (en) * | 2019-06-20 | 2019-09-24 | 宜春宜联科技有限公司 | Processing method, device, storage medium and the electronic equipment of the upper transmitting file of user |
CN110908618A (en) * | 2019-11-15 | 2020-03-24 | 北京小米移动软件有限公司 | File printing method and device and storage medium |
CN113312013A (en) * | 2021-06-03 | 2021-08-27 | 苏州博瑞凯德信息技术有限公司 | Printing method, printing system and storage medium |
CN113868158A (en) * | 2021-08-27 | 2021-12-31 | 浪潮电子信息产业股份有限公司 | On-chip system, data comparison method, device, equipment and computer medium |
CN113868158B (en) * | 2021-08-27 | 2024-02-23 | 浪潮电子信息产业股份有限公司 | System-on-chip and data comparison method, device, equipment and computer medium |
CN114185499A (en) * | 2021-12-13 | 2022-03-15 | 上海麦色医疗科技有限公司 | Printer sharing system based on unstructured data analysis |
CN114185499B (en) * | 2021-12-13 | 2022-09-30 | 上海麦色医疗科技有限公司 | Printer sharing system based on unstructured data analysis |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109144435A (en) | Data-printing method and device | |
US20190392834A1 (en) | Method and apparatus for selecting voice-enabled device | |
US11146641B2 (en) | Internet of things information system | |
CN108337236A (en) | A kind of gRPC call methods and device based on Protobuf and HTTP/1.1 | |
US20150309996A1 (en) | Information processing system, information processing apparatus, and information processing method | |
US8970889B2 (en) | Information processing apparatus, print system control method, and storage medium receiving a setting screen for setting positional information from an image forming apparatus | |
CN111914842A (en) | License plate information identification method and device, computer equipment and storage medium | |
CN109254739A (en) | file printing method, device and system | |
CN109145813B (en) | Image matching algorithm testing method and device | |
WO2017054307A1 (en) | Recognition method and apparatus for user information | |
US20150227330A1 (en) | System and method for the pairing of components of a printer-related data reporting system | |
CN109873732A (en) | Test method and device for proxy server | |
CN112968914B (en) | System, method, device and medium for requesting data to be imported into vulnerability scanner in real time | |
JP2018533092A (en) | Network request and response processing method, terminal, server, and storage medium | |
CN111726260B (en) | Method, device and system for testing format conversion of network request reply information | |
US20140310341A1 (en) | Information processing apparatus, system, method and medium | |
CN110288668B (en) | Image generation method, device, computer equipment and storage medium | |
CN107370731B (en) | Method and device for realizing communication between different applications based on natural language | |
CN110929209B (en) | Method and device for transmitting information | |
CN115942339A (en) | Wireless energy supply federal learning method and device and electronic equipment | |
CN114501329A (en) | Environment self-adaptive training method and device of indoor positioning model based on 1D-CNN | |
CN113688975A (en) | Neural network training method and device, electronic equipment and storage medium | |
CN113281565A (en) | Load identification method based on double-core intelligent electric meter | |
CN111866029A (en) | Access server authentication offline method and system | |
CN109376568A (en) | Identify the method, apparatus and system of bar code |
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 |
Application publication date: 20190104 |
|
RJ01 | Rejection of invention patent application after publication |