[go: up one dir, main page]

CN113448522B - Variable data printing output method and device, terminal equipment and readable storage medium - Google Patents

Variable data printing output method and device, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN113448522B
CN113448522B CN202110699063.0A CN202110699063A CN113448522B CN 113448522 B CN113448522 B CN 113448522B CN 202110699063 A CN202110699063 A CN 202110699063A CN 113448522 B CN113448522 B CN 113448522B
Authority
CN
China
Prior art keywords
file
variable data
terminal device
speed
pdf
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.)
Active
Application number
CN202110699063.0A
Other languages
Chinese (zh)
Other versions
CN113448522A (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.)
Shenzhen Runtianzhi Digital Equipment Co Ltd
Original Assignee
Shenzhen Runtianzhi Digital Equipment 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 Shenzhen Runtianzhi Digital Equipment Co Ltd filed Critical Shenzhen Runtianzhi Digital Equipment Co Ltd
Priority to CN202110699063.0A priority Critical patent/CN113448522B/en
Publication of CN113448522A publication Critical patent/CN113448522A/en
Application granted granted Critical
Publication of CN113448522B publication Critical patent/CN113448522B/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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Record Information Processing For Printing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The application is applicable to the field of variable data printing, and particularly relates to a variable data printing output method, a variable data printing output device, a terminal device and a readable storage medium. The method is applied to the first terminal equipment, and comprises the following steps: acquiring variable data, and performing rasterization processing on the variable data to obtain a rasterization file and a description file of the variable data; and sending the rasterization file and the description file of the variable data to the second terminal device, so that the second terminal device prints and outputs the variable data according to the rasterization file and the description file of the variable data. The method can synchronously execute the rasterization processing and the printout of the variable data through two different terminal devices, and can improve the printout speed of the variable data, thereby reducing the waiting time and improving the user experience.

Description

