CN111258515A - Data processing method, device and equipment - Google Patents

Data processing method, device and equipment Download PDF

Info

Publication number
CN111258515A
CN111258515A CN202010066504.9A CN202010066504A CN111258515A CN 111258515 A CN111258515 A CN 111258515A CN 202010066504 A CN202010066504 A CN 202010066504A CN 111258515 A CN111258515 A CN 111258515A
Authority
CN
China
Prior art keywords
page
content
format
attribute information
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010066504.9A
Other languages
Chinese (zh)
Other versions
CN111258515B (en
Inventor
陶涛
徐佳
谢浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Founder Easiprint Co ltd
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Beijing Founder Easiprint Co ltd
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Beijing Founder Easiprint Co ltd, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Beijing Founder Easiprint Co ltd
Priority to CN202010066504.9A priority Critical patent/CN111258515B/en
Publication of CN111258515A publication Critical patent/CN111258515A/en
Application granted granted Critical
Publication of CN111258515B publication Critical patent/CN111258515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • G06F3/1215Improving printing performance achieving increased printing speed, i.e. reducing the time between printing start and printing end
    • 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/1244Job translation or job parsing, e.g. page banding
    • G06F3/1247Job translation or job parsing, e.g. page banding by conversion to printer ready format
    • 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/125Page layout or assigning input pages onto output media, e.g. imposition

Abstract

The embodiment of the invention provides a method, a device and equipment for data processing, wherein the method comprises the following steps: acquiring a first page to be printed, wherein the format of the first page is a first format, the first page comprises at least one section of page content, and the first page is any page in a printing task; determining a conversion algorithm corresponding to each section of page content in the first page; respectively carrying out format conversion on each section of page content in the first page according to a conversion algorithm corresponding to the page content to obtain a second page, wherein the format of the second page is a second format; the second page is sent to the printer to cause the printer to print the second page. The printing speed of the PostScript printer is improved.

Description

Data processing method, device and equipment
Technical Field
The embodiment of the invention relates to the field of computer software, in particular to a data processing method, a data processing device and data processing equipment.
Background
PostScript printers, which are a generic term for a class of printers that use PostScript as a page description language, are widely used in the field of print publishing.
In the printing process of the existing PostScript printer, a computer generally receives a PDF file to be printed, generates dot matrix data after raster image processing on each page in the PDF file, inserts the dot matrix data into a PostScript page, and sequentially sends each PostScript page into which the dot matrix data is inserted to the PostScript printer, so that the PostScript printer sequentially prints each PostScript page.
However, the speed of raster image processing is generally slow, and the amount of data of generated dot matrix data is also large. When the printing amount is large, the speed of sending the PostScript page to the printer is slower than the printing speed of the printer, the printer is in an idle state, and when the data is received again, the printer is preheated again, so that a large amount of time is wasted.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device and data processing equipment, which are used for improving the printing speed of a PostScript printer.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
acquiring a first page to be printed, wherein the format of the first page is a first format, the first page comprises at least one section of page content, and the first page is any page in a printing task;
determining a conversion algorithm corresponding to each section of page content in the first page;
performing format conversion on each section of page content in the first page according to a conversion algorithm corresponding to the page content respectively to obtain a second page, wherein the format of the second page is a second format;
and sending the second page to a printer to enable the printer to print the second page.
In a possible implementation, determining a conversion algorithm corresponding to each piece of page content in the first page includes:
determining the content type of each page content, wherein the content type is a text type or an image type;
and determining a conversion algorithm corresponding to each section of page content in the first page according to the content type of each section of page content.
In one possible implementation, determining the content type of each piece of page content includes:
acquiring a content identifier corresponding to each section of page content, wherein the content identifier is used for indicating the content type of the page content;
and determining the content type of each section of page content according to the content identifier corresponding to each section of page content and a preset corresponding relationship, wherein the corresponding relationship is the corresponding relationship between the content identifier and the content type.
In a possible implementation, before sending the second page to the printer, the method further includes:
determining page attribute information of the second page;
and inserting the page attribute information into the second page.
In a possible implementation, inserting the page attribute information in the second page includes:
determining a first preset position in the second page;
and inserting the page attribute information at the first preset position, wherein the format of the page attribute information is different from the format of the page content in the second page.
In one possible embodiment, the first page is a first page in the print job; before sending the second page to the printer, the method further comprises:
determining task attribute information of the print task, wherein the task attribute information is used for indicating printer setting of the printer aiming at the print task;
and inserting the task attribute information into the second page.
In a possible implementation, inserting the task attribute information in the second page includes:
determining a second preset position in the second page;
and inserting the task attribute information at the second preset position, wherein the format of the task attribute information is different from the format of the page content in the second page.
In a second aspect, an embodiment of the present invention provides an apparatus for data processing, including:
the system comprises an acquisition module, a printing module and a printing module, wherein the acquisition module is used for acquiring a first page to be printed, the format of the first page is a first format, the first page comprises at least one section of page content, and the first page is any page in a printing task;
the determining module is used for determining a conversion algorithm corresponding to each section of page content in the first page;
the conversion module is used for performing format conversion on each section of page content in the first page according to a conversion algorithm corresponding to the page content respectively to obtain a second page, and the format of the second page is a second format;
and the sending module is used for sending the second page to a printer so as to enable the printer to print the second page.
In a possible implementation, the determining module is specifically configured to:
determining the content type of each page content, wherein the content type is a text type or an image type;
and determining a conversion algorithm corresponding to each section of page content in the first page according to the content type of each section of page content.
In a possible implementation, the determining module is specifically configured to:
acquiring a content identifier corresponding to each section of page content, wherein the content identifier is used for indicating the content type of the page content;
and determining the content type of each section of page content according to the content identifier corresponding to each section of page content and a preset corresponding relationship, wherein the corresponding relationship is the corresponding relationship between the content identifier and the content type.
In a possible embodiment, the device further comprises an insertion module, wherein,
the determining module is further used for determining page attribute information of the second page before the second page is sent to a printer;
the inserting module is used for inserting the page attribute information into the second page.
In a possible implementation, the insertion module is specifically configured to:
determining a first preset position in the second page;
and inserting the page attribute information at the first preset position, wherein the format of the page attribute information is different from the format of the page content in the second page.
In one possible embodiment, the first page is a first page in the print job; the apparatus further comprises an insertion module, wherein,
the determining module is further configured to determine task attribute information of the print job before sending the second page to a printer, where the task attribute information is used to indicate printer settings of the printer for the print job;
the inserting module is used for inserting the task attribute information into the second page.
In a possible implementation, the insertion module is specifically configured to:
determining a second preset position in the second page;
and inserting the task attribute information at the second preset position, wherein the format of the task attribute information is different from the format of the page content in the second page.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory is to store computer program instructions;
the at least one processor is configured to execute the computer program instructions stored by the memory to cause the terminal device to perform the method of any of the first aspect above.
In a fourth aspect, the present invention provides a readable storage medium, in which computer program instructions are stored, and when a processor executes the computer program instructions, the method according to any one of the above first aspects is performed.
According to the data processing method, the data processing device and the data processing equipment, when a printing job is required to be carried out, a first page to be printed is obtained through a computer, the format of the first page is a first format, the first page comprises at least one section of page content, and the first page is any page in a printing task; determining a conversion algorithm corresponding to each section of page content in the first page; respectively carrying out format conversion on each section of page content in the first page according to a conversion algorithm corresponding to the page content to obtain a second page, wherein the format of the second page is a second format; the second page is sent to the printer to cause the printer to print the second page. In the process of the printing operation, the computer can directly convert the format of the page content to be printed without raster image processing, the process speed is higher, and the data volume of the second page obtained by conversion is smaller, so that the printing speed of the PostScript printer is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a data processing method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a method for data processing according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a data processing method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a process of determining a conversion algorithm corresponding to each segment of page content in a first page according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating another method for data processing according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of another data processing method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic hardware structure diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic application scenario diagram of a data processing method according to an embodiment of the present invention. Referring to fig. 1, including a computer 101 and a printer 102, the computer 101 may be connected to the printer 102 via a wired network or a wireless network. An application program corresponding to the printing machine may be installed in the computer 101, and the computer 101 may select a file to be printed through the application program, process the file to be printed, and send the processed file to the printing machine 102, so that the printing machine 102 completes a print job.
In the prior art, before sending data to a printer through the application program, a computer needs to perform raster image processing on each page of a file to be printed to generate dot matrix data, and then insert the dot matrix data into a PostScript page. In general, the processing speed of the raster image is slow, the amount of generated dot matrix data is also large, the printing speed of a printing machine is slow, and the processing process of the file to be printed is improved according to the embodiment of the invention.
The following describes the process of the embodiment of the present invention in detail by way of example with reference to fig. 2.
Fig. 2 is a schematic diagram of a data processing method according to an embodiment of the present invention. Referring to fig. 2, when a user needs to perform a print job, the computer 101 may obtain a file to be printed (generally, a PDF file), where the file to be printed may include a plurality of first pages, for example, the first page of the file to be printed may include a first page 1, a first page 2, and a first page 3, format-convert the page content according to a conversion algorithm corresponding to each segment of the page content of the first page in the file to be printed to obtain a second page, and send the second page after format conversion to the printer 102, for example, when the user starts to perform a print job, the computer 101 may obtain the file to be printed through an application program, first perform format conversion on the first page 1, specifically, perform format conversion on the page content according to a conversion algorithm corresponding to each segment of the page content of the first page 1, the second page 1 is obtained, the computer 101 sends the second page 1 to the printer 102, after the printer 102 receives the second page 1, the printing task of the printer 102 is started, the printing job for the second page 1 is completed, after the computer 101 performs format conversion on the first page 1, format conversion can be performed on the first page 2, so that the second page 2 is obtained, and the second page 2 is sent to the printer 102 for performing the printing job. The process of processing the subsequent first page is similar to the above-mentioned process, and is not described herein again. In the above process, the computer 101 directly performs format conversion on the page content of the first page to be printed through the application program to obtain the second page that can be printed by the printer 102, without performing raster image processing, the processing speed is fast, and the generated data amount of the second page is small, so that the speed of performing raster image processing is prevented from being slower than the printing speed of the printer 102, and thus the printer 102 is prevented from being in an idle state, and when data is received again, the printer 102 can be preheated again, which wastes a large amount of time, and the printing speed of the printer 102 is improved.
The technical means shown in the present application will be described in detail below with reference to specific examples. It should be noted that the following embodiments may be combined with each other, and the description of the same or similar contents in different embodiments is not repeated.
Fig. 3 is a flowchart illustrating a data processing method according to an embodiment of the present invention. Referring to fig. 3, the method may include:
s301, acquiring a first page to be printed.
The execution subject of the embodiment of the present invention may be a computer, or may be a data processing device provided in the computer. Optionally, an application program corresponding to the printing machine is installed in the computer, and the computer may obtain the file to be printed through the application program and send the file to the printing machine, so that the printing machine completes the printing job. Alternatively, the data processing apparatus may be implemented by software, or by a combination of software and hardware.
The first page may be any page in a print job, the print job may include a document to be printed, the document to be printed may include one or more pages, where any page may include one or more page contents, and the page contents may be text contents or image contents, where the text contents may include a plurality of text types, for example, the text contents may be chinese, english, japanese, etc., the text contents may also include a plurality of fonts, for example, the plurality of fonts may include fonts of song body, black body, microsoft mao black, new roman, etc., and the image contents may include various contents stored in a picture format, for example, the image contents may include a picture, a one-dimensional barcode, a two-dimensional barcode, a formula, a symbol, etc.
The format of the first page may be a first format, and the first format may be a PDF format or a format capable of being converted into a PDF file, for example, the first format may be a PDF format, a TIFF format, a JPEG format, an EPS format, a PRN format, a DOC format, an XLS format, or a WPS format, where the first format other than the PDF format may be converted into a PDF format, and a specific conversion manner may be implemented by the prior art, which is not limited in the present invention.
In an actual application process, when a user needs to perform a print job, the computer may obtain a first page to be printed through an application program, and optionally, may obtain the first page to be printed through the following feasible implementation manners:
the computer can download the file to be printed through the Internet, and acquire the first page to be printed from the file to be printed. Optionally, the computer may also select a file to be printed from the local storage files, and acquire the first page to be printed from the file to be printed.
S302, determining a conversion algorithm corresponding to each page content in the first page.
Optionally, the conversion algorithm corresponding to each segment of the page content in the first page may be determined through the following feasible implementation manners: determining the content type of each piece of page content; and determining a conversion algorithm corresponding to each section of page content in the first page according to the content type of each section of page content.
The content type may be a text type or an image type, and correspondingly, different conversion algorithms correspond to different content types, for example, a text type conversion algorithm corresponds to a text type page content, and an image type conversion algorithm corresponds to an image type page content. The computer may determine a conversion algorithm corresponding to each segment of the page content in the first page according to the content type of each segment of the page content.
Optionally, the content type of each piece of page content may be determined as follows: acquiring a content identifier corresponding to each section of page content; and determining the content type of each section of page content according to the content identification corresponding to each section of page content and the preset corresponding relation.
The content identifier may be used to indicate a content type of the page content, where the content identifiers of different content types are different, the correspondence relationship is a correspondence relationship between the content identifier and the content type, and there is a correspondence relationship between the content identifier and the content type, for example, the correspondence relationship may be a one-to-one correspondence relationship.
Next, with reference to fig. 4, a process of determining a conversion algorithm corresponding to each piece of page content in the first page according to the embodiment of the present invention is further described in detail by using a specific example.
Fig. 4 is a schematic diagram of a process of determining a conversion algorithm corresponding to each piece of page content in a first page according to an embodiment of the present invention. Referring to fig. 4, in an actual application process, when a print job is required, a computer may obtain, through an application program, a content identifier corresponding to each piece of page content of a first page to be printed, and determine a content type of each piece of page content according to the content identifier corresponding to each piece of page content and a preset corresponding relationship. As shown in fig. 4, the first page includes two segments of page contents, which are an image page content and a text page content, and for the first segment of image page content, the computer may obtain a content identifier corresponding to the image page content as an image identifier, may determine that the content type of the segment of page content is an image type, and further may determine that the conversion algorithm corresponding to the segment of image page content is an image type conversion algorithm; for the second text page content, the computer may obtain a content identifier corresponding to the text page content as a text identifier, may determine that the content type of the text page content is an image type, and may further determine that the conversion algorithm corresponding to the text page content is a text type conversion algorithm.
And S303, performing format conversion on each section of page content in the first page according to the conversion algorithm corresponding to the page content to obtain a second page.
The second page may be a page described in PostScript language that the PostScript printer can recognize, and the format of the second page is in a second format, e.g., the second format may include control instructions in PostScript language, and the suffix name of the second page may be denoted by.ps or.eps. The second page can be stored in a binary coding mode, and can also be represented and stored in an ASCII (American standard code for information interchange) coded text mode.
The format conversion can be performed on each page content in the first page through the following feasible implementation modes to obtain a second page: acquiring a first preset parameter required by a printing operation, and performing format conversion on each section of page content in a first page according to a conversion algorithm corresponding to each section of page content of a page to be printed to obtain a second page.
Wherein, the first preset parameter may include but is not limited to: color mode, number of prints, number of planes, scaling, rotation, etc. required for a print job. For example, in one print job, a first preset parameter may be set, specifically, the job may set the color mode to be black and white, the number of print copies is 1, the number of sides is a single-sided single page, the scaling ratio is 100%, the rotation is clockwise 90 °, the first page to be printed includes two page contents, and the content types of the two page contents are respectively a text type and an image type. And for the page content of the image type, the computer selects the conversion algorithm corresponding to the image type, and performs format conversion on the page content to obtain a second page which can be identified by the PostScript printer.
S304, sending the second page to the printer so that the printer prints the second page.
The printer may comprise a PostScript printer. The process of sending the second page to the printer may refer to the prior art, and the embodiment of the present invention is not described herein again.
According to the data processing method provided by the embodiment of the invention, when a printing job is required, a first page to be printed is obtained through a computer, the format of the first page is a first format, the first page comprises at least one section of page content, and the first page is any page in a printing task; determining a conversion algorithm corresponding to each section of page content in the first page; respectively carrying out format conversion on each section of page content in the first page according to a conversion algorithm corresponding to the page content to obtain a second page, wherein the format of the second page is a second format; the second page is sent to the printer to cause the printer to print the second page. In the process of the printing operation, the computer can directly convert the format of the page content to be printed without raster image processing, the process speed is higher, and the data volume of the second page obtained by conversion is smaller, so that the printing speed of the PostScript printer is improved.
Fig. 5 is a flowchart illustrating another data processing method according to an embodiment of the present invention. Referring to fig. 5, fig. 5 is a block diagram illustrating a method for processing data according to the embodiment shown in fig. 2, further comprising:
s501, acquiring a first page to be printed.
It should be noted that the execution process of S501 may refer to the execution process of S301, and is not described herein again.
S502, determining a conversion algorithm corresponding to each page content in the first page.
It should be noted that the execution process of S502 may refer to the execution process of S302, and is not described herein again.
S503, performing format conversion on each section of page content in the first page according to the conversion algorithm corresponding to the page content respectively to obtain a second page.
It should be noted that the execution process of S503 may refer to the execution process of S303, and is not described herein again.
S504, determining page attribute information of the second page.
The page attribute information of the second page may be set for the page of the second page in the print job, for example, the page attribute information of the second page may include parameters of format, insert, number, and the like of the second page required by the print job. Specifically, the breadth of the second page refers to a drawing composed of the width and the length of the drawing, for example, the breadth of the second page may be a4 breadth, A3 breadth, B5 breadth, and the like. The insert page can be one or more pages using different printing papers in the same printing job, or can be one or more blank pages before or after the second page in the printing job, and in the practical application process, the parameters of the insert page can be set by selecting different paper feeding boxes. The marking refers to numbering the second page to be printed.
The page attribute information of the second page may be determined by the following feasible implementation: an application program corresponding to the printer is installed in the computer, and the computer can determine the page attribute information of the second page through an option in a "setting" tag of the application program. The "setting" tab may include a plurality of options, for example, the "setting" tab may include a format, an insert paper feeding box selection, a number setting, and the like, where a setting manner of each option may be a setting manner of a pull-down menu, or a setting manner of a manual input, and a specific setting manner is different according to a manufacturer and a model of the PostScript printer, and the present invention is not limited specifically.
And S505, inserting page attribute information into the second page.
After determining the page attribute information of the second page, the page attribute information may be inserted in the second page. Specifically, the page attribute information may be inserted into the second page through the following feasible implementation manners: determining a first preset position in a second page; and inserting page attribute information at the first preset position, wherein the format of the page attribute information is different from the format of the page content in the second page.
The first preset position may include the beginning and the end of the second page, or the beginning and the end of each piece of page content of the second page, which is not limited in this invention. The format of the page attribute information may be annotation information in the second page, and the page attribute information of the second page is inserted in an annotation manner at the first preset position.
S506, sending the second page to the printer so that the printer can print the second page.
It should be noted that the execution process of S506 may refer to the execution process of S304, and is not described herein again.
According to the data processing method provided by the embodiment of the invention, when a printing job is required, a first page to be printed is obtained through a computer, the format of the first page is a first format, the first page comprises at least one section of page content, and the first page is any page in a printing task; determining a conversion algorithm corresponding to each section of page content in the first page; respectively carrying out format conversion on each section of page content in the first page according to a conversion algorithm corresponding to the page content to obtain a second page, wherein the format of the second page is a second format; the second page is sent to the printer to cause the printer to print the second page. In the printing operation process, the computer can directly convert the format of the page content to be printed without raster image processing, the process speed is higher, the data volume of the second page obtained by conversion is smaller, in addition, page attribute information such as the breadth, the insert page, the number printing and the like of the second page can be set, the printing individuation is realized, and the printing speed of the PostScript printer is improved.
On the basis of any of the above embodiments, the following describes in further detail the data processing method according to the embodiment of the present invention by using a specific example with reference to fig. 4.
Fig. 6 is a flowchart illustrating another data processing method according to an embodiment of the present invention. Referring to fig. 6, fig. 6 is a flowchart illustrating, when the first page is the first page, the method further includes:
s601, acquiring a first page to be printed.
It should be noted that the execution process of S601 may refer to the execution process of S301, and is not described herein again.
S602, determining a conversion algorithm corresponding to each page content in the first page.
It should be noted that the execution process of S602 may refer to the execution process of S302, and is not described herein again.
And S603, performing format conversion on each section of page content in the first page according to the conversion algorithm corresponding to the page content to obtain a second page.
It should be noted that the execution process of S603 may refer to the execution process of S303, and details are not described here.
S604, determining the task attribute information of the print task.
The job attribute information is used to indicate printer settings of the printer for the print job, and for example, the job attribute information may include parameters of a paper feed cassette, a paper discharge cassette, folding, stapling, and the like, which are required in the print job. Specifically, the paper feeding box parameters required by the print job may include a serial number parameter of the paper feeding box and a paper feeding box sequence parameter, the specification of the paper feeding box may include multiple specifications, for example, the specification of the paper feeding box may include an a4 paper box, a B5 paper box, A3 paper box, etc., the specification of the paper discharging box may include a serial number parameter of the paper discharging box and a paper discharging box sequence parameter, the specification of the paper discharging box may include multiple specifications, for example, the specification of the paper discharging box may include an a4 paper box, a B5 paper box, A3 paper box, etc., the folding parameters may include a double-fold, a triple-fold, a double-fold (also called a quadruple-fold), an organ-fold, a closed-fold, a scroll-fold, a cross-fold, etc., and in the process of practical application, the folding. The binding parameters may include: binding with glue heads, binding with flat nails, ordinary glue binding, hardcover, binding with loose-leaf binders and the like. Generally, for each printing task, the task attribute information has default parameter settings, and a user can set the task attribute information according to actual needs.
The job attribute information for a print job may be determined by the following possible implementations: the job attribute information of the printing job can have default parameter setting, and when the job attribute information needs to be modified or set in a personalized mode, the computer can set the job attribute information parameters needing to be modified through an application program corresponding to the printing machine. The setting mode of each task attribute information parameter may be various, for example, the setting mode of each task attribute information parameter may be a setting mode of a pull-down menu, or a setting mode of manual input, and a specific setting mode is different according to a manufacturer and a model of a PostScript printer, and the present invention is not particularly limited.
And S605, inserting task attribute information into the second page.
The task attribute information may be inserted in the second page by a possible implementation as follows: determining a second preset position in a second page; and inserting task attribute information at a second preset position, wherein the format of the task attribute information is different from the format of the page content in the second page.
The second preset position may include the beginning and the end of the second page, or the beginning and the end of each page content of the second page, which is not limited in the present invention. The task attribute information may be in the form of comment information in the second page, and the page attribute information of the second page may be inserted in a comment manner at a second preset position.
S606, determining page attribute information of the second page.
It should be noted that the execution process of S606 may refer to the execution process of S504, and details are not described here.
And S607, inserting the page attribute information into the second page.
It should be noted that the execution process of S607 may refer to the execution process of S505, and is not described herein again.
And S608, sending the second page to the printer so that the printer prints the second page.
It should be noted that the execution process of S608 may refer to the execution process of S304, and is not described herein again.
According to the data processing method provided by the embodiment of the invention, when a printing job is required, a first page to be printed is obtained through a computer, the format of the first page is a first format, the first page comprises at least one section of page content, and the first page is any page in a printing task; determining a conversion algorithm corresponding to each section of page content in the first page; respectively carrying out format conversion on each section of page content in the first page according to a conversion algorithm corresponding to the page content to obtain a second page, wherein the format of the second page is a second format; the second page is sent to the printer to cause the printer to print the second page. In the process of the printing operation, the computer can directly convert the format of the page content to be printed without raster image processing, the process speed is higher, the data volume of the second page obtained by conversion is smaller, in addition, page attribute information such as the breadth, the insert page, the number printing and the like of the second page and task attribute information can be set, the printing personalization is realized, and the printing speed of the PostScript printing machine is improved.
Fig. 7 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention. Referring to fig. 7, the apparatus 10 includes:
the system comprises an acquisition module 11, a processing module and a display module, wherein the acquisition module is used for acquiring a first page to be printed, the format of the first page is a first format, the first page comprises at least one section of page content, and the first page is any page in a printing task;
a determining module 12, configured to determine a conversion algorithm corresponding to each segment of page content in the first page;
a conversion module 13, configured to perform format conversion on each segment of page content in the first page according to a conversion algorithm corresponding to the page content, respectively, to obtain a second page, where the format of the second page is a second format;
a sending module 14, configured to send the second page to a printer, so that the printer prints the second page.
The data processing apparatus provided in the embodiment of the present invention may execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar and will not be described herein again.
In a possible implementation, the determining module 12 is specifically configured to:
determining the content type of each page content, wherein the content type is a text type or an image type;
and determining a conversion algorithm corresponding to each section of page content in the first page according to the content type of each section of page content.
In a possible implementation, the determining module 12 is specifically configured to:
acquiring a content identifier corresponding to each section of page content, wherein the content identifier is used for indicating the content type of the page content;
and determining the content type of each section of page content according to the content identifier corresponding to each section of page content and a preset corresponding relationship, wherein the corresponding relationship is the corresponding relationship between the content identifier and the content type.
Fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention. Referring to fig. 8, the apparatus 10 further includes an insertion module 15, wherein,
the determining module 12 is further configured to determine page attribute information of the second page before sending the second page to the printer;
the inserting module 15 is configured to insert the page attribute information in the second page.
In a possible embodiment, the insertion module 15 is specifically configured to:
determining a first preset position in the second page;
and inserting the page attribute information at the first preset position, wherein the format of the page attribute information is different from the format of the page content in the second page.
In one possible embodiment, the first page is a first page in the print job; the device further comprises an inserting module 15, wherein the determining module 12 is further configured to determine task attribute information of the print task before sending the second page to a printer, the task attribute information being used for indicating printer settings of the printer for the print task;
the inserting module 15 is configured to insert the task attribute information in the second page.
In a possible embodiment, the insertion module 15 is specifically configured to:
determining a second preset position in the second page;
and inserting the task attribute information at the second preset position, wherein the format of the task attribute information is different from the format of the page content in the second page.
The data processing apparatus provided in the embodiment of the present invention may execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar and will not be described herein again.
Fig. 9 is a schematic diagram of a hardware structure of a data processing apparatus according to an embodiment of the present invention, and as shown in fig. 9, the data processing apparatus 20 includes: at least one processor 21 and a memory 22. The processor 21 and the memory 22 are connected by a bus 23.
In particular implementations, the at least one processor 21 executes computer-executable instructions stored by the memory 22 to cause the at least one processor 21 to perform the method of data processing as described above.
For a specific implementation process of the processor 21, reference may be made to the above method embodiments, which implement similar principles and technical effects, and this embodiment is not described herein again.
In the embodiment shown in fig. 9, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the method for processing data as described above is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the units is only a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (14)

1. A method of data processing, comprising:
acquiring a first page to be printed, wherein the format of the first page is a first format, the first page comprises at least one section of page content, and the first page is any page in a printing task;
determining a conversion algorithm corresponding to each section of page content in the first page;
performing format conversion on each section of page content in the first page according to a conversion algorithm corresponding to the page content respectively to obtain a second page, wherein the format of the second page is a second format;
and sending the second page to a printer to enable the printer to print the second page.
2. The method of claim 1, wherein determining the conversion algorithm corresponding to each piece of page content in the first page comprises:
determining the content type of each page content, wherein the content type is a text type or an image type;
and determining a conversion algorithm corresponding to each section of page content in the first page according to the content type of each section of page content.
3. The method of claim 2, wherein determining the content type of each piece of page content comprises:
acquiring a content identifier corresponding to each section of page content, wherein the content identifier is used for indicating the content type of the page content;
and determining the content type of each section of page content according to the content identifier corresponding to each section of page content and a preset corresponding relationship, wherein the corresponding relationship is the corresponding relationship between the content identifier and the content type.
4. The method of any of claims 1-3, wherein prior to sending the second page to the printer, further comprising:
determining page attribute information of the second page;
and inserting the page attribute information into the second page.
5. The method of claim 4, wherein inserting the page attribute information in the second page comprises:
determining a first preset position in the second page;
and inserting the page attribute information at the first preset position, wherein the format of the page attribute information is different from the format of the page content in the second page.
6. A method according to any of claims 1-3, wherein the first page is a first page in the print job; before sending the second page to the printer, the method further comprises:
determining task attribute information of the print task, wherein the task attribute information is used for indicating printer setting of the printer aiming at the print task;
and inserting the task attribute information into the second page.
7. The method of claim 6, wherein inserting the task attribute information in the second page comprises:
determining a second preset position in the second page;
and inserting the task attribute information at the second preset position, wherein the format of the task attribute information is different from the format of the page content in the second page.
8. An apparatus for data processing, comprising:
the system comprises an acquisition module, a printing module and a printing module, wherein the acquisition module is used for acquiring a first page to be printed, the format of the first page is a first format, the first page comprises at least one section of page content, and the first page is any page in a printing task;
the determining module is used for determining a conversion algorithm corresponding to each section of page content in the first page;
the conversion module is used for performing format conversion on each section of page content in the first page according to a conversion algorithm corresponding to the page content respectively to obtain a second page, and the format of the second page is a second format;
and the sending module is used for sending the second page to a printer so as to enable the printer to print the second page.
9. The apparatus of claim 8, wherein the determining module is specifically configured to:
determining the content type of each page content, wherein the content type is a text type or an image type;
and determining a conversion algorithm corresponding to each section of page content in the first page according to the content type of each section of page content.
10. The apparatus of claim 9, wherein the determining module is specifically configured to:
acquiring a content identifier corresponding to each section of page content, wherein the content identifier is used for indicating the content type of the page content;
and determining the content type of each section of page content according to the content identifier corresponding to each section of page content and a preset corresponding relationship, wherein the corresponding relationship is the corresponding relationship between the content identifier and the content type.
11. The apparatus of any one of claims 8-10, further comprising an insertion module, wherein,
the determining module is further used for determining page attribute information of the second page before the second page is sent to a printer;
the inserting module is used for inserting the page attribute information into the second page.
12. The apparatus of claim 11, wherein the insertion module is specifically configured to:
determining a first preset position in the second page;
and inserting the page attribute information at the first preset position, wherein the format of the page attribute information is different from the format of the page content in the second page.
13. The apparatus of any of claims 8-10, wherein the first page is a first page in the print job; the device further comprises an insertion module, wherein the determination module is further configured to determine task attribute information of the print task before sending the second page to a printer, and the task attribute information is used for indicating printer settings of the printer for the print task;
the inserting module is used for inserting the task attribute information into the second page.
14. The apparatus of claim 13, wherein the insertion module is specifically configured to:
determining a second preset position in the second page;
and inserting the task attribute information at the second preset position, wherein the format of the task attribute information is different from the format of the page content in the second page.
CN202010066504.9A 2020-01-20 2020-01-20 Data processing method, device and equipment Active CN111258515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010066504.9A CN111258515B (en) 2020-01-20 2020-01-20 Data processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010066504.9A CN111258515B (en) 2020-01-20 2020-01-20 Data processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN111258515A true CN111258515A (en) 2020-06-09
CN111258515B CN111258515B (en) 2021-10-26

Family

ID=70950964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010066504.9A Active CN111258515B (en) 2020-01-20 2020-01-20 Data processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN111258515B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022148150A1 (en) * 2021-01-07 2022-07-14 珠海奔图电子有限公司 Print control method, print driving apparatus, and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790254A (en) * 2004-12-15 2006-06-21 三星电子株式会社 Image forming method and apparatus for printing image data received from external storage device
CN1904819A (en) * 2005-07-27 2007-01-31 三星电子株式会社 Apparatus and method for printing plurality of pages on one page in pdf direct printing
CN101117059A (en) * 2007-09-24 2008-02-06 北大方正集团有限公司 Multicolor printing method and system thereof
CN101794201A (en) * 2009-01-30 2010-08-04 富士施乐株式会社 Print information conversion apparatus and method, print apparatus and print system
CN104571969A (en) * 2013-10-23 2015-04-29 北大方正集团有限公司 Printing processing method, device and system
CN107678705A (en) * 2017-11-07 2018-02-09 北京书生电子技术有限公司 The method and apparatus for acting on behalf of printing
CN107766011A (en) * 2017-09-22 2018-03-06 北京北信源软件股份有限公司 Print control program, apparatus and system
CN110221792A (en) * 2019-06-14 2019-09-10 宜春宜联科技有限公司 File to be printed format conversion method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790254A (en) * 2004-12-15 2006-06-21 三星电子株式会社 Image forming method and apparatus for printing image data received from external storage device
CN1904819A (en) * 2005-07-27 2007-01-31 三星电子株式会社 Apparatus and method for printing plurality of pages on one page in pdf direct printing
CN101117059A (en) * 2007-09-24 2008-02-06 北大方正集团有限公司 Multicolor printing method and system thereof
CN101794201A (en) * 2009-01-30 2010-08-04 富士施乐株式会社 Print information conversion apparatus and method, print apparatus and print system
CN104571969A (en) * 2013-10-23 2015-04-29 北大方正集团有限公司 Printing processing method, device and system
CN107766011A (en) * 2017-09-22 2018-03-06 北京北信源软件股份有限公司 Print control program, apparatus and system
CN107678705A (en) * 2017-11-07 2018-02-09 北京书生电子技术有限公司 The method and apparatus for acting on behalf of printing
CN110221792A (en) * 2019-06-14 2019-09-10 宜春宜联科技有限公司 File to be printed format conversion method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022148150A1 (en) * 2021-01-07 2022-07-14 珠海奔图电子有限公司 Print control method, print driving apparatus, and computer readable storage medium

Also Published As

Publication number Publication date
CN111258515B (en) 2021-10-26

Similar Documents

Publication Publication Date Title
US6480866B2 (en) Method and apparatus to facilitate creation of documents from individual pages
US6182096B1 (en) Method and apparatus of creating highly portable output files by combining pages from multiple input files
US6522421B2 (en) Method and apparatus for automatically communicating returning status and information from a printer using electronic mail (email).
US7999955B2 (en) Printing system, print server and computer program that differentiate between on-line and off-line finishing devices in said printing system
US8045198B2 (en) System and method for processing a change history of a PDF file
US20090040561A1 (en) Image-processing apparatus, image-processing method, and computer program
CN105765519B (en) Information processing unit, information processing method and non-transient computer readable recording medium
US8964241B2 (en) Print control device and non-transitory computer readable medium for storing mark information in accordance with a type of printer
CN102541827B (en) Method and system for describing extensible marking language of document
CN101901121A (en) The control method of signal conditioning package and this signal conditioning package
US7929158B2 (en) Image forming apparatus
CN111258515B (en) Data processing method, device and equipment
CN110764717A (en) Print management apparatus, print system, and computer-readable medium
US20070226748A1 (en) Information processing device
US20070257922A1 (en) Removable media device and image displaying system
US11928373B2 (en) Information processing apparatus and non-transitory computer readable medium
US9578203B2 (en) Document production system having automatic adjustment of content to fit the page margin of a pre-printed media
US8885191B2 (en) Print control apparatus performing a finishing process after printing, print control method thereof, and computer-readable medium
EP1835713A1 (en) Image forming system, image forming apparatus, and image forming method
KR20040024439A (en) Image formation method and apparatus
US6943914B1 (en) Computer, printer and software for changing control of printer marking device while printing on a single page
JP4505106B2 (en) Accumulation printing method and image forming apparatus
WO2009085503A2 (en) Preparing an electronic document of continuous information for document exchange that supports continuous and page-by-page printing
US9444968B2 (en) Image forming apparatus that continues without halt to perform print job including sign where glyph is invalid data, and recording medium
JP2005275545A (en) Document print controller, document print control method and document print control program

Legal Events

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

Effective date of registration: 20230719

Address after: 3007, Hengqin International Financial Center Building, No. 58 Huajin Street, Hengqin New District, Zhuhai City, Guangdong Province, 519030

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Patentee after: BEIJING FOUNDER EASIPRINT CO.,LTD.

Address before: 100871, Beijing, Haidian District, Cheng Fu Road, No. 298, Zhongguancun Fangzheng building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Patentee before: BEIJING FOUNDER EASIPRINT CO.,LTD.

TR01 Transfer of patent right