CN110221792A - File to be printed format conversion method, device, equipment and storage medium - Google Patents

File to be printed format conversion method, device, equipment and storage medium Download PDF

Info

Publication number
CN110221792A
CN110221792A CN201910513644.3A CN201910513644A CN110221792A CN 110221792 A CN110221792 A CN 110221792A CN 201910513644 A CN201910513644 A CN 201910513644A CN 110221792 A CN110221792 A CN 110221792A
Authority
CN
China
Prior art keywords
file
printed
prn
printer
format conversion
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
Application number
CN201910513644.3A
Other languages
Chinese (zh)
Inventor
龚超
陈超
黄建宜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yichun Yilian Technology Co Ltd
Original Assignee
Yichun Yilian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yichun Yilian Technology Co Ltd filed Critical Yichun Yilian Technology Co Ltd
Priority to CN201910513644.3A priority Critical patent/CN110221792A/en
Publication of CN110221792A publication Critical patent/CN110221792A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/128Direct printing, e.g. sending document file, using memory stick, printing from a camera
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application involves printing device correlative technology field more particularly to a kind of file to be printed format conversion method, device, equipment and storage mediums.Wherein, file to be printed format conversion method provided by the present application, applied in the server for connecting printing device.File to be printed format conversion method includes: acquisition file to be printed;File to be printed is converted into prn file;Wherein, prn file is that printing device is identifiable, and can be directly used for the format of printing;Prn file is converted into printer transmission.It is arranged such, user need to only send the document with printing to server can use printer completion to turn shelves for file, without downloading virtual machine by the smart machine of oneself, it not only effectively avoids installation virtual machine bring inconvenient, while virtual machine being avoided to give user oneself smart machine bring load when running.

Description

