CN110825330A - Cloud printing method, printing cloud box, system and storage medium based on file fragmentation - Google Patents

Cloud printing method, printing cloud box, system and storage medium based on file fragmentation Download PDF

Info

Publication number
CN110825330A
CN110825330A CN201910964467.0A CN201910964467A CN110825330A CN 110825330 A CN110825330 A CN 110825330A CN 201910964467 A CN201910964467 A CN 201910964467A CN 110825330 A CN110825330 A CN 110825330A
Authority
CN
China
Prior art keywords
file
printing
format
print
cloud
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
CN201910964467.0A
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.)
Hangzhou Ellos Technology Co Ltd
Original Assignee
Hangzhou Ellos 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 Hangzhou Ellos Technology Co Ltd filed Critical Hangzhou Ellos Technology Co Ltd
Priority to CN201910964467.0A priority Critical patent/CN110825330A/en
Publication of CN110825330A publication Critical patent/CN110825330A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • G06F3/1212Improving printing performance achieving reduced delay between job submission and print start
    • 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
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server

Abstract

The application relates to a cloud printing method based on file fragmentation, a printing cloud box, a system and a storage medium, wherein a server firstly fragments a received printing file according to a preset fragmentation strategy, then performs format conversion on the fragmented file, converts the fragmented file into a uniform first format file and acquires a storage path of the first format file, and then sends the storage path to the printing cloud box, and the printing cloud box downloads the first format file according to the storage path and instructs a printer to print.

Description