Variable data printing output method and device, terminal equipment and readable storage medium
Technical Field
The present application relates to the field of variable data printing, and in particular, to a variable data printing output method, apparatus, terminal device, and readable storage medium.
Background
Currently, digital printing can print variable data, including bar codes, two-dimensional codes, numbers, text, and pictures. The existing label digital printing mode mainly comprises the steps of rasterizing all variable documents and then printing and outputting the rasterized variable documents. The digital printing method obviously has the problems of low printing speed and long waiting time.
Disclosure of Invention
The embodiment of the application provides a variable data printout method, a variable data printout device, a terminal device and a readable storage medium, which can improve the printout speed of variable data, thereby reducing waiting time and improving user experience.
In a first aspect, an embodiment of the present application provides a variable data printout method, which is applied to a first terminal device, and includes:
acquiring variable data, and performing rasterization processing on the variable data to obtain a rasterization file and a description file of the variable data;
and sending the rasterization file and the description file of the variable data to a second terminal device, so that the second terminal device prints and outputs the variable data according to the rasterization file and the description file of the variable data.
In a possible implementation manner of the first aspect, the rasterizing the variable data to obtain a rasterization file and a description file of the variable data includes:
carrying out format conversion on the variable data to obtain a plurality of portable document format PDF files of the variable data;
and respectively carrying out rasterization processing on the PDF files to obtain rasterized files and description files of the PDF files, wherein each rasterized file of the PDF file comprises a plurality of parts, and each description file of the PDF file comprises one part.
Exemplarily, the rasterizing each PDF file respectively includes:
acquiring raster parameters, wherein the raster parameters comprise an international color consortium ICC curve, the resolution of a rasterized file and the gray value of the rasterized file;
and respectively carrying out rasterization processing on each PDF file based on the raster parameters.
In another possible implementation manner of the first aspect, the size of each PDF file in each PDF file is 600 to 1500 millimeters.
Wherein, the rasterization processing is respectively performed on each PDF file to obtain the rasterized file and the description file of each PDF file, and the rasterization processing includes:
and respectively carrying out rasterization processing on each PDF file at a first speed to obtain a rasterized file and a description file of each PDF file.
The sending the rasterization file and the description file of the variable data to the second terminal device so that the second terminal device prints and outputs the variable data according to the rasterization file and the description file of the variable data includes:
sending the rasterization file and the description file of the variable data to the second terminal device at a second speed so that the second terminal device prints and outputs the variable data according to the rasterization file and the description file of the variable data, wherein the speed of printing and outputting the variable data by the second terminal device is a third speed;
wherein the first speed and the second speed are both greater than the third speed.
In a second aspect, an embodiment of the present application provides a variable data printout apparatus, which is applied to a first terminal device, and includes:
the acquisition module is used for acquiring variable data and rasterizing the variable data to obtain a rasterization file and a description file of the variable data;
and the sending module is used for sending the rasterization file and the description file of the variable data to a second terminal device so that the second terminal device can print and output the variable data according to the rasterization file and the description file of the variable data.
In a possible implementation manner of the second aspect, the obtaining module includes:
the format conversion unit is used for carrying out format conversion on the variable data to obtain a plurality of portable document format PDF files of the variable data;
and the rasterization unit is used for rasterizing the PDF files to obtain rasterized files and description files of the PDF files, wherein each rasterized file of the PDF file comprises a plurality of copies, and each description file of the PDF file comprises one copy.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the variable data printout method according to the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the variable data printout method according to the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: the method comprises the steps that variable data are obtained through a first terminal device, and rasterization processing is carried out on the variable data to obtain a rasterization file and a description file of the variable data; and sending the rasterization file and the description file of the variable data to the second terminal device, so that the second terminal device prints and outputs the variable data according to the rasterization file and the description file of the variable data. The method and the device for processing the variable data can respectively execute the rasterization processing and the printout of the variable data through two different terminal devices, and can improve the printout speed of the variable data, so that the waiting time is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a variable data printout method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram of a variable data printout method provided by an embodiment of the present application;
FIG. 3a is a schematic flow chart diagram of a rasterized file and description file that results in variable data as provided by an embodiment of the present application;
FIG. 3b is a diagram of an example of a rasterized file that is a PDF file according to an embodiment of the present application;
FIG. 4 is a schematic flow diagram of a first terminal device automatically sending rasterized and description files of variable data to a second terminal device;
FIG. 5 is a schematic structural diagram of a variable data printout apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Reference throughout this specification to "an embodiment of the present application" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in other embodiments," "an embodiment of the present application," "other embodiments of the present application," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
At present, there are two ways to print variable data by digital printing, one is to rasterize all variable data documents in advance, and then submit all rasterized variable data documents to the label digital printing software, and the label digital printing software prints all variable data documents; the other is to directly submit the variable data to be rasterized to digital printing software, and the digital printing software prints all the variable data documents.
The first mode has the defects of long waiting time, and the situation that the printing speed is low due to too frequent file submission can occur for small files; the second method needs raster graphic processing software and digital printing software to establish a data channel for data exchange, and has the defects that the digital printing software company and the raster image processing software company need deep cooperation, the rasterization software and the digital printing software are in a tight coupling relationship, the rasterization software needs to be connected with the digital printing software, and the data channel is maintained, so that the development period is long, different raster image processing software cannot be commonly used (the raster graphic processing software needs to be developed again after being changed), and the use habit of a client is not facilitated.
In order to solve the above defect, an embodiment of the present application provides a variable data printout method, where two different terminal devices respectively execute rasterization processing and printout of variable data, and when rasterization processing is performed on variable data, the variable data is converted into multiple PDF documents, and each PDF document is respectively rasterized, and it is not necessary to wait for all PDF documents to be rasterized, and only one PDF document needs to complete rasterization processing, so that printout can be performed, and the printout speed of the variable data can be increased, thereby reducing waiting time and improving user experience.
And when the method respectively executes the rasterization processing and the printing output of the variable data through two different terminal devices, the rasterization file of the variable data is output in a specific organization form, so that the coupling relation between rasterization software and digital printing software is weakened, the defects that the rasterization software cannot be commonly used and needs to be redeveloped when a set of raster graphics processing software is changed are overcome, and the method caters to the operation habits of customers.
In order to explain the technical means of the present application, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a schematic view illustrating an application scenario of a variable data print output method according to an embodiment of the present application. In fig. 1, the application scenario includes a first terminal device 100, a second terminal device 110, and a printer 120. The first terminal device 100 and the second terminal device 110 perform data interaction through the lan, and the second terminal device 110 and the printer 120 perform data interaction through the lan.
The first terminal device 100 and the second terminal device 110 include, but are not limited to, a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the specific type of the terminal device is not limited in this embodiment.
The first terminal device 100 acquires the variable data, and performs rasterization processing on the variable data to obtain a rasterization file and a description file of the variable data; the rasterized file and description file of the variable data are sent to the second terminal device 110.
The second terminal device 110 prints out the variable data according to the rasterized file and the description file of the variable data.
The printer 120 is used for printing the output data of the second terminal device on the relevant medium, the printer 120 includes, but is not limited to, a laser printer, an inkjet printer, an impact printer, and the like, and the specific type of the printer is not limited in this embodiment of the application.
Referring to fig. 2, fig. 2 is a schematic flowchart of a variable data printout method according to an embodiment of the present application, and an execution subject of the method in fig. 2 may be the first terminal device 100 in fig. 1. As shown in fig. 2, the method includes: s201 to S203.
S201, variable data are obtained, and rasterization processing is carried out on the variable data to obtain a rasterization file and a description file of the variable data.
Specifically, the variable data refers to data that changes regularly, and the variable data is widely used in daily life, such as bar codes of commodities, employee certificates of companies, social medical insurance cards, and the like. The embodiments of the present application do not limit the specific types of variable data.
In some embodiments, the variable data may be obtained by manual editing, or by automatic import from a database, an excel table, a text file, or the like, and the embodiment of the present application does not limit the manner of obtaining the variable data.
Referring to fig. 3a, fig. 3a is a schematic flowchart of obtaining a rasterized file and a description file of variable data according to an embodiment of the present application, and a main body of the method in fig. 3a may be the first terminal device 100 in fig. 1. As shown in fig. 3a, the rasterizing process is performed on the variable data to obtain a rasterization file and a description file of the variable data, and the rasterizing file and the description file include: s301 to S303.
S301, creating a template document and binding variable data.
Specifically, in some embodiments, a template document is created by using typesetting software, and the created template document is typeset, the typesetted template document should include a variable data layout, the size of the template document is set, and variable data is bound in the variable data layout, which does not limit the manner of creating the template document in the embodiments of the present application.
And S302, carrying out format conversion on the variable data to obtain a plurality of portable document format PDF files of the variable data.
Specifically, in some embodiments, the template Document created in S302 is subjected to Format conversion to obtain a plurality of Portable Document Format (PDF) files, where the PDF files are file formats supported by almost all digital process software at present, and therefore can be independent of a specific software environment.
When typesetting software in the prior art outputs variable data content as a PDF file, for example, when outputting content of 100 ten thousand barcodes (each barcode has a length of 20 mm) as 1 PDF file, because the prior art sets the length of a PDF file of each page in each PDF file to be smaller, usually 20 to 30 mm, in the embodiment of the present application, 20 mm is used as an example, 100 ten thousand barcodes need to be output as 100 ten thousand PDF files, each page of PDF file can be rasterized into 1 rasterized file, 100 ten thousand rasterized files are generated after rasterization, frequent submission of 100 ten thousand rasterized files may cause a rapid decrease in transmission speed (the file is too small, IO resources are frequently accessed), and printing and outputting may be performed after all rasterization of 100 ten thousand rasterized files in the prior art is completed, thereby causing a rapid decrease in printing speed.
In the embodiment of the present application, the length of each page of PDF file in each PDF file is set to be between 600 and 1500 millimeters, preferably 1000 millimeters, when the content of 100 ten thousand barcodes (the length of each barcode is 20 millimeters) is output as 1 PDF file, 1000/20=50 barcodes per page of PDF file can be typeset, then 100 ten thousand barcodes can be output as 100 ten thousand/50 =2 ten thousand pages of PDF file, 2 ten thousand rasterized files are generated after rasterization, when the content of 100 ten thousand barcodes (the length of each barcode is 20 millimeters) is output as multiple PDF files, for example, 10 copies, 10 ten thousand barcodes per page of PDF file can be typeset, 1000/20=50 barcodes per page of PDF file in each copy can be typeset, 10 ten thousand barcodes can be output as 10 ten thousand/50 =2 pages of PDF file, 2 thousand rasterized files are generated after rasterization,
according to the method and the device, variable data can be converted into a plurality of PDF files, the number of pages of each PDF file is reduced, so that the number of parts of the rasterized file is reduced, the whole rasterized PDF file is not needed to be printed, and the printing speed is further increased.
And S303, performing rasterization processing on each PDF file to obtain a rasterized file and a description file of each PDF file.
Specifically, the rasterization processing can automatically convert elements such as characters, graphics, images and the like in the PDF file into digital dot matrix information.
In some embodiments, the rasterization process includes: and acquiring raster parameters, wherein the raster parameters comprise an international color consortium ICC curve, the resolution of the rasterized file and the gray value of the rasterized file.
And respectively carrying out rasterization processing on each PDF file based on the raster parameters to obtain a rasterized file and a description file of each PDF file. The rasterized file of each PDF file comprises a plurality of parts, and the description file of each PDF file comprises one part.
Specifically, the colors of each PDF file are calibrated by using the acquired ICC curve, the resolution of each PDF file is adjusted according to the acquired rasterized file resolution, the bit depth of each PDF file is adjusted according to the acquired rasterized file gray value, each calibrated and adjusted PDF file is converted into a dot matrix image document required by a printer, the dot matrix image document is converted into a drive data file required by the printer, and the rasterized file and the description file of each PDF file can be obtained.
In some embodiments, a PDF file comprises n-page PDF files, and the rasterized file of a PDF file is organized in the manner: the file folder with the same name as the PDF file comprises n parts of rasterization file folders and 1 part of xml description files, wherein the n parts of rasterization file folders are named as PDF file folder names + "_ page numbers", each part of rasterization file folder comprises a rasterization color separation file, and each color separation file is named as the name of each part of rasterization file folder + "_ color numbers". For example, referring to fig. 3b, fig. 3b is an exemplary diagram of a rasterized file of a PDF file according to an embodiment of the present application, and in fig. 3b, the PDF file is named as Job, and n rasterized folders are named as Job _1, job _2 \8230; \8230andjob _ n. The color separation files for Job _2 are named Job _2_0, job _2_1 _8230, 8230, job _2_n.
In the prior art, when variable data is rasterized, rasterization software and digital printing software are in a close-coupled relationship, data exchange needs to be performed by establishing a data channel between the rasterization software and the digital printing software, and a professional technician needs to design a special Application Programming Interface (API) Interface to define a data structure of the data exchange. When the variable data is subjected to rasterization processing, the rasterization processing and the printing output of the variable data are respectively executed through two different terminal devices, and meanwhile, the rasterization file of the variable data is output in the organization form of fig. 3b, a special API (application program interface) interface and a data structure for defining data exchange are not required to be designed, and the tight coupling relationship between rasterization software and digital printing software is weakened, so that the defects that the rasterization image processing software cannot be used universally and a set of raster graphic processing software needs to be redeveloped can be overcome, and the operation habit of a client is met.
The xml description file describes the characteristics of different variable data, such as the name, position, size, etc. of the variable data converted into the PDF file. The description information of different variable data is different.
In some embodiments, the description information of the variable data includes: the type, width, height, rotation, transparency, repetition, color, font name, font size, font content, paragraph, horizontal coordinate, and vertical coordinate of the variable data, and the organization content of the PDF document and the image attributes of the rasterized document, including resolution, bit depth, printing color pattern color channel, picture size, etc. This information is the most basic description of variable data. For different variable data types, specific information needs to be added, for example, if the variable data is a variable picture, a directory for storing the picture needs to be listed; if the variable data is a bar code, the type of the bar code, the information character of the bar code, etc. need to be given.
S202, sending the rasterization file and the description file of the variable data to the second terminal device, so that the second terminal device prints and outputs the variable data according to the rasterization file and the description file of the variable data.
Specifically, in some embodiments, the first terminal device performs rasterization processing on each PDF file at a first speed to obtain a rasterized file and a description file of each PDF file, and sends the rasterized file and the description file of the variable data to the second terminal device at a second speed, so that the second terminal device prints and outputs the variable data according to the rasterized file and the description file of the variable data, and the speed of printing and outputting the variable data by the second terminal device is a third speed. Wherein the first speed and the second speed are both greater than the third speed.
It should be noted that after finishing the rasterization of a PDF file, the first terminal device may send a rasterized file and a description file of variable data to the second terminal device.
In the prior art, all processes of rasterization processing and printout are executed on a terminal device for printing variable data, and in the method, all PDF files need to be rasterized and then are subjected to printout, so that the whole printout process needs to be completed after a long time, and the customer experience is poor. In addition, in the digital printing mode, the rasterization processing speed is reduced because a large number of rasterization files are distributed in distribution software and the rasterization files are frequently submitted by the digital printing software, so that the printing speed of the whole process is reduced.
The embodiment of the application is a flow for executing rasterization processing and data distribution on a first terminal device, and a flow for executing printout on a second terminal device. The rasterization processing and the printing output are decomposed to run on different terminal devices, the maximum resource obtained by the rasterization processing is ensured as far as possible, the rasterization processing speed of the terminal device is ensured, the first terminal device always performs the rasterization processing on each PDF file at the first speed, and the printing speed of the whole process is ensured.
In addition, in the embodiment of the present application, the first speed at which the first terminal device performs rasterization processing on the PDF file, and the second speed at which the second terminal device sends the rasterized file and the description file of the variable data to the second terminal device are both greater than the third speed at which the second terminal device performs print output on the variable data, so that continuous print output of each PDF file is ensured, and a situation that print output is interrupted due to the fact that the print output speed is greater than the rasterization processing speed or the data distribution speed does not occur. And the first terminal equipment does not need to perform the rasterization processing on all the PDF files and then performs the printout, and the first terminal equipment can send one of the plurality of PDF files to the second terminal equipment for printout after performing the rasterization processing on the one PDF file, so that the printing can be performed while the rasterization processing is performed, the waiting of a user is not needed, and the experience of the user is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a first terminal device automatically sending a rasterized file and a description file of variable data to a second terminal device, and as shown in fig. 4, sending the rasterized file and the description file of variable data to the second terminal device includes: s401 to S407.
S401, detecting an xml description file.
Specifically, in the embodiment of the present application, after the variable data is rasterized by the first terminal device, the rasterized file and the description file of the variable data can be sent to the second terminal device, so that it is important for the entire printing process if the rasterization processing is completed by the first terminal device.
In the embodiment of the application, one rasterized file of the PDF file includes n rasterized files and 1 xml description file, and the xml description file is a file generated by the rasterized PDF file last, so that the first terminal device can confirm completion of rasterization of the PDF file by detecting the xml description file.
S402, when the xml description file is detected, request information is sent to the second terminal device, and the request information is used for requesting to send the rasterization file and the description file of the variable data to the second terminal device.
Specifically, when detecting the xml description file, the first terminal device needs to send a request message to the second terminal device to request to send the rasterized file and the description file of the variable data to the second terminal device, so as to print and output the variable data by using the second terminal device. The first terminal device can send the rasterized file and the description file only under the condition of obtaining the permission of the second terminal device, and does not send the rasterized file and the description file under the condition of not obtaining the permission of the second terminal device.
And S403, acquiring a response result of the second terminal device.
In the embodiment of the application, the response result of the second terminal device is two cases, the first case is permission, that is, the second terminal device receives the request of the first terminal device to receive the rasterization file and the description file sent by the first terminal device to print and output the variable data; the second is rejection, that is, the second terminal device does not accept the request of the first terminal device, that is, does not perform print data for the variable data of the first terminal device. In the embodiment of the present application, the first response result may be recorded as yes, and the second response result may be recorded as no.
S404, if the answer result is yes, sending the rasterization file and the description file of the variable data to the second terminal device, and then continuing to execute S401 and the subsequent steps.
Specifically, if the answer result is yes, 1 rasterized file and description file of the PDF file are sent to the second terminal device, and then S401 and subsequent steps are continuously executed until all rasterized files and description files of the PDF file are sent to the second terminal device.
The step of sending the rasterized file and the description file of the variable data to the second terminal device may refer to S202, and details are not repeated here.
S405, if the response result is negative, determining whether the response result is an error response.
Specifically, in this embodiment of the application, the response result may be an incorrect response due to a fault in hardware or software in the second terminal device, so that the response result is negative, and therefore, the first terminal device may further determine, by the second terminal device, whether the response result is an incorrect response.
And S406, if the response result is an error response, returning to execute the step S402 and the subsequent steps.
Specifically, if the second terminal device determines that the response result is an error response, the second terminal device may send information that the response result is an error response to the first terminal device, and at this time, the first terminal device may determine that the actual response result of the second terminal device is yes, that is, determine that the second terminal device accepts the rasterized file and the description file sent by the first terminal device to print and output the variable data, and therefore, the first terminal device sends the rasterized file and the description file of the variable data to the second terminal device.
And S407, if the response result is not an error response, stopping sending the rasterization file and the description file of the variable data to the second terminal equipment and alarming.
Specifically, if the second terminal device determines that the response result is not an error response, the second terminal device may send information that the response result is not an error response to the first terminal device, and at this time, the first terminal device may stop sending the rasterization file and the description file of the variable data to the second terminal device and perform an alarm.
And S408, when the xml description file is not detected, returning to execute the step S401 and the subsequent steps.
In some embodiments, the first terminal device cancelling the automatic transmission of the rasterized file and the description file of the variable data to the second terminal device may also cause the first terminal device to stop transmitting the rasterized file and the description file of the variable data to the second terminal device.
To sum up, the variable data printout method provided by the embodiment of the application performs rasterization processing and printout of variable data respectively through two different terminal devices, and can improve the printout speed of the variable data, thereby reducing waiting time, improving user experience, reducing errors caused by manual file submission, and reducing rework times.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by functions and internal logic of the process, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a variable data print output apparatus according to an embodiment of the present application. As shown in fig. 5, the apparatus includes:
an obtaining module 51, configured to obtain variable data, and perform rasterization processing on the variable data to obtain a rasterization file and a description file of the variable data;
and the sending module 52 is used for sending the rasterization file and the description file of the variable data to the second terminal device so that the second terminal device prints and outputs the variable data according to the rasterization file and the description file of the variable data.
Wherein, the obtaining module 51 includes:
a format conversion unit 510, configured to perform format conversion on the variable data to obtain multiple portable document format PDF files of the variable data;
the rasterizing unit 511 is configured to perform rasterizing processing on each PDF file to obtain a rasterized file and a description file of each PDF file, where the rasterized file of each PDF file includes multiple copies, and the description file of each PDF file includes one copy.
Wherein, the rasterization unit 511 includes:
an obtaining parameter subunit 5110, configured to obtain raster parameters, where the raster parameters include an international color consortium ICC curve, a resolution of a rasterized file, and a grayscale value of the rasterized file;
a first rasterizing subunit 5111 is configured to perform rasterization processing on each PDF file based on the raster parameters.
The rasterization unit 511 further includes:
the second rasterizing subunit 5112 is configured to perform rasterization processing on each PDF file at the first speed, so as to obtain a rasterized file and a description file of each PDF file.
Wherein, the sending module 52 includes:
a sending unit 520, configured to send the rasterized file and the description file of the variable data to a second terminal device at a second speed, so that the second terminal device prints and outputs the variable data according to the rasterized file and the description file of the variable data, where a speed of printing and outputting the variable data by the second terminal device is a third speed; wherein the first speed and the second speed are both greater than the third speed.
It should be noted that, because the content of information interaction, execution process, and the like between the above devices/units is based on the same concept as that of the embodiment of the variable data printout method of the present application, specific functions and technical effects thereof may be referred to specifically in the section of the embodiment of the method, and are not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing variable data printout method embodiment, and are not described herein again.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device 6 of this embodiment includes: at least one processor 60 (only one shown in fig. 6), a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, the processor 60 implementing the steps in any of the various variable data printout method embodiments described above when executing the computer program 62.
The terminal device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is only an example of the terminal device 6, and does not constitute a limitation to the terminal device 6, and may include more or less components than those shown, or combine some components, or different components, such as an input/output device, a network access device, and the like.
The processor 60 may be a Central Processing Unit (CPU), and the processor 60 may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may in some embodiments be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. In other embodiments, the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash memory card (flash card), and the like, which are equipped on the terminal device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.
The embodiment of the application also provides a computer readable storage medium, a computer program is stored in the computer readable storage medium, and when the computer program is executed by a processor, the variable data printing output method of the embodiments can be realized.
The embodiment of the application provides a computer program product, and when the computer program product runs on a terminal device, the terminal device is enabled to execute the method for printing and outputting the variable data of the embodiments.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be implemented by a computer program instructing related hardware to implement the steps of the embodiments of the methods described above, and the computer program can be stored in a computer readable storage medium, and when the computer program is executed by a processor, the steps of the embodiments of the methods described above can be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include at least: any entity or device capable of carrying computer program code to an apparatus/terminal device, recording medium, computer memory, read-only memory (ROM), random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution medium. Such as a usb-drive, a removable hard drive, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable storage media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and proprietary practices.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
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 embodiments of the present application.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (6)