File to be printed format conversion method, device, equipment and storage medium
Technical field
This application involves printing device correlative technology field more particularly to a kind of file to be printed format conversion methods, dress It sets, equipment and storage medium.
Background technique
With the development of society and the raising of science and technology, printer has become essential one kind in a kind of life and work Equipment.Printer not only can also print learning materials, famous literary work, professional book etc. with print job file.
Currently, printer be typically necessary collocation be equipped with corresponding virtual machine computer carry out using, by virtual machine into File to be printed turns shelves, but printer and virtual machine are many kinds of, each and incompatible.Using pacifying in local intelligent terminal Dress virtual machine turn the mode of shelves, it is necessary first to virtual machine is installed on the smart machine of oneself, since virtual machine type is numerous More and incompatible with printer, so that virtual machine installation is inconvenient, and after being installed, virtual machine carries out file and turns shelves Shi Huijia The load of oneself smart machine of weight.
Summary of the invention
The purpose of the application is to provide a kind of file to be printed format conversion method, device, equipment and storage medium, with solution Virtual machine is certainly installed in the related technology necessary not only for corresponding virtual machine is looked on the smart machine of oneself, installation is inconvenient, and After being installed, virtual machine can aggravate the load of oneself smart machine when running.
The purpose of the application is achieved through the following technical solutions:
A kind of file to be printed format conversion method of the application, applied to connection printing device server in, the side Method includes:
Obtain file to be printed;
The file to be printed is converted into prn file;Wherein, the prn file is that the printing device is identifiable, And it can be directly used for the format of printing;
The prn file is converted into printer transmission.
Optionally, the acquisition file to be printed, comprising:
The file to be printed and number corresponding with the file to be printed that reception client or default platform upload;
The file to be printed is stored, the storage address of the file to be printed is obtained
The storage address and the number of the file to be printed are stored in redis storage system;
It is described that the file to be printed is converted into prn file, comprising:
Storage address and the file to be printed for obtaining the file to be printed stored in redis storage system are corresponding Number;
Based on the storage address of the file to be printed, the file to be printed is obtained;
By preset virtual machine, prn file is converted by the file to be printed;
The prn file is stored, the storage address of the prn file is obtained;
By the redis storage system, the storage address and the number of the prn file are stored;
It is described to be converted into the prn file to printer transmission, comprising:
Obtain the acquisition file request that the printer is sent;Wherein, the acquisition file request includes: the number;
Based on the number, Xiang Suoshu printer sends the prn file.
Optionally, the virtual machine is the transit telegram text host to match with the printer.
Optionally, in the redis storage system, storage address and the number based on file to be printed described in multiple groups Uplink time, formed print queue;
The file request that obtains is that the printer is generated based on number;One of corresponding acquisition text of number Part request;
The printer is according to print queue sequential in accordance with generating and sending the acquisition file request.
Optionally, described to be based on the number, Xiang Suoshu printer sends the prn file, comprising:
Based on the number, the storage address of the prn file is determined;Wherein, prn file includes at least one prn File;Each prn subfile for being obtained by the printer, and is based on the prn subfile by the printer and beats Print one page page of default paper;
Whether judge in the prn file comprising at least one unprinted prn subfile;
If it exists, the prn subfile is sent to printer, and will successively sends each prn Ziwen to the printer Part.
Optionally, described to be based on the number, Xiang Suoshu printer sends the prn file, further includes:
If prn subfile is not present in the prn file, it is not responding to the acquisition file request that the printer is sent;
Obtain the mission failure information that printer is sent;The mission failure information includes: number;
Wherein, after printer sends the same number corresponding acquisition file request preset times, or it is continuous same After numbering corresponding acquisition file request transmission preset time, prn subfile or prn file are not obtained yet, then is sent out to server Send mission failure information;
The corresponding print out task failure of the number for marking the mission failure information to include.
The application also provides a kind of file to be printed format conversion apparatus, in the server applied to connection printing device, Include:
Module is obtained, for obtaining file to be printed;
Conversion module, for the file to be printed to be converted to prn file;Wherein, the prn file is the printing Equipment is identifiable, and can be directly used for the format of printing;
Sending module, for being converted into the prn file to printer transmission.
Optionally, the acquisition module is specifically used for:
The file to be printed and number corresponding with the file to be printed that reception client or default platform upload;
The file to be printed is stored, the storage address of the file to be printed is obtained
The storage address and the number of the file to be printed are stored in redis storage system;
The conversion module is specifically used for:
Storage address and the file to be printed for obtaining the file to be printed stored in redis storage system are corresponding Number;
Based on the storage address of the file to be printed, the file to be printed is obtained;
By preset virtual machine, prn file is converted by the file to be printed;
The prn file is stored, the storage address of the prn file is obtained;
By the redis storage system, the storage address and the number of the prn file are stored;
The sending module is specifically used for:
Obtain the acquisition file request that the printer is sent;Wherein, the acquisition file request includes: the number;
Based on the number, Xiang Suoshu printer sends the prn file.
The application also provides file to be printed format conversion equipment, applied to connection printing device server described in Mimeograph documents format conversion equipment, comprising:
Processor, and the memory being connected with the processor;
The memory is for storing computer program;
The processor is for calling and executing the computer program in the memory, to execute the application offer Mimeograph documents format conversion method.
The application also provides a kind of storage medium, is stored thereon with computer program, the computer program is by processor When execution, each step such as claim mimeograph documents format conversion method provided by the present application is realized.
The application uses above technical scheme, has the following beneficial effects:
File to be printed format conversion method provided by the present application, applied to connection printing device server in, first Obtain file to be printed;File to be printed is converted into prn file;Wherein, prn file is identifiable for printing device, and can It is directly used in the format of printing;Prn file is converted into printer transmission.So set, user only need to send band to server The document of printing can use printer completion to turn shelves for file, virtual without the smart machine downloading by oneself Machine not only effectively avoids installation virtual machine bring inconvenient, while virtual machine being avoided to give user oneself smart machine band when running The load come.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The application can be limited.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart for file to be printed format conversion method that the embodiment of the present application one provides.
Fig. 2 is a kind of partial process view for file to be printed format conversion method that the embodiment of the present application one provides.
Fig. 3 is a kind of structural schematic diagram for file to be printed format conversion apparatus that the embodiment of the present application two provides.
Fig. 4 is a kind of structural schematic diagram for file to be printed format conversion equipment that the embodiment of the present application three provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, the technical solution of the application will be carried out below Detailed description.Obviously, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Base Embodiment in the application, those of ordinary skill in the art are obtained all without making creative work Other embodiment belongs to the range that the application is protected.
It is to be understood that currently, printer is typically necessary collocation is equipped with the computer of corresponding virtual machine and is made With by virtual machine into the shelves that turn of file to be printed, but printer and virtual machine are many kinds of, each and incompatible.Using this The mode that virtual machine turn shelves is installed on ground intelligent terminal, it is necessary first to virtual machine is installed on the smart machine of oneself, by Many kinds of in virtual machine and incompatible with printer, so that virtual machine installation is inconvenient, and after being installed, virtual machine is carried out File can aggravate the load of oneself smart machine when turning shelves.
The application provides a kind of file to be printed format conversion method, device, equipment and storage to solve the above-mentioned problems Medium.Its collective's application scenarios is that file to be printed is uploaded to server by way of app or others by user, by Server progress file turns shelves, when server completes after turning shelves of file, after sending format conversion to preset printer File, and then printing for file is completed by printer.Below by multiple embodiments to scheme provided by the present application into Row explanation.
Embodiment one
It is a kind of flow chart for file to be printed format conversion method that the embodiment of the present application one provides referring to Fig. 1, Fig. 1. File to be printed format conversion method provided by the present application, applied to connection printing device server in, file to be printed lattice Formula conversion method includes:
S101 obtains file to be printed;
In step S101, file to be printed is obtained;Specifically include that server receives user and passes through the APP on intelligent terminal Or the file that default platform uploads, the format of file to be printed does not clearly require at this time, can be the text of pdf format Part, naturally it is also possible to be the file of the extended formattings such as doc, docx.
It is to be understood that often there are multiple users in practical application while using the scene or same of printer The case where one user prints more parts of files simultaneously, so in order to preferably distinguish each file, and to printing each file respectively, When receiving the file of user's upload, the file generated based on receiving is needed to encode correspondingly with file, or in user When upper transmitting file, APP or default platform are just numbered file, and generation is numbered correspondingly with file.
When APP or default platform are just numbered file, generate with file correspondingly number when, server can To receive the file to be printed and number corresponding with file to be printed that client or default platform upload;It stores later to be printed File obtains the storage address of file to be printed;Also, the storage address of file to be printed is stored in redis storage system And number;It should be understood that when, since number is corresponded with file to be printed, and file to be printed and file to be printed are deposited It stores up address to correspond, so number and the storage address of file to be printed correspond.It is stored in redis storage system When, numbering with the storage address of file to be printed is also to be stored correspondingly.
It is to be understood that redis storage system is a key-value storage system.It is similar with Memcached, it Support the value type of storage relatively more, including string (character string), list (chained list), set (set), zset (sorted set-- ordered set) and hash (hash type).These data types all support push/pop, add/remove And intersection union and difference set and richer operation are taken, and these operations are all atomicities.On this basis, redis branch Hold the sequence of various different modes.As memcached, for guaranteed efficiency, data are all to cache in memory.Difference It is the record file that redis can periodically operate write-in addition the data write-in disk of update or modification, and It is synchronous that master-slave (principal and subordinate) is realized on the basis of this.
Redis is a high performance key-value database.The appearance of redis, largely compensates for The deficiency of this kind of key/value storage of memcached, in part, occasion can play supplement well to relational database and make With.It provides Java, C/C++, C#, PHP, JavaScript, Perl, Object-C, Python, Ruby, the visitors such as Erlang Family end, it is very convenient to use.
Redis supports master-slave synchronisation.Data can be synchronized from server from primary server to any number of, from service Device, which can be, is associated with other primary servers from server.This makes Redis that single layer tree copying can be performed.Deposit can intentional nothing Meaning carries out write operation to data.Due to fully achieving publish/subscribe mechanism, so that from database anywhere synchronization tree When, a channel can be subscribed to and receive the complete news release record of primary server.Synchronize to the scalability of read operation and Data redundancy is helpful.
Server and printer are accessible and modify, the content in redis storage system.
File to be printed is converted to prn file by S102;Wherein, prn file is identifiable for printing device, and can be straight Connect the format for printing;
Although, for the printer of different brands, being saved in it should be noted that prn file extension name is all .prn The content format of prn file on hard disk be not be completely fixed with it is consistent.This is because each prn file is inherently It is made of the print command of certain specific printer, i.e., prn file is equivalent to a kind of driving journey for particular printer Preface part.So the file that different printer drivers generates is not fully identical, this prn file is usually that can not read Or be converted to extended formatting.Even if once in a while can successful conversion format, also tend to and have more or less difference in source file It is different.
Further, it in step S102, in order to which the prn file printing device made is identifiable, and can be directly used for beating The format of print;The transformation of the format of file to be printed is carried out using the virtual machine by matching with default printer.Example The printer of Yichuan Yi Lian Science and Technology Ltd. as the application one is used in the examples, corresponding virtual machine should using with The transit telegram text fictitious host computer that the printer of Yichuan Yi Lian Science and Technology Ltd. matches, so set, can make virtual machine with Printer matches, and the printer that the prn file that virtual machine is converted is predetermined is identified and printed.
Further, in step S102 provided by the present application, file to be printed is converted into prn file;It specifically includes:
S201, storage address and the file to be printed for obtaining the file to be printed stored in redis storage system are corresponding Number;
It is to be understood that due to the characteristic of redis storage system: Redis supports master-slave synchronisation.Data can be from main clothes Business device is synchronized from server to any number of, be can be from server and is associated with other primary servers from server.This makes Obtaining Redis can be performed single layer tree copying.Deposit consciously or unconsciously can carry out write operation to data.Due to fully achieving hair Cloth/subscribing mechanism so that from database anywhere synchronization tree when, a channel can be subscribed to and to receive primary server complete News release record.So that when storing in redis storage system by numbering the storage address with corresponding file to be printed, Server and fictitious host computer can quickly read the content stored in it, can obtain need to carry out format conversion later File to be printed address.
S202, the storage address based on file to be printed obtain file to be printed;
It should be noted that server is to use Ali's Cloud Server in the application, it is particularly flat using OSS Platform, OSS are a comprehensive service operation and management platform, while being also really to have merged Traditional IP data service to increase with mobile The comprehensive management platform of value business.OSS is the support system of the integration of telecom operators, information resources share, it mainly by The part such as network management, system administration, charging, business, account and customer service forms, and passes through unified bus between system Organic combination is together.It can not only help true while helping operator to work out and meeting the Operation Support System of own characteristic Determine the developing direction of system, moreover it is possible to help the integration standard of user's brakstaff, improve the service level of user.
It is also to be stored by OSS platform when storing file to be printed in above-mentioned step S101.So in step In S202, the storage address of file to be printed generated when easily can store file to be printed according to step S101 obtain to Mimeograph documents.
S203 converts prn file for file to be printed by preset virtual machine;
It should be noted that preset virtual machine is the transit telegram text fictitious host computer to match with printer.It needs to illustrate It is that it dedicated for carrying out transit telegram text (that is: is prn file by the format conversion of file to be printed that transit telegram text fictitious host computer, which is a kind of, Fictitious host computer), function be printer driver in, convert file to be printed to the function for the file that printer can identify Energy.So set, the conversion of the format of document can directly be carried out by the server in distal end or cloud, woth no need to pass through local Smart machine conversion file to be printed format.
S204 stores prn file, obtains the storage address of prn file;
It should be noted that start carry out file format conversion when, be page by page convert, conversion complete One page just stores one page, and the storage address of the prn file after conversion, can be with it has been determined that so step S204 and step S203 Regard as while carrying out, when starting the file conversion for carrying out step S203, does not convert a part and just store a part.
S205 stores the storage address and number of prn file by redis storage system;
It should be noted that, for same number in redis storage system, being stored with correspondence after completing step S205 File to be printed storage address and prn file storage address.
S201 through the above steps, step S202, step S203, step S204, step S205 can be completed for file Format standard change, convert prn file for file to be printed.
S103 is converted into prn file to printer transmission.
Step S103, specifically includes: obtaining the acquisition file request that printer is sent;Wherein, obtaining file request includes: Number;Based on number, prn file is sent to printer.
It should be noted that in redis storage system, the upload of storage address and number based on multiple groups file to be printed Time forms print queue;
Obtaining file request is that printer is generated based on number;It is one of to number a corresponding acquisition file request;
Printer is according to print queue sequential in accordance with generating and sending acquisition file request.
So set, the file to be printed first uploaded can be made preferentially to print, according to be printed after file uploads The uplink time of file is ranked up volume, and printer sends print request according to the time sequencing of number, such as: number is 074 file first uploads, and the file that number is 075 later starts to upload.Printer sends override requests when obtaining file request The file that printing number is 074, after the file process that number is 074 is completed or determines mission failure, printer transmission is obtained Take the file that file request request printing number is 075.
Further, based on number, prn file is sent to printer, is specifically included:
Based on number, the storage address of prn file is determined;Wherein, prn file includes at least one prn subfile;Each Prn subfile, for being obtained by printer, and one page page by printer based on prn subfile print preset paper;It needs Illustrate, the prn file after conversion is divided into multiple prn subfiles, each prn subfile pair according to the page of printing herein Answer the complete page to be printed of one page.
Whether judge in prn file comprising at least one unprinted prn subfile;
If it exists, prn subfile is sent to printer, and will successively sends each prn subfile to printer.
So set, when a file to be printed have multipage when, and in file to be printed a part of page format It is inverted be prn file, can preferentially print at this time conversion text at prn subfile, realize document to be printed side conversion become Printing, while formatting, carries out the printing for the prn subfile for converting part.
Certainly, if prn subfile is not present in prn file, it is not responding to the acquisition file request of printer transmission.
After printer sends the same number corresponding acquisition file request preset times, or the continuous same number pair After the acquisition file request answered sends preset time, prn subfile or prn file are not obtained yet, then send task to server Failure information;
Such as: printer can be set after not receiving to the response for obtaining file request of server passback, 10s Identical acquisition file request can be sent herein later, so recycled, if in preset times (such as having sent 3 times) or default In time (such as distance send total 30s for the first time time after) receive yet server passback for acquisition file request Response then confirms that this print out task fails, and printer sends mission failure information to server;Wherein, mission failure information It include: number.
Server receives after mission failure information, and the corresponding print out task of number that label mission failure information includes loses It loses.And the information of printing failure is sent to user.
File to be printed format conversion method provided by the present application, applied to connection printing device server in, first Obtain file to be printed;File to be printed is converted into prn file;Wherein, prn file is identifiable for printing device, and can It is directly used in the format of printing;Prn file is converted into printer transmission.So set, user only need to send band to server The document of printing can use printer completion to turn shelves for file, virtual without the smart machine downloading by oneself Machine not only effectively avoids installation virtual machine bring inconvenient, while virtual machine being avoided to give user oneself smart machine band when running The load come.
Embodiment two
It is a kind of structural representation for file to be printed format conversion apparatus that the embodiment of the present application two provides referring to Fig. 3, Fig. 3 Figure.File to be printed format conversion apparatus provided by the present application, applied to connection printing device server in, file to be printed Format conversion apparatus includes:
Module 301 is obtained, for obtaining file to be printed;
Conversion module 302, for file to be printed to be converted to prn file;Wherein, prn file is that printing device can be known It is other, and can be directly used for the format of printing;
Sending module 303, for being converted into prn file to printer transmission.
Further, module 301 is obtained to be specifically used for:
The file to be printed and number corresponding with file to be printed that reception client or default platform upload;
File to be printed is stored, the storage address of file to be printed is obtained
The storage address and number of file to be printed are stored in redis storage system;
Conversion module 302 is specifically used for:
Obtain the storage address and the corresponding number of file to be printed of the file to be printed stored in redis storage system;
Storage address based on file to be printed obtains file to be printed;
By preset virtual machine, prn file is converted by file to be printed;
Prn file is stored, the storage address of prn file is obtained;
By redis storage system, the storage address and number of prn file are stored;
Sending module 303 is specifically used for:
Obtain the acquisition file request that printer is sent;Wherein, obtaining file request includes: number;
Based on number, prn file is sent to printer.
The specific embodiment of mimeograph documents format conversion equipment provided by the embodiments of the present application can refer to any of the above The embodiment of the mimeograph documents format conversion method of example, details are not described herein again.
Embodiment three
Referring to fig. 4, Fig. 4 is a kind of structural representation for file to be printed format conversion apparatus that the embodiment of the present application three provides Figure.File to be printed format conversion apparatus provided by the present application, applied in the server for connecting printing device, feature exists In file to be printed format conversion apparatus, comprising:
Processor 401, and the memory 402 being connected with processor;
Memory 401 is for storing computer program;
Processor 401 is for calling and executing the computer program in memory, to execute the offer of the embodiment of the present application one Mimeograph documents format conversion method.
The specific embodiment of mimeograph documents format conversion apparatus provided by the embodiments of the present application can refer to any of the above The embodiment of the mimeograph documents format conversion method of example, details are not described herein again.
Example IV
The present embodiment provides a kind of storage mediums, are stored thereon with computer program, and computer program is executed by processor When, realize each step for the mimeograph documents format conversion method that the embodiment of the present application one provides.
It is understood that same or similar part can mutually refer in the various embodiments described above, in some embodiments Unspecified content may refer to the same or similar content in other embodiments.
It should be noted that term " first ", " second " etc. are used for description purposes only in the description of the present application, without It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present application, unless otherwise indicated, the meaning of " multiple " Refer at least two.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries Suddenly be that relevant hardware can be instructed to complete by program, program can store in a kind of computer readable storage medium In, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.If integrated module with The form of software function module is realized and when sold or used as an independent product, also can store computer-readable at one It takes in storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Although embodiments herein has been shown and described above, it is to be understood that above-described embodiment is example Property, it should not be understood as the limitation to the application, those skilled in the art within the scope of application can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (10)