Cloud printing method, printing cloud box, system and storage medium based on file fragmentation
Technical Field
The application relates to the technical field of internet printing, in particular to a cloud printing method, a printing cloud box, a printing cloud system and a storage medium based on file fragments.
Background
With the development of network technology, cloud printing services based on internet printing have emerged. When the user uses the cloud printing service, the configuration of the offline printer is not needed, only the printing resources are uploaded to the cloud printing server for virtual printing, and then the offline printer is flexibly selected to obtain the paper edition data.
However, the existing cloud printing service has poor efficiency, and especially when the printing resources uploaded by the user are large, the cloud printing service is highly influenced by the network bandwidth, and the problem that printing is slow or even fails often occurs.
Aiming at the problems that the cloud printing service efficiency is poor, and the printing is slow and even fails frequently in the related technology, an effective solution is not provided at present.
Disclosure of Invention
Based on this, it is necessary to provide a cloud printing method, a terminal, a system and a storage medium based on file fragmentation for solving the problem that the cloud printing service is slow in printing speed and even fails.
According to one aspect of the invention, a cloud printing method based on file fragments is provided, and the method comprises the following steps:
acquiring a printing file, and fragmenting the printing file according to a preset fragmentation strategy to generate a fragmented file;
carrying out format conversion on the fragment file to obtain a first format file and obtain a storage path of the first format file;
and sending the storage path to a printing cloud box, wherein the printing cloud box downloads the first format file according to the storage path and instructs a printer to print.
In one embodiment, after performing format conversion on the fragment file to obtain a first format file, the method includes:
acquiring a file conversion state of the first format file, wherein the file conversion state indicates a result state of format conversion of the fragment file;
under the condition that the file conversion state is failed, the fragment file is obtained again to carry out the format conversion;
and under the condition that the frequency of continuous failure of the file conversion state is greater than a preset value, stopping acquiring the fragment file.
In one embodiment, after sending the storage path to the print cloud box, the method includes:
the server receives a message of printing failure sent by the printing cloud box, wherein the printing cloud box downloads the first format file according to the storage path, the printing cloud box acquires the printing state of the printer after instructing the printer to print the first format file, and the printing cloud box sends the message of printing failure to the server under the condition that the number of times that the printing state is continuously failed is greater than a preset value;
the server acquires the fragment file corresponding to the first format file according to the printing failure message, and sends the information of the fragment file to the user side.
In one embodiment, after obtaining the storage path of the first format file, the method includes:
generating a fragment cache table according to the printing file and the first format file;
after the print file is obtained, the fragment cache table is searched first, and under the condition that the first format file corresponding to the print file is included in the fragment cache table, the first format file in the fragment cache table is obtained and sent to the print cloud box.
A cloud printing method based on file fragmentation comprises the following steps:
the printing cloud box receives a storage path of a first format file sent by a server, wherein the server fragments the printing file according to a preset fragmentation strategy to generate a fragment file, and performs format conversion on the fragment file to obtain the first format file;
the printing cloud box downloads the first format file according to the storage path and instructs a printer to print the first format file.
In one embodiment, the printing cloud box downloads the first format file according to the storage path, and instructs a printer to print the first format file, and the method includes:
acquiring the printing state of the printer;
instructing the printer to reprint the first format file if the printing status is failure;
and stopping instructing the printer to reprint the first format file when the number of times that the printing state is continuously failed is greater than a preset value.
According to another aspect of the present invention, there is also provided a printing cloud box, including:
the printing task receiving module is used for receiving a storage path of a first format file sent by a server, wherein the server fragments the printing file according to a preset fragmentation strategy to generate a fragment file, and performs format conversion on the fragment file to obtain the first format file;
the file downloading module is used for downloading the first format file according to the storage path;
and the printer control module is used for instructing the printer to print the first format file.
According to another aspect of the present invention, there is also provided a printing system comprising a server and a printing cloud box, wherein,
the server acquires a print file, and fragments the print file according to a preset fragmentation strategy to generate a fragmented file;
the server carries out format conversion on the fragment file to obtain a first format file and obtain a storage path of the first format file;
the server sends the storage path to the printing cloud box, wherein the printing cloud box downloads the first format file according to the storage path and instructs a printer to print;
the printing cloud box is used for receiving a storage path of a first format file sent by a server, wherein the server fragments the printing file according to a preset fragmentation strategy to generate a fragment file, and performs format conversion on the fragment file to obtain the first format file;
the printing cloud box downloads the first format file according to the storage path and instructs a printer to print the first format file.
In an embodiment, the server is further configured to obtain a file conversion status of the first format file after performing format conversion on the fragmented file to obtain the first format file, where the file conversion status indicates a result status of format conversion of the fragmented file; and under the condition that the file conversion state is failure, acquiring the fragment file again for carrying out the format conversion, and under the condition that the number of times of continuous failure of the file conversion state is greater than a preset value, stopping acquiring the fragment file.
According to another aspect of the invention, there is also provided a computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
According to the cloud printing method, the server fragments the received print file according to the preset fragmentation strategy, then performs format conversion on the fragmented file, converts the fragmented file into the uniform first format file and acquires the storage path of the first format file, then sends the storage path to the print cloud box, the print cloud box downloads the first format file according to the storage path and instructs the printer to print, and the cloud printing method fragments the print resource and converts the fragmented file into the first format file and then transmits the first format file to the printer end, so that the influence of network conditions on file transmission is reduced, the printing efficiency of the printer end is improved, and the problem that the printing is slow and even fails in the cloud printing service is solved.
Drawings
FIG. 1 is a schematic diagram of a cloud printing application scenario based on file fragmentation according to an embodiment of the present invention;
FIG. 2 is a first flowchart of a cloud printing method based on file sharding according to an embodiment of the present invention;
FIG. 3 is a flowchart II of a cloud printing method based on file fragmentation according to an embodiment of the present invention;
fig. 4 is a schematic view of an application scenario of a file fragmentation based cloud printing method according to another embodiment of the present invention;
fig. 5 is a schematic diagram of a file fragmentation based print cloud box according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In this embodiment, a cloud printing method based on file fragmentation is provided, and fig. 1 is a schematic diagram of a cloud printing application scenario based on file fragmentation according to an embodiment of the present invention, as shown in fig. 1, in this application environment, a client 12, a server 14, a printing cloud box 16, and an offline printer 18 are included. The user end 12 communicates with the server 14 through the network, and the user end 12 can upload the print file through the network; the server 14 receives the print file uploaded by the user end 12, stores the print file, and performs fragmentation and format conversion on the print file to obtain a first format file; the server 14 sends the first format file to the printing cloud box 16; the printing cloud box 16 controls the off-line printer 18 to complete printing. The client 12 may be, but is not limited to, various smart phones, personal computers, notebook computers, and tablet computers, and the server 14 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
The cloud printing method based on the file fragments can be used for internet printing, and fast and efficient cloud printing service is achieved.
In an embodiment, fig. 2 is a flowchart of a first file fragment-based cloud printing method according to an embodiment of the present invention, as shown in fig. 2, including the following steps:
step S210, acquiring a print file, and segmenting the print file according to a preset segmentation strategy to generate a segmented file;
in step S210, the server 14 receives and stores the print file, and then selects an adaptive fragmentation mode to fragment the print file according to a preset fragmentation policy and the size of the received file, for example: the preset slicing strategy is that when the number of pages of the file is more than or equal to 10 pages, slicing is not performed; when the number of pages of the file is more than 10 and less than 100, taking every 10 pages as one fragment; when the number of pages of the file is greater than or equal to 100 pages, every 20 pages are taken as one shard; when the received file is 18 pages, the file is divided into a 10-page fragmentation file and an 8-page fragmentation file according to the above-mentioned policy, and the fragmentation policy can be adjusted according to the specific application environment, such as the storage capacity of the printing cloud box 16, the network configuration of the printer, and the like.
Step S220, carrying out format conversion on the fragment file to obtain a first format file, wherein the fragment file corresponds to the first format file, and a storage path of the first format file is obtained;
in step S220, the server 14 performs format conversion on the fragmented file to convert the fragmented file into a first format file, where the first format file is a uniform format that is convenient for the printer to recognize, and at the same time, stores the obtained first format file and records a storage path of the first format file.
Step S230, sending a storage path to the printing cloud box 16, where the printing cloud box 16 downloads the first format file according to the storage path and instructs the printer to print;
in this step S230, the server 14 sends the storage path of the first format file to the printing cloud box 16, and the printing cloud box 16 sequentially downloads the first format file corresponding to each fragment file according to the received storage path of the first format file, and then instructs the printer to sequentially print. Taking the above fragment file as an example, two fragment files generated from 18 pages of files are respectively converted into two first format files, two storage paths exist correspondingly, the printing cloud box 16 downloads the corresponding first format files according to the corresponding received storage paths, for example, the printing cloud box 16 downloads the first format file obtained by converting the first 10 pages of fragment files, and sends the first format file to the printer for printing, and in the printing process of the printer, the printing cloud box 16 continues to download the first format file obtained by converting the second 8 pages of fragment files, and then sends the first format file to the printer for printing.
Through the steps of the method, the server 14 fragments the received print file according to a preset fragmentation strategy, then performs format conversion on the fragmented file, converts the fragmented file into a uniform first format file and acquires a storage path of the first format file, then sends the storage path to the print cloud box 16, the print cloud box 16 downloads the first format file according to the storage path and instructs the printer to print, and the cloud printing method fragments the print resource and converts the fragmented file into the first format file and then transmits the first format file to the printer, so that the influence of network conditions on file transmission is reduced, the printing efficiency of the printer is improved, and the problem that slow printing or even failure frequently occurs in cloud printing service is solved.
In an embodiment, after performing format conversion on the fragmented file to obtain a first format file, the server 14 obtains a file conversion status of the first format file, where the file conversion status indicates a result status of format conversion of the fragmented file, such as conversion success or conversion failure; under the condition that the file conversion state is failure, the fragment file is obtained again for format conversion; the method comprises the steps that when the number of times of file conversion state continuous failure is larger than a preset value, the fragment file is stopped being obtained, for example, a manager of a printing system sets the preset value to be 5 times according to user requirements, and then when file format conversion is continuously performed for 5 times and conversion failure is displayed, the conversion process is stopped.
In one embodiment, the server 14 sends the storage path to the print cloud box 16, and the print cloud box 16 downloads the first format file according to the storage path, and instructs the printer to obtain the print status of the printer after printing the first format file, for example, the print cloud box 16 succeeds in printing or fails in printing; when the printing state continuously indicates that the number of times of printing failure is greater than the preset value, the printing cloud box 16 sends a message of printing failure to the server 14, for example, a manager of the printing system sets the preset value to 4 times according to a user requirement, and then sends the message of printing failure to the server 14 after the printing cloud box 16 acquires the state of printing failure from the printer for 4 times continuously; after receiving the message of printing failure sent by the printing cloud box 16, the server 14 acquires the fragmented file corresponding to the first format file according to the message, and sends the information of the fragmented file to the user end 12, and the user end 12 may browse the contents of the fragmented file that is not successfully printed on the page, and then perform further operations, such as abandoning printing or reprinting. The embodiment mode provides a solution to the printing failure, and the printing solution is more complete by acquiring the content of the fragment file which fails to be printed and visually presenting the content to the user terminal 12.
In an embodiment, after obtaining the storage path of the first format file, the server 14 generates a fragment cache table according to the storage paths of the print file and the first format file, where the print file and the storage path of the print file fragment and the first format file obtained after format conversion may be stored in the cache table, and the two may be mapped one to one, and in addition, the total number of fragment files after the print file fragment may be recorded, where the current fragment is the second fragment, and information such as the conversion state and the print state of the fragment is convenient for management; after the server 14 obtains the print file, the fragment cache table is searched first, and when the record of the print file exists in the fragment cache table, the storage path of the first format file corresponding to the print file is obtained, and the first format file can be directly sent to the print cloud box 16 without going through the processes of fragmentation and format conversion again.
In an embodiment, fig. 3 is a second flowchart of a file fragment-based cloud printing method according to an embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
step S310: the printing cloud box 16 receives a storage path of a first format file sent by the server 14, wherein the server 14 fragments the printing file according to a preset fragmentation strategy to generate a fragmented file, and performs format conversion on the fragmented file to obtain the first format file;
in this step S310, after the server 14 fragments and converts the format of the print file to obtain the first format file, the print cloud box 16 receives the storage path of the first format file sent by the server 14. Specifically, the server 14 receives and stores the print file, and then selects an adaptive fragmentation mode to fragment the print file according to a preset fragmentation policy and the size of the received file, so as to obtain a fragmented file, performs format conversion on the fragmented file, and converts the fragmented file into a first format file, where the first format is a uniform format convenient for a printer to identify, and meanwhile, the server 14 stores the obtained first format file, records a storage path of the first format file, and sends the path to the print cloud box 16.
Step S320: the printing cloud box 16 downloads the first format file according to the storage path, and instructs the printer to print the first format file;
in this step S320, the print cloud box 16 downloads the first format file according to the storage path and instructs the printer to print.
In this embodiment, the printing cloud box 16 receives the first format file storage path sent by the server 14, downloads the first format file according to the storage path, and sends the first format file to the printer, and the printing cloud box 16 has a scheduling function of caching the first format file and performing a printing process, for example, it is detected that the printer is printing the current first format file, and another first format file can be downloaded in the time slot, so that the printing efficiency is improved.
In one embodiment, the print cloud box 16 downloads the first format file according to the storage path, and instructs the printer to obtain the print status of the printer after printing the first format file, for example, the print status is successful or failed; if the state returned by the printer is printing failure, the printing cloud box can send the first format file to the printer again and instruct the printer to print the first format file so as to solve the problem of occasional printing failure of the printer, and the total number of times of sending the first format file to the printer by the printing cloud box is less than or equal to a preset value; when the number of times of printing failure continuously indicated by the printing state is greater than a preset value set by a manager of the printing system according to user requirements, the printing cloud box 16 sends a message of printing failure to the server 14, for example, the preset value is set to 4 times, then, when the printing cloud box 16 acquires the printing failure state from the printer for 4 times continuously, the current first format file is stopped from being sent to the printer, and meanwhile, the next first format file is stopped from being acquired.
Fig. 4 is a schematic view of an application scenario of a cloud printing method based on file fragmentation according to another embodiment of the present invention, as shown in fig. 4, the server 14 is composed of an information management server 42, a file conversion server 44 and a file management server 46, preferably, the information management server 42 and the file management server 46 are servers of linux system, and the file conversion server 44 is a server of windows system; in a specific embodiment, the pdf aggregate file uploaded to the information management server 42 is divided into a plurality of pages according to a paging policy, where the fragmentation policy used here is 1599 policy, that is, the first part of the fragment contains 1 page file, the second part contains 5 pages file, and the third part contains 9 pages file in each paging file, and the files are stored in the information management server 42.
Sending information such as a file storage path, a virtual printer index number, and the number of the segmented files of the first segmented file to the file conversion server 44, that is, sending a file conversion service request to the file conversion server 44, where the virtual printer is a virtual printer on the file conversion server 44 and functions to convert files in other formats such as pdf into files in the first format; and creating a queue according to the fsc _ + virtual printer index number, sequentially putting the rest fragment file information into the queue, creating a stack named as sub _ fsc _ + virtual printer index number, and storing the first fragment file information into the stack.
The file conversion server 44 downloads the fragment file according to the storage address of each fragment file provided by the information management server 42, finds the virtual printer on the file conversion server 44 by the virtual printer index number, converts the pdf-formatted file into the file format recognized by the printer, and transmits the converted file to the file management server 46;
the information management server 42 receives the virtual print request response returned from the file conversion server 44, queries whether a print record corresponding to the pdf master file exists, and changes the print record status, for example, changes an unprinted status in a print record into printing, where the print record is a database that records details of the print file and conversion and print statuses, and the database may be established in redis.
The information management server 42 communicates with the file management server 46 and receives a message from the file management server 46 containing the size and storage path of the first format file.
After receiving the message, the information management server 42 executes the following steps:
judging whether a queue named by 'fsc _' + virtual printer index number exists, if so, taking out the next fragment file in the queue, sending the next fragment file to the file conversion server 44 for processing, and repeating the steps until all the fragment files are completely converted, and deleting the queue;
if the file conversion fails, the information management server 42 extracts the stack top information in the stack named by the sub _ fsc _ "+ virtual printer index number, transmits the stack top information to the file conversion server 44, and the process is repeated for a limited number of times, for example, three times, if the number of times is used up, the database is updated, the conversion failure is displayed, the current stack is emptied, and the remaining files in the queue are extracted;
the information of the first format file received by the information management server 42 is updated to the memory of the information management server 42, and the first format file at this time is not the first format file generated by the complete print file but the first format file generated by the fragment file.
Further, the information management server 42 creates a queue based on the index number of the offline printer 18, stores the received first-format file information;
searching information of the offline printer 18, sending information of a first format file which is firstly queued, such as printer index numbers corresponding to printed files, the number of split files and the like to the printing cloud box 16, popping the information from the queue, pushing the information to a stack named by the index number of the offline printer 18, and waiting for feedback of the printing cloud box 16;
and receiving a printing transaction information reporting request of the printing cloud box 16, wherein the request includes contents such as a printing state, a failure reason, a fragment serial number and the like.
After the printing cloud box finishes printing, the information management server 42 executes the following steps after receiving the printing cloud box message:
updating a first format file print record
If the print cloud box 16 judges that the file is not completely printed, returning to state of 3 (print is not completed), the information management server 42 obtaining a queue through the index number of the offline printer 18, inquiring the queue, checking whether the file still has the first format file of the fragment file, if so, sending the file to the print cloud box 16, simultaneously popping (pop) the current file, and pushing (push) the file to the corresponding stack;
if the print cloud box 16 returns a state of 2 (print failure), reading an element at the top of the stack from the stack storing the first-format file, resending the element to the print cloud box 16, performing the sending operation for a limited number of times, for example, three times, if the three times of operations are unsuccessful, determining that the fragmented file fails to be printed, the information management server 42 emptying the stack storing the first-format file according to a report request of the print transaction information of the print cloud box 16, popping redundant data in a queue storing the first-format file out of the queue, sending a first fragmented file of a new print file to the print cloud box 16, and so on; after printing fails, the information management server 42 updates the database state and reports the printing transaction information;
when the fragmented files fail to be printed, the printing cloud box 16 sends printing failure information to the information management server 42, the information management server 42 pushes out the rest fragmented files from the queue, and displays file information corresponding to the fragmented files which fail to be printed in the queue on the pages of the user side 12 to remind the user whether to reprint the pages;
before a printing transaction is reported, if the queue corresponding to the current printId contains the first format file information, the operation of sending the first format file information to the printing cloud box 16 is repeated, if all the fragments are printed successfully, the current stack is emptied, the database state is updated, then the printing transaction is reported, and a state is returned to 1 (printing is successful).
In addition, a fragment cache table is established during fragmentation, and the content recorded in the fragment cache table is as shown in table 1:
TABLE 1
The MD5 information in the table is information obtained by an information digest algorithm for ensuring the integrity and consistency of information transmission, and is unique for each print file, when a user accesses an interface, the MD5 is generated by a path name and a file name code of a file stored on the server 14, and when the user uploads the same print file again, the user searches for a fragment file stored in the server 14 through the MD5, directly queries the fragment information from the database, and notifies the print cloud box 16 of downloading, without a step of converting the file into a file of the first format through the file conversion server 44.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application.
In an embodiment, fig. 5 is a schematic diagram of a print cloud box 16 based on file fragmentation according to an embodiment of the present invention, and as shown in fig. 5, there is provided a print cloud box 16 including a print job receiving module, a file downloading module, and a printer control module, where:
the print job receiving module 52 is configured to receive a storage path of the first format file sent by the server 14, where the server 14 fragments the print file according to a preset fragmentation policy to generate a fragmented file, and performs format conversion on the fragmented file to obtain the first format file;
a file downloading module 54, configured to download the first format file according to the storage path;
and a printer control module 56 for instructing the printer to print the first format file.
The various modules in the print cloud cartridge 16 described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a printing system is provided, comprising a server 14 and a print cloud box 16:
the server 14 acquires the print file, and segments the print file according to a preset segmentation strategy to generate a segmented file;
the server 14 performs format conversion on the fragment file to obtain a first format file, and obtains a storage path of the first format file;
the server 14 sends the storage path to the print cloud box 16, wherein the print cloud box 16 downloads the first format file according to the storage path and instructs a printer to print;
the printing cloud box 16 is configured to receive a storage path of a first format file sent by the server 14, where the server 14 fragments the printing file according to a preset fragmentation policy to generate a fragmented file, and performs format conversion on the fragmented file to obtain the first format file;
the printing cloud box 16 downloads the first format file according to the storage path, and instructs the printer to print the first format file.
In one embodiment, the above printing system is further configured to implement that, after performing format conversion on the fragmented file to obtain a first format file, the server 14 obtains a file conversion status of the first format file, where the file conversion status indicates a result status of format conversion of the fragmented file; and under the condition that the file conversion state is failure, the fragment file is acquired again for format conversion, and under the condition that the frequency of continuous failure of the file conversion state is greater than a preset value, the acquisition of the fragment file is stopped.
According to the cloud printing system based on the file fragments, the influence of network conditions on file transmission is reduced through file fragment printing and format conversion, the printing efficiency of a printer end is improved, and the problem that the cloud printing service is slow in printing and even fails is solved.
In one embodiment, a computer-readable storage medium is further provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the above file fragmentation-based cloud printing method.
The readable storage medium can improve the printing efficiency of the printer end through the stored executable program, and the problem that the printing is slow and even fails frequently occurs in the cloud printing service is solved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A cloud printing method based on file fragments is characterized by comprising the following steps:
acquiring a printing file, and fragmenting the printing file according to a preset fragmentation strategy to generate a fragmented file;
carrying out format conversion on the fragment files to obtain first format files, wherein the first format files correspond to the fragment files, and a storage path of the first format files is obtained;
and sending the storage path to a printing cloud box, wherein the printing cloud box downloads the first format file according to the storage path and instructs a printer to print.
2. The file fragmentation-based cloud printing method according to claim 1, wherein after the fragmentation file is subjected to format conversion to obtain a first format file, the method comprises:
acquiring a file conversion state of the first format file, wherein the file conversion state indicates a result state of format conversion of the fragmented files;
under the condition that the file conversion state is failed, the fragment file is obtained again to carry out the format conversion;
and under the condition that the frequency of continuous file conversion state failures is greater than a preset value, stopping acquiring the fragment file.
3. The file fragmentation-based cloud printing method according to claim 1, wherein after sending the storage path to a printing cloud box, the method comprises:
receiving a printing failure message sent by the printing cloud box, wherein the printing cloud box downloads the first format file according to the storage path, the printing cloud box acquires a printing state of the printer after instructing the printer to print the first format file, and the printing cloud box sends the printing failure message to the server under the condition that the number of times that the printing state is continuously failed is greater than a preset value;
and acquiring the fragment file corresponding to the first format file according to the printing failure message, and sending the information of the fragment file to a user side.
4. The file fragmentation-based cloud printing method according to claim 1, wherein after the storage path of the first format file is acquired, the method includes:
generating a fragment cache table according to the storage paths of the print file and the first format file;
after the print file is obtained, the fragment cache table is searched first, and under the condition that the first format file corresponding to the print file is included in the fragment cache table, the storage path of the first format file in the fragment cache table is obtained and sent to the print cloud box.
5. A cloud printing method based on file fragments is characterized by comprising the following steps:
receiving a storage path of a first format file sent by a server, wherein the server divides a print file into pieces according to a preset division strategy to generate a piece file, and performs format conversion on the piece file to obtain the first format file;
and downloading the first format file according to the storage path, and instructing a printer to print the first format file.
6. The file fragmentation based cloud printing method according to claim 5, wherein the printing cloud box downloads the first format file according to the storage path, and instructs a printer to print the first format file, and the method includes:
acquiring the printing state of the printer;
instructing the printer to reprint the first format file if the printing status is failure;
and stopping instructing the printer to reprint the first format file when the number of times that the printing state is continuously failed is greater than a preset value.
7. A print cloud box based on file shards, the print cloud box comprising:
the printing task receiving module is used for receiving a storage path of a first format file sent by a server, wherein the server fragments the printing file according to a preset fragmentation strategy to generate a fragment file, and performs format conversion on the fragment file to obtain the first format file;
the file downloading module is used for downloading the first format file according to the storage path;
and the printer control module is used for indicating a printer to print the first format file.
8. A cloud printing system based on file fragmentation comprises a server and a printing cloud box, and is characterized in that,
the server acquires a print file, and fragments the print file according to a preset fragmentation strategy to generate a fragmented file;
the server carries out format conversion on the fragmented files to obtain first format files and obtain storage paths of the first format files;
the server sends the storage path to the printing cloud box, wherein the printing cloud box downloads the first format file according to the storage path and instructs a printer to print;
the printing cloud box is used for receiving a storage path of a first format file sent by a server, wherein the server fragments the printing file according to a preset fragmentation strategy to generate a fragment file, and performs format conversion on the fragment file to obtain the first format file;
and the printing cloud box downloads the first format file according to the storage path and instructs a printer to print the first format file.
9. The file fragmentation based cloud printing system of claim 8,
the server is further configured to obtain a file conversion state of the first format file after the format conversion is performed on the fragmented file to obtain the first format file, where the file conversion state indicates a result state of the format conversion of the fragmented file; and under the condition that the file conversion state is failure, acquiring the fragment file again for carrying out the format conversion, and under the condition that the frequency of continuous failure of the file conversion state is greater than a preset value, stopping acquiring the fragment file.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201910964467.0A 2019-10-11 2019-10-11 Cloud printing method, printing cloud box, system and storage medium based on file fragmentation Pending CN110825330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910964467.0A CN110825330A (en) 2019-10-11 2019-10-11 Cloud printing method, printing cloud box, system and storage medium based on file fragmentation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910964467.0A CN110825330A (en) 2019-10-11 2019-10-11 Cloud printing method, printing cloud box, system and storage medium based on file fragmentation