1. A variable data printout method applied to a first terminal device, the method comprising:
acquiring variable data, and performing format conversion on the variable data to obtain a plurality of portable document format PDF files of the variable data;
respectively carrying out rasterization processing on each PDF file at a first speed to obtain a rasterized file and a description file of each PDF file, wherein the rasterized file of each PDF file comprises a plurality of copies, and the description file of each PDF file comprises one copy;
sending the rasterization file and the description file of the variable data to a second terminal device at a second speed so that the second terminal device prints and outputs the variable data according to the rasterization file and the description file of the variable data, wherein the speed of printing and outputting the variable data by the second terminal device is a third speed;
wherein the first speed and the second speed are both greater than the third speed.
2. The variable data printout method according to claim 1, wherein the rasterizing processing of each of the PDF files includes:
acquiring raster parameters, wherein the raster parameters comprise an international color consortium ICC curve, the resolution of a rasterized file and the gray value of the rasterized file;
and respectively carrying out rasterization processing on each PDF file based on the raster parameters.
3. A variable data printout method according to claim 1, wherein each of the PDF files has a PDF file size of 600 to 1500 mm.
4. A variable data printout apparatus applied to a first terminal device, comprising:
the acquisition module is used for acquiring variable data and performing format conversion on the variable data to obtain a plurality of portable document format PDF files of the variable data;
respectively carrying out rasterization processing on each PDF file at a first speed to obtain a rasterized file and a description file of each PDF file, wherein the rasterized file of each PDF file comprises a plurality of copies, and the description file of each PDF file comprises one copy;
the sending module is used for sending the rasterization file and the description file of the variable data to the second terminal equipment at a second speed so that the second terminal equipment prints and outputs the variable data according to the rasterization file and the description file of the variable data, and the speed of printing and outputting the variable data by the second terminal equipment is a third speed; wherein the first speed and the second speed are both greater than the third speed.
5. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the variable data printout method of any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the variable data printout method according to any one of claims 1 to 3.
CN202110699063.0A 2021-06-23 2021-06-23 Variable data printing output method and device, terminal equipment and readable storage medium Active CN113448522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110699063.0A CN113448522B (en) 2021-06-23 2021-06-23 Variable data printing output method and device, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110699063.0A CN113448522B (en) 2021-06-23 2021-06-23 Variable data printing output method and device, terminal equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113448522A CN113448522A (en) 2021-09-28
CN113448522B true CN113448522B (en) 2023-03-31