1. a kind of file to be printed format conversion method, which is characterized in that described in the server applied to connection printing device File to be printed format conversion method includes:
Obtain file to be printed;
The file to be printed is converted into prn file;Wherein, the prn file is identifiable for the printing device, and can It is directly used in the format of printing;
The prn file is converted into printer transmission.
2. file to be printed format conversion method according to claim 1, which is characterized in that described to obtain text to be printed Part, comprising:
The file to be printed and number corresponding with the file to be printed that reception client or default platform upload;
The file to be printed is stored, the storage address of the file to be printed is obtained;
The storage address and the number of the file to be printed are stored in redis storage system;
It is described that the file to be printed is converted into prn file, comprising:
Obtain the storage address and the corresponding volume of the file to be printed of the file to be printed stored in redis storage system Number;
Based on the storage address of the file to be printed, the file to be printed is obtained;
By preset virtual machine, prn file is converted by the file to be printed;
The prn file is stored, the storage address of the prn file is obtained;
By the redis storage system, the storage address and the number of the prn file are stored;
It is described to be converted into the prn file to printer transmission, comprising:
Obtain the acquisition file request that the printer is sent;Wherein, the acquisition file request includes: the number;
Based on the number, Xiang Suoshu printer sends the prn file.
3. file to be printed format conversion method according to claim 2, which is characterized in that the virtual machine be with it is described The transit telegram text fictitious host computer that printer matches.
4. file to be printed format conversion method according to claim 3, which is characterized in that further include:
In the redis storage system, the uplink time of storage address and the number based on file to be printed described in multiple groups, Form print queue;
The file request that obtains is that the printer is generated based on number;One of corresponding acquisition file of number is asked It asks;
The printer is according to print queue sequential in accordance with generating and sending the acquisition file request.
5. file to be printed format conversion method according to claim 2, which is characterized in that it is described to be based on the number, The prn file is sent to the printer, comprising:
Based on the number, the storage address of the prn file is determined;Wherein, prn file includes at least one prn subfile; Each prn subfile is based on prn subfile printing in advance for being obtained by the printer, and by the printer If one page page of paper;
Whether judge in the prn file comprising at least one unprinted prn subfile;
If it exists, the prn subfile is sent to printer, and will successively sends each prn subfile to the printer.
6. file to be printed format conversion method according to claim 5, which is characterized in that it is described to be based on the number, The prn file is sent to the printer, further includes:
If prn subfile is not present in the prn file, it is not responding to the acquisition file request that the printer is sent;
Obtain the mission failure information that printer is sent;The mission failure information includes: number;
Wherein, after printer sends the same number corresponding acquisition file request preset times, or the continuous same number After corresponding acquisition file request sends preset time, prn subfile or prn file are not obtained yet, then send and appoint to server Business failure information;
The corresponding print out task failure of the number for marking the mission failure information to include.
7. a kind of file to be printed format conversion apparatus, applied in the server for connecting printing device, which is characterized in that packet It includes:
Module is obtained, for obtaining file to be printed;
Conversion module, for the file to be printed to be converted to prn file;Wherein, the prn file is the printing device It is identifiable, and can be directly used for the format of printing;
Sending module, for being converted into the prn file to printer transmission.
8. file to be printed format conversion apparatus according to claim 7, which is characterized in that
The acquisition module is specifically used for:
The file to be printed and number corresponding with the file to be printed that reception client or default platform upload;
The file to be printed is stored, the storage address of the file to be printed is obtained
The storage address and the number of the file to be printed are stored in redis storage system;
The conversion module is specifically used for:
Obtain the storage address and the corresponding volume of the file to be printed of the file to be printed stored in redis storage system Number;
Based on the storage address of the file to be printed, the file to be printed is obtained;
By preset virtual machine, prn file is converted by the file to be printed;
The prn file is stored, the storage address of the prn file is obtained;
By the redis storage system, the storage address and the number of the prn file are stored;
The sending module is specifically used for:
Obtain the acquisition file request that the printer is sent;Wherein, the acquisition file request includes: the number;
Based on the number, Xiang Suoshu printer sends the prn file.
9. a kind of file to be printed format conversion equipment, applied in the server for connecting printing device, which is characterized in that described File to be printed format conversion equipment, comprising:
Processor, and the memory being connected with the processor;
The memory is for storing computer program;
The processor is for calling and executing the computer program in the memory, to execute such as claim 1-6 Described in any item mimeograph documents format conversion methods.
10. a kind of storage medium, which is characterized in that be stored thereon with computer program, the computer program is held by processor When row, each step of mimeograph documents format conversion method as claimed in any one of claims 1 to 6 is realized.
CN201910513644.3A 2019-06-14 2019-06-14 File to be printed format conversion method, device, equipment and storage medium Pending CN110221792A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910513644.3A CN110221792A (en) 2019-06-14 2019-06-14 File to be printed format conversion method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910513644.3A CN110221792A (en) 2019-06-14 2019-06-14 File to be printed format conversion method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110221792A true CN110221792A (en) 2019-09-10

Family

ID=67817112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910513644.3A Pending CN110221792A (en) 2019-06-14 2019-06-14 File to be printed format conversion method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110221792A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258515A (en) * 2020-01-20 2020-06-09 北大方正集团有限公司 Data processing method, device and equipment
CN111880752A (en) * 2020-07-28 2020-11-03 平安科技(深圳)有限公司 Seal printing method and device, electronic equipment and storage medium
CN113377303A (en) * 2021-06-16 2021-09-10 苏州博瑞凯德信息技术有限公司 Printing method, printing device, client and server
CN114968133A (en) * 2022-05-25 2022-08-30 深圳前海百递网络有限公司 Document printing method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117188A (en) * 2009-12-31 2011-07-06 鸿富锦精密工业(深圳)有限公司 Printing system and printing method
EP2413235A1 (en) * 2010-07-28 2012-02-01 Sagemcom Documents Sas Printing system, printing client and printer, and corresponding method, computer program and recording medium
CN203982356U (en) * 2014-05-29 2014-12-03 华电分布式能源工程技术有限公司 A kind of office wireless printing system based on RFID
CN106406780A (en) * 2016-10-15 2017-02-15 魏歌 File print management method, equipment, server and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117188A (en) * 2009-12-31 2011-07-06 鸿富锦精密工业(深圳)有限公司 Printing system and printing method
EP2413235A1 (en) * 2010-07-28 2012-02-01 Sagemcom Documents Sas Printing system, printing client and printer, and corresponding method, computer program and recording medium
CN203982356U (en) * 2014-05-29 2014-12-03 华电分布式能源工程技术有限公司 A kind of office wireless printing system based on RFID
CN106406780A (en) * 2016-10-15 2017-02-15 魏歌 File print management method, equipment, server and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258515A (en) * 2020-01-20 2020-06-09 北大方正集团有限公司 Data processing method, device and equipment
CN111880752A (en) * 2020-07-28 2020-11-03 平安科技(深圳)有限公司 Seal printing method and device, electronic equipment and storage medium
CN113377303A (en) * 2021-06-16 2021-09-10 苏州博瑞凯德信息技术有限公司 Printing method, printing device, client and server
CN114968133A (en) * 2022-05-25 2022-08-30 深圳前海百递网络有限公司 Document printing method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110221792A (en) File to be printed format conversion method, device, equipment and storage medium
CN1525305B (en) Network system and client representation method of printing document
JP6621543B2 (en) Automatic update of hybrid applications
US9092178B2 (en) Printing system, control method thereof, and storage medium for printing from a mobile terminal
CN1307526C (en) Image processing apparatus, control method, storing medium and program
JP3556425B2 (en) Shared dictionary updating method and dictionary server
CN101167071B (en) Methods and devices for synchronizing modifiable documents with multiple clients
US6848079B2 (en) Document conversion using an intermediate computer which retrieves and stores position information on document data
CN106874334B (en) Data processing method and device and information processing system
US9001364B2 (en) Management system, image forming apparatus, management system control method, and image forming apparatus control method for migration of setting values of an application that operates in the image forimng apparatus
CN105376502A (en) All media on-line editing tool
CN110377242A (en) Print control unit, control method and storage medium
JP2015180991A (en) Image forming apparatus, control method of image forming apparatus, and program
CN103716488A (en) Information processing device
CN116954681A (en) Mirror image management method, device, server, terminal and storage medium
CN106797402A (en) Information processing system, information processor and its control method, image processing system and its control method and program
CN112988879A (en) Method, system, device, storage medium and processor for accessing database
JP2013084047A (en) Print relay server device, cloud print service providing server device, information processing method, and program
CN101415029B (en) Method and apparatus for distributing files
CN104067220B (en) Operation is sent to destination
JP2016099894A (en) File management system, information processing device and control method of the same, and program
US11853622B2 (en) Cloud printing method and cloud printing system
CN115766739A (en) Container mirror image distribution method, device, system and medium thereof
JP6812673B2 (en) Image processing systems, image forming equipment, data sharing methods, and computer programs
JP3903676B2 (en) Output system

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: 20190910