Publications (1)

Publication Number Publication Date
CN110825330A true CN110825330A (en) 2020-02-21

Family

ID=69549279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910964467.0A Pending CN110825330A (en) 2019-10-11 2019-10-11 Cloud printing method, printing cloud box, system and storage medium based on file fragmentation

Country Status (1)

Country Link
CN (1) CN110825330A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857609A (en) * 2020-06-12 2020-10-30 上海商米科技集团股份有限公司 Method and device for uploading cloud printing log and computer storage medium
CN113031888A (en) * 2021-04-09 2021-06-25 厦门喵宝科技有限公司 Method for printing large document based on embedded small memory device
CN113419691A (en) * 2021-07-01 2021-09-21 山东白令三维科技有限公司 3D printing method and device and 3D printing Internet of things system
CN114363321A (en) * 2021-12-30 2022-04-15 支付宝(杭州)信息技术有限公司 File transmission method, equipment and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120050796A1 (en) * 2010-08-31 2012-03-01 Canon Kabushiki Kaisha Server system, print device, network print system including server system and print device, and downloading method in network print system
CN103902236A (en) * 2012-12-24 2014-07-02 北大方正集团有限公司 Realization method and system for printing service
CN105005455A (en) * 2015-06-26 2015-10-28 丁四涛 Printing control method and device of intelligent terminal
CN110134343A (en) * 2018-02-09 2019-08-16 南京信安宝信息科技有限公司 The method that cloud prints big document printing speed
CN110134350A (en) * 2019-05-23 2019-08-16 宜春宜联科技有限公司 A kind of mimeograph documents segmentation transmission method
US20190265929A1 (en) * 2018-02-27 2019-08-29 Canon Kabushiki Kaisha Print processing system and method
JP2019160231A (en) * 2018-03-16 2019-09-19 株式会社リコー Information processing apparatus, image forming apparatus, system, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120050796A1 (en) * 2010-08-31 2012-03-01 Canon Kabushiki Kaisha Server system, print device, network print system including server system and print device, and downloading method in network print system
CN103902236A (en) * 2012-12-24 2014-07-02 北大方正集团有限公司 Realization method and system for printing service
CN105005455A (en) * 2015-06-26 2015-10-28 丁四涛 Printing control method and device of intelligent terminal
CN110134343A (en) * 2018-02-09 2019-08-16 南京信安宝信息科技有限公司 The method that cloud prints big document printing speed
US20190265929A1 (en) * 2018-02-27 2019-08-29 Canon Kabushiki Kaisha Print processing system and method
JP2019160231A (en) * 2018-03-16 2019-09-19 株式会社リコー Information processing apparatus, image forming apparatus, system, and program
CN110134350A (en) * 2019-05-23 2019-08-16 宜春宜联科技有限公司 A kind of mimeograph documents segmentation transmission method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857609A (en) * 2020-06-12 2020-10-30 上海商米科技集团股份有限公司 Method and device for uploading cloud printing log and computer storage medium
CN113031888A (en) * 2021-04-09 2021-06-25 厦门喵宝科技有限公司 Method for printing large document based on embedded small memory device
CN113419691A (en) * 2021-07-01 2021-09-21 山东白令三维科技有限公司 3D printing method and device and 3D printing Internet of things system
CN114363321A (en) * 2021-12-30 2022-04-15 支付宝(杭州)信息技术有限公司 File transmission method, equipment and system

Similar Documents

Publication Publication Date Title
CN110825330A (en) Cloud printing method, printing cloud box, system and storage medium based on file fragmentation
US11327799B2 (en) Dynamic allocation of worker nodes for distributed replication
US20200348852A1 (en) Distributed object replication architecture
US20200159611A1 (en) Tracking status and restarting distributed replication
US10909110B1 (en) Data retrieval from a distributed data storage system
US11349915B2 (en) Distributed replication and deduplication of an object from a source site to a destination site
CN108256114B (en) Document online preview method and device, computer equipment and storage medium
CN109756508B (en) Message proxy method based on multi-protocol access block chain network and related equipment
US11061867B2 (en) Application aware deduplication allowing random access to compressed files
CN107689976B (en) File transmission method and device
CN111033459B (en) Microservice-based deduplication optimized for wide area networks
US20160352811A1 (en) Streaming zip
CN110990335B (en) Log archiving method, device, equipment and computer readable storage medium
CN111935227A (en) Method for uploading file through browser, browser and electronic equipment
US20090063621A1 (en) Apparatus, system, and method for cooperation between a browser and a server to package small objects in one or more archives
CN111666745B (en) File downloading method, device, server and medium
CN112822260A (en) File transmission method and device, electronic equipment and storage medium
US20090063622A1 (en) Apparatus, system, and method for cooperation between a browser and a server to package small objects in one or more archives
CN112035405A (en) Document transcoding method and device, scheduling server and storage medium
CN112100134A (en) Method and device for exporting large file, storage medium and computer equipment
CN109905479B (en) File transmission method and device
CN112532740B (en) File uploading method and device and file checking method and device
US20240053906A1 (en) Fragmentation assessment for storage correction
CN111314478B (en) File transmission method and device and computer equipment
CN113806815B (en) File signing method and 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