Family

ID=77812290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110699063.0A Active CN113448522B (en) 2021-06-23 2021-06-23 Variable data printing output method and device, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113448522B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547494A (en) * 2015-09-21 2017-03-29 株式会社理光 Printing bar code method and printing bar code equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003186767A (en) * 2001-12-21 2003-07-04 Fujitsu Ltd Opposite connection test method
CN100527069C (en) * 2006-08-23 2009-08-12 北京大学 Data transmission system and method for distributed optical grating picture processing
CN101122845A (en) * 2007-09-17 2008-02-13 北大方正集团有限公司 A variable data printout method and device
JP2010191635A (en) * 2009-02-17 2010-09-02 Konica Minolta Business Technologies Inc Output processing method, output processing device and output processing program
JP5676977B2 (en) * 2010-08-27 2015-02-25 キヤノン株式会社 Image forming apparatus, image forming apparatus control method, and program
JP7171218B2 (en) * 2018-04-13 2022-11-15 キヤノン株式会社 PRINT CONTROL DEVICE, CONTROL METHOD AND PROGRAM

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547494A (en) * 2015-09-21 2017-03-29 株式会社理光 Printing bar code method and printing bar code equipment

Also Published As

Publication number Publication date
CN113448522A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
US8736869B2 (en) Layout print system, method for viewing layout document, and program product
US8908206B2 (en) Automated print job modification for reduced total and color page counts
US20070236717A1 (en) Printer, Print Data Output Device, Method, Computer Readable Medium, And Computer Data Signal
CA2376959A1 (en) Using e-mail to facilitate soft proofing and for print job status
US9134931B2 (en) Printing content over a network
US20040218218A1 (en) Method and system for printing computer generated images
CN111950557A (en) Error problem processing method, image forming apparatus and electronic device
US8810853B2 (en) Optimizing a line width of bar codes printed by variable printing
US8570619B2 (en) Control devices for scanning documents, systems including such control devices, and non-transitory, computer-readable media storing instructions for such control devices
TWI274274B (en) Method for dividing print document
US9229914B2 (en) Optimizing the layout of electronic documents by reducing presentation size of content within document sections so that when combined a plurality of document sections fit within a page
CN113448522B (en) Variable data printing output method and device, terminal equipment and readable storage medium
JP2017212575A (en) Image reading device and program
US20110216337A1 (en) Image processing apparatus, image processing system, and computer readable medium
US20140111521A1 (en) Rendering source content for display
CN111198664A (en) Document printing method and device, computer storage medium and terminal
CN110941947A (en) Document editing method and device, computer storage medium and terminal
US11334302B1 (en) Methods and systems for indicating and replacing missing element(s) in print job files prior to printing
CN114879920A (en) Printing data typesetting method and device, printer, electronic equipment and storage medium
CN100361067C (en) Paging method for printed files
US9147091B2 (en) Printing barcodes from an enterprise resource planning (ERP) system
US9971963B1 (en) Methods, systems, and devices for individualizing N-up raster images with background forms
US11915071B1 (en) Caching outline characters in printed documents
US9978005B2 (en) Printer for drawing bold character, method for controlling the same, and storage medium
US12099764B1 (en) Methods and systems for encoding information about variable data print files

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