[go: up one dir, main page]

CN102446163B - Page lattice storage method for variable data printing and device adopting same - Google Patents

Page lattice storage method for variable data printing and device adopting same Download PDF

Info

Publication number
CN102446163B
CN102446163B CN201010502512.XA CN201010502512A CN102446163B CN 102446163 B CN102446163 B CN 102446163B CN 201010502512 A CN201010502512 A CN 201010502512A CN 102446163 B CN102446163 B CN 102446163B
Authority
CN
China
Prior art keywords
page
file
variable
dot matrix
block
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.)
Expired - Fee Related
Application number
CN201010502512.XA
Other languages
Chinese (zh)
Other versions
CN102446163A (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.)
New Founder Holdings Development Co ltd
Peking University
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University
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 Peking University, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University
Priority to CN201010502512.XA priority Critical patent/CN102446163B/en
Publication of CN102446163A publication Critical patent/CN102446163A/en
Application granted granted Critical
Publication of CN102446163B publication Critical patent/CN102446163B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention provides a page lattice storage method for variable data printing and a device adopting the same. The method comprises the following steps: each page lattice in a series of page lattices is broken down into a reusable page lattice block and a variable page lattice block, wherein the series of page lattices are formed by breaking down a variable data printing operation which is subject to rasterization of an RIP (Raster Image Processor), and every lattice block of page has the consistent bit depth and resolution ratio; the reusable page lattice block and the variable page lattice block in each page lattice are described by XML (Extensible Markup Language) documents; the XML documents, one reusable page lattice block and all the variable page lattice blocks are stored. By adopting the page lattice storage method and the device adopting the same, which are provided by the invention, the storage method is flexible and easy to expand, the storage efficiency is high, and the method and the device are suitable for massive variable data printing systems.

Description

用于可变数据印刷的页面点阵存储方法和装置Page dot matrix storage method and device for variable data printing

技术领域technical field

本发明涉及印刷领域,具体而言,涉及用于可变数据印刷的页面点阵存储方法和装置。The invention relates to the field of printing, in particular to a page dot matrix storage method and device for variable data printing.

背景技术Background technique

随着数码印刷技术的不断发展,尤其是喷墨数码印刷机的不断成熟和发展,可变数据印刷(Variable Data Printing,简称为VDP)在金融、邮政、电信、包装等行业已得到了越来越广泛的应用,主要应用有:个性化票据、个性化账单、个性化广告、个性化标签等。可变数据印刷的特点是:内容个性化可变,可以张张不同。最典型的可变内容是条码(一维条码和二维条码)、可变的文字(包括数字)字符串(如姓名、地址、日期、序列号、邮政编码、联系电话等)以及可变的图形图像(如各种商标、徽标等)。这些可变的内容信息通常存储在各种数据库中。使用VDP编辑软件,用户可以先制作一个页面模板,在这个页面模板中编排了所有的静态不变的页面元素(若用户出于成本或印刷质量的考虑,所有静态不变的元素也可以采用传统的预印的方法,这种情况下页面模板中可能不含静态不变的页面元素),而动态可变的页面元素则指定了与数据库对应字段的绑定关系,实际打印输出时刻,根据这个绑定关系生成动态可变页面,最终实现可变数据的印刷。因此,模板加数据库是可变数据印刷作业的典型工作模式,尤其对海量可变数据印刷更是如此。这里说的“海量”是泛指可变数据很多,对应的作业页数也会很多,可能包括几千、几万、甚至几十万个可变数据页面。With the continuous development of digital printing technology, especially the continuous maturity and development of inkjet digital printing machines, variable data printing (Variable Data Printing, referred to as VDP) has been more and more popular in finance, postal, telecommunications, packaging and other industries. The wider the application, the main applications are: personalized bills, personalized bills, personalized advertisements, personalized labels, etc. The characteristic of variable data printing is that the content can be personalized and variable, and can be different from sheet to sheet. The most typical variable content is barcode (one-dimensional barcode and two-dimensional barcode), variable text (including numbers) string (such as name, address, date, serial number, zip code, contact number, etc.) and variable Graphical images (such as various trademarks, logos, etc.). These variable content information are usually stored in various databases. Using VDP editing software, the user can first create a page template, in which all static and unchanged page elements are arranged (if the user considers cost or printing quality, all static and unchanged elements can also use the traditional In this case, the page template may not contain static and unchanged page elements), while the dynamically variable page elements specify the binding relationship with the corresponding fields in the database. The actual printout time, according to this The binding relationship generates dynamic variable pages, and finally realizes the printing of variable data. Therefore, template plus database is a typical working mode of variable data printing, especially for massive variable data printing. The "massive" mentioned here generally refers to a lot of variable data, and the corresponding number of job pages will also be many, which may include thousands, tens of thousands, or even hundreds of thousands of variable data pages.

VDP作业既具有“张张不同”的特点,也具有“张张类似”的特点。所谓“张张不同”是指通常VDP作业的每一页均包含可变内容;所谓“张张类似”,是指通常拥有共同的模板,页面大部分内容是相同的,最典型的是拥有共同的页面背景。如何利用好VDP作业的这两方面特点,是有效地解决VDP作业输出的关键。VDP operations have both the characteristics of "different" and "similar". The so-called "different" means that each page of a VDP job usually contains variable content; the so-called "similar" means that they usually have a common template, most of the content of the page is the same, the most typical is that they have a common page background. How to make good use of these two characteristics of VDP operations is the key to effectively solve the output of VDP operations.

RIP是Raster Image Processor的缩写,即光栅图像处理器,一种把页面描述文件(如业内广泛使用的PDF(Portable DocumentFormat,可携带文档格式)文件)转换为光栅图像并在光栅成像设备(如照排机、计算机直接制版机、数码印刷机)上进行输出的处理器。任何一个VDP作业都必须经过RIP处理,生成每一个页面对应的光栅化图像点阵(下面都简称为页面点阵)。不同的VDP作业,由于页面内容复杂度不一样,对应的页面光栅化时间也不一样,也就是说,RIP产生页面点阵的速度是不确定的,不能保证一定能够大于数码印刷机消耗页面点阵的速度,尤其是对于高速喷墨数码印刷机更是如此。一旦RIP产生页面点阵的速度小于数码印刷机消耗页面点阵的速度,数码印刷机就会产生数据下溢的错误。目前数码印刷技术领域一种典型的而且是安全的VDP作业输出方式是先由RIP处理VDP作业,经过光栅化处理以后生成所有页面对应的页面点阵数据并进行压缩存储到磁盘,最后由输出设备打印控制软件把每一页的页面点阵数据从磁盘读出经过解压缩还原为平展的页面点阵数据并发送到数码印刷机,最后驱动设备进行输出。RIP is the abbreviation of Raster Image Processor, that is, a raster image processor, which converts a page description file (such as a PDF (Portable Document Format) file widely used in the industry) into a raster image and performs it on a raster imaging device (such as phototypesetting machine, computer-to-plate machine, digital printing press) on the output processor. Any VDP job must be processed by RIP to generate a rasterized image dot matrix corresponding to each page (hereinafter referred to as page dot matrix for short). For different VDP jobs, due to the complexity of the page content, the corresponding page rasterization time is also different. That is to say, the speed of RIP generating page dot matrix is uncertain, and it cannot be guaranteed to be greater than the page dot consumption of digital printing machines. The speed of the array, especially for high-speed inkjet digital printing machines. Once the speed of RIP to generate page dot matrix is lower than the speed of digital printing machine to consume page dot matrix, digital printing machine will generate data underflow error. At present, a typical and safe VDP job output method in the field of digital printing technology is to first process the VDP job by RIP, generate the page dot matrix data corresponding to all pages after rasterization processing, and compress and store it to the disk, and finally the output device The printing control software reads the page dot matrix data of each page from the disk, decompresses and restores the flat page dot matrix data and sends it to the digital printing machine, and finally drives the device for output.

传统的页面点阵存储方式一般是以页为单位独立压缩存储。这种存储方式虽然处理简单,也能适应多个RIP同时处理一个VDP作业文件,但由于没有充分利用VDP作业的“张张类似”的特点,即没有考虑页面点阵数据跨页重用的问题,导致数据压缩率和存取效率都比较低,不适合处理海量VDP作业。举一个实际生产中的典型例子,一个包含10000页的VDP作业,需要存储在40000个分色页面点阵文件(假定青、品、黄、黑四个色面的页面点阵数据各存储一个页面点阵文件)中,其实这40000个分色页面点阵文件中有许多数据是冗余的,对于跨页重用的页面点阵数据其实并不需要重复存储。另一方面,由于目前的数码印刷机的分辨率普遍较低,一般只有300DPI至600DPI,对应的每个页面点阵文件经过压缩后一般比较小,因此输出系统需要存储40000个小文件。显然存取海量的小文件其存取效率远低于存取一个同样大小的大文件。另外,海量数目的页面点阵数据文件也不方便高效地存储和网络传送,还有,当一个海量VDP作业输出完成以后需要删除对应的海量数目的页面点阵文件时,删除操作也会比较费时。The traditional page dot matrix storage method generally compresses and stores independently in units of pages. Although this storage method is easy to handle and can adapt to multiple RIPs processing a VDP job file at the same time, it does not take full advantage of the "similar" feature of VDP jobs, that is, it does not consider the problem of page dot matrix data reuse across pages. As a result, the data compression rate and access efficiency are relatively low, and it is not suitable for processing massive VDP operations. To give a typical example in actual production, a VDP job containing 10,000 pages needs to be stored in 40,000 color-separated page bitmap files (assuming that the page bitmap data of the four color planes of cyan, magenta, yellow, and black are stored in one page each) Dot matrix file), in fact, many data in these 40,000 color-separated page dot matrix files are redundant, and the page dot matrix data reused across pages does not actually need to be stored repeatedly. On the other hand, since the resolution of current digital printing machines is generally low, generally only 300DPI to 600DPI, the dot matrix file corresponding to each page is generally relatively small after compression, so the output system needs to store 40,000 small files. Obviously, accessing a large number of small files is far less efficient than accessing a large file of the same size. In addition, it is not convenient to efficiently store and transmit a large number of page dot matrix data files. In addition, when a massive VDP job output needs to be deleted after the corresponding massive number of page dot matrix files are deleted, the deletion operation will also be time-consuming. .

发明内容Contents of the invention

本发明旨在提供本发明提出的一种用于可变数据印刷的页面点阵存储方法和装置,旨在解决上述存储效率较低的问题。The present invention aims to provide a page dot matrix storage method and device for variable data printing proposed by the present invention, aiming to solve the above-mentioned problem of low storage efficiency.

在本发明的实施例中,提供了一种用于可变数据印刷的页面点阵存储方法,包括:将一系列的页面点阵中的每个页面点阵分解为由可重用的页面点阵块和可变的页面点阵块组成的一系列页面点阵块,其中,一系列的页面点阵是由一个可变数据印刷作业经过RIP光栅化后所分解得到,每一个所述页面点阵块的位深、分辨率一致;使用XML文件描述每个页面点阵中的可重用页面点阵块和可变的页面点阵块;存储XML文件、可重用的页面点阵块和可变的页面点阵块至一个或多个包中,其中仅存储一份可重用页面点阵块;将一系列的页面点阵中的每个所述页面点阵分解为由可重用的页面点阵块和可变的页面点阵块组成包括:分析每个所述页面点阵中的静态数据和动态数据;将所述静态数据作为所述可重用的页面点阵块,将所述动态数据作为所述可变的页面点阵块。In an embodiment of the present invention, a page dot matrix storage method for variable data printing is provided, comprising: decomposing each page dot matrix in a series of page dot matrix into reusable page dot matrix A series of page dot matrix blocks and variable page dot matrix blocks, wherein a series of page dot matrix is obtained by decomposing a variable data printing job through RIP rasterization, each of the page dot matrix The bit depth and resolution of the blocks are consistent; use XML files to describe reusable page bitmap blocks and variable page bitmap blocks in each page bitmap; store XML files, reusable page bitmap blocks and variable page tiles into one or more packages in which only one copy of the reusable page tiles is stored; decomposing each of said page tiles in a series of page tiles into reusable page tiles Composition of variable page lattice blocks includes: analyzing static data and dynamic data in each of the page lattices; using the static data as the reusable page lattice blocks, and using the dynamic data as the The variable page dot blocks described above.

在本发明的实施例中,提供了一种用于可变数据印刷的页面点阵存储装置,包括:分解模块,用于将一系列的页面点阵中的每个页面点阵分解为由可重用的页面点阵块和可变的页面点阵块组成的一系列页面点阵块,其中,一系列的页面点阵是由一个可变数据印刷作业经过RIP光栅化后所分解得到,每一个所述页面点阵块的位深、分辨率一致;描述模块,用于使用XML文件描述每个页面点阵中的可重用页面点阵块和可变的页面点阵块;存储模块,用于存储XML文件、可重用的页面点阵块和可变的页面点阵块至一个或多个包中,其中仅存储一份可重用页面点阵块;所述分解模块用于分析每个所述页面点阵中的静态数据和动态数据;将所述静态数据作为所述可重用的页面点阵块,将所述动态数据作为所述可变的页面点阵块。In an embodiment of the present invention, a page dot matrix storage device for variable data printing is provided, including: a decomposing module, used to decompose each page dot matrix in a series of page dot matrix into A series of page dot matrix blocks composed of reused page dot matrix blocks and variable page dot matrix blocks. A series of page dot matrix blocks are decomposed by a variable data printing job after RIP rasterization. Each The bit depth and resolution of the page lattice blocks are consistent; the description module is used to describe reusable page lattice blocks and variable page lattice blocks in each page lattice using an XML file; the storage module is used for storing XML files, reusable page bitmap blocks and variable page bitmap blocks into one or more packages, wherein only one copy of reusable page bitmap blocks is stored; the decomposing module is used to analyze each of the Static data and dynamic data in the page lattice; use the static data as the reusable page lattice block, and use the dynamic data as the variable page lattice block.

本发明所述的页面点阵存储方法和装置,将可重用的页面点阵块仅存储一份,所以减少了数据量,解决了现有技术存储效率不高的问题,存储方式灵活易扩展,存取效率高,适合海量可变数据印刷系统。The page lattice storage method and device of the present invention store only one copy of the reusable page lattice block, thus reducing the amount of data and solving the problem of low storage efficiency in the prior art. The storage method is flexible and easy to expand. High access efficiency, suitable for mass variable data printing system.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1示出了根据本发明一个实施例的用于可变数据印刷的页面点阵存储方法的流程图;Fig. 1 shows a flow chart of a page dot matrix storage method for variable data printing according to an embodiment of the present invention;

图2-图5示出了根据本发明优选实施例的应用场景;2-5 show application scenarios according to preferred embodiments of the present invention;

图6示出了根据本发明一个实施例的用于可变数据印刷的页面点阵存储装置的示意图。Fig. 6 shows a schematic diagram of a page dot matrix storage device for variable data printing according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参考附图并结合实施例,来详细说明本发明。The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments.

图1示出了根据本发明一个实施例的用于可变数据印刷的页面点阵存储方法的流程图,包括:Fig. 1 shows a flow chart of a page dot matrix storage method for variable data printing according to an embodiment of the present invention, including:

步骤S10,将一系列的页面点阵中的每个页面点阵分解为由可重用的页面点阵块和可变的页面点阵块组成,其中,一系列的页面点阵是由一个可变数据印刷作业经过RIP光栅化后所分解得到;Step S10, decomposing each page lattice in a series of page lattices into reusable page lattice blocks and variable page lattice blocks, wherein a series of page lattices is composed of a variable The data printing job is decomposed after RIP rasterization;

步骤S20,使用XML文件描述每个页面点阵中的可重用页面点阵块和可变的页面点阵块;Step S20, using an XML file to describe reusable page lattice blocks and variable page lattice blocks in each page lattice;

步骤S30,存储XML文件、可重用的页面点阵块和可变的页面点阵块,其中仅存储一份可重用页面点阵块。Step S30, storing the XML file, the reusable page bitmap block and the variable page bitmap block, wherein only one copy of the reusable page bitmap block is stored.

现有技术中,每个页面点阵文件都单独地进行存储,导致产生大量零散的小文件,从而影响了文件存储访问的效率。而本实施例的页面点阵存储方法将页面点阵文件分解为页面点阵块,并将可重用的页面点阵块仅存储一份,所以减少了数据量,解决了现有技术存储效率不高的问题,存储方式灵活易扩展,存取效率高,适合海量可变数据印刷系统。In the prior art, each page dot matrix file is stored separately, resulting in a large number of scattered small files, thereby affecting the efficiency of file storage and access. However, in the page lattice storage method of the present embodiment, the page lattice file is decomposed into page lattice blocks, and only one copy of the reusable page lattice blocks is stored, so the amount of data is reduced, and the storage efficiency of the prior art is solved. The storage method is flexible and easy to expand, and the access efficiency is high, which is suitable for mass variable data printing systems.

优选地,步骤S10包括:分析每个页面点阵中的静态数据和动态数据;将静态数据作为可重用的页面点阵块,将动态数据作为可变的页面点阵块。Preferably, step S10 includes: analyzing static data and dynamic data in each page lattice; using static data as reusable page lattice blocks, and using dynamic data as variable page lattice blocks.

一个可变数据印刷作业经过RIP光栅化后可以分解为一系列的分色的页面点阵,典型地,每一页的页面点阵由青(Cyan)、品红(Magenta)、黄(Yellow)、黑(blacK)四个色面的页面点阵组成。图2为一个比较典型的短版可变数据公文文档的首页和末页的页面示意图。一个公文文档一般有几页或几十页正文,通常需要被打印输出几十或几百份拷贝,但每一份拷贝的首页和末页均含有可变内容,如拷贝的编号、条码、收文人名或单位名、抄送人名或单位名等等,另外在每份拷贝的末页上通常还会有附加的发文单位的公章。显然公文的正文内容和公章在公文的所有拷贝中是不变的可重用的页面点阵块,而拷贝的序号、条码、收文单位名称等是可变的页面点阵块,不同的公文拷贝具有不同的序号、条码、收文单位名称。假定一个公文文档为15页,要打印100份拷贝,因此前端RIP系统将会产生1500个页面,为简单起见,假定只有红黑两色,那么RIP系统总共会生成3000个红黑两色对应的页面点阵。除了首页和末页以外,中间的13页显然对所有拷贝是一样的,每一页对应的页面点阵都可以看成只由一个可重用的页面点阵块组成。而首页的页面点阵可以看成由一个不同拷贝共享的背景正文页面点阵块和若干个可变元素对应的页面点阵块组成,而末页也可以看成由一个不同拷贝共享的背景正文页面点阵块、一个不同拷贝共享的公章对应的页面点阵块以及若干个可变元素对应的页面点阵块共同组成。一般地,一个页面点阵可以看成由一系列的被不同页重用的页面点阵块和不同页可变的页面点阵块组成,通过区分可重用的页面点阵块和可变的页面点阵块,显然可以大大减少需要存储的页面点阵数据的冗余。A variable data printing job can be decomposed into a series of color-separated page dot matrix after RIP rasterization. Typically, the page dot matrix of each page is composed of cyan (Cyan), magenta (Magenta), yellow (Yellow) , black (blacK) page dot matrix composed of four color planes. FIG. 2 is a schematic diagram of the first page and the last page of a typical short-version variable data document. An official document generally has several pages or dozens of pages of text, and usually needs to be printed out dozens or hundreds of copies, but the first and last pages of each copy contain variable content, such as copy number, barcode, receipt The name of the person or unit, the name of the person or unit that is copied, etc. In addition, there is usually an additional official seal of the issuing unit on the last page of each copy. Obviously, the text content and official seal of the official document are invariable and reusable page dot matrix blocks in all copies of the official document, while the copied serial number, barcode, and name of the receiving unit are variable page dot matrix blocks. Different copies of the official document have Different serial numbers, barcodes, and recipient unit names. Suppose an official document has 15 pages, and 100 copies need to be printed, so the front-end RIP system will generate 1500 pages. For simplicity, assuming that there are only red and black colors, the RIP system will generate a total of 3000 red and black corresponding pages. Page dot matrix. Except for the first and last pages, the middle 13 pages are obviously the same for all copies, and the page dot matrix corresponding to each page can be regarded as composed of only one reusable page dot matrix block. The page dot matrix of the home page can be regarded as a background text page dot matrix block shared by different copies and page dot matrix blocks corresponding to several variable elements, and the last page can also be regarded as a background text shared by different copies It consists of a page dot matrix block, a page dot matrix block corresponding to an official seal shared by different copies, and a page dot matrix block corresponding to several variable elements. Generally, a page lattice can be regarded as composed of a series of page lattice blocks reused by different pages and variable page lattice blocks of different pages. By distinguishing reusable page lattice blocks and variable page lattice blocks The array block can obviously greatly reduce the redundancy of the page lattice data that needs to be stored.

优选地,步骤S20包括:描述每一个页面点阵块在页面点阵中的位置和大小,以及它与页面点阵中的对应背景的作用关系,作用关系包括透明模式和不透明模式。Preferably, step S20 includes: describing the position and size of each page dot matrix block in the page dot matrix, and its functional relationship with the corresponding background in the page dot matrix, the functional relationship includes transparent mode and opaque mode.

每一个页面点阵块与背景有两种作用方式,一种是不透明模式,即把当前页面点阵块的数据完全取代对应区域的背景页面点阵数据;另一种是透明模式,即当前页面点阵块数据中每一个像素的颜色值与对应的背景像素进行逻辑加后作为目标颜色值。通过这些信息,就可以很容易地将这页面点阵块还原为每个页面点阵文件。Each page dot matrix block and the background have two modes of action, one is the opaque mode, that is, the data of the current page dot matrix block completely replaces the background page dot matrix data of the corresponding area; the other is the transparent mode, that is, the current page dot matrix data The color value of each pixel in the dot matrix data is logically added to the corresponding background pixel as the target color value. With these information, it is easy to restore this page bitmap block into each page bitmap file.

优选地,步骤S30包括:将可重用的页面点阵块作为第一文件存储在第一目录中,将可变的页面点阵块作为第二文件存储在第二目录中,将XML文件、第一目录和第二目录打包为一个文件或一个文件序列,其中XML文件记录可变数据印刷作业的ID,以及对第一文件和第二文件的引用,如果被打包为文件序列,XML文件还记录文件序列中各个文件的引用关系。Preferably, step S30 includes: storing the reusable page lattice block as a first file in the first directory, storing the variable page lattice block as a second file in the second directory, storing the XML file, the A directory and a second directory are packaged as a file or a file sequence, where the XML file records the ID of the variable data printing job, and references to the first file and the second file, and if packaged as a file sequence, the XML file also records The reference relationship of each file in the file sequence.

为了限制每一个ZIP包的文件大小或所包含的页数以及出于并行处理的考虑,一个可变数据印刷作业可以对应一个页面点阵ZIP包,也可以对应由多个相互关联的按照页号递增的顺序排列的页面点阵ZIP包序列。在每一个ZIP包中的Job.xml文件(即XML文件)中记录一个作业ID,不同的作业具有不同的作业ID,来自于同一个作业的不同ZIP包都具有相同的作业ID。在每一个ZIP包中的Job.xml文件中还记录两个参数:Prev和Next(即XML文件还记录文件序列中各个文件的引用关系),分别表示ZIP包序列中的上一个ZIP包的名字和下一个后续ZIP包的名字,ZIP包序列中的第一个ZIP包的Prev和最后一个ZIP包的Next均为空。In order to limit the file size or the number of pages contained in each ZIP package and for the consideration of parallel processing, a variable data printing job can correspond to a page dot matrix ZIP package, and can also correspond to multiple interrelated pages according to the page number. Sequence of pages in the bitmap ZIP package in increasing order. A job ID is recorded in the Job.xml file (that is, the XML file) in each ZIP package. Different jobs have different job IDs, and different ZIP packages from the same job all have the same job ID. Two parameters are also recorded in the Job.xml file in each ZIP package: Prev and Next (that is, the XML file also records the reference relationship of each file in the file sequence), which respectively represent the name of the last ZIP package in the ZIP package sequence and the name of the next subsequent ZIP package, the Prev of the first ZIP package in the sequence of ZIP packages and the Next of the last ZIP package are all empty.

每一页的页面点阵使用XML描述该页所有引用的可重用页面点阵块和可变的页面点阵块,主要描述信息包括每一个页面点阵块在页面中的位置、大小、与背景的作用方式以及对应的逻辑文件名等,所有页的页面点阵XML描述构成一个作业的XML描述文件Job.xml,所有页面点阵块数据和Job.xml文件一起打包存储到一个标准的ZIP包中。所有可重用的页面点阵块数据放在该ZIP包中的一个特定的逻辑目录Reusable(即第一目录)下,所有可变的页面点阵块数据放在该ZIP包中另一个特定的逻辑目录Disposable(即第二目录)下。每一个页面点阵块数据对应一个ZIP包中的逻辑文件,Job.xml文件描述每一页的页面点阵块组成时通过逻辑文件名来引用对应的页面点阵块数据。通过该优选实施例,可以将现有技术光栅化过程中生成大量的零散文件合并成一个或若干个文件,从而显著地提高了文件存储效率。The page bitmap of each page uses XML to describe all referenced reusable page bitmap blocks and variable page bitmap blocks. The main description information includes the position, size, and background of each page bitmap block in the page The function mode and the corresponding logical file name, etc., the page bitmap XML description of all pages constitutes a job XML description file Job.xml, and all page bitmap block data and Job.xml file are packaged and stored in a standard ZIP package middle. All reusable page bitmap block data is placed in a specific logical directory Reusable (namely the first directory) in the ZIP package, and all variable page bitmap block data is placed in another specific logical directory in the ZIP package Under the directory Disposable (that is, the second directory). Each page bitmap block data corresponds to a logical file in a ZIP package, and the Job.xml file describes the page bitmap block composition of each page to refer to the corresponding page bitmap block data through the logical file name. Through this preferred embodiment, a large number of scattered files generated in the rasterization process of the prior art can be combined into one or several files, thereby significantly improving file storage efficiency.

优选地,将XML文件、第一目录和第二目录通过压缩打包为一个文件或一个文件序列。这进一步地减少了数据量。值得注意的是,在本发明的实施例中,可重用的页面点阵块既可以在一个ZIP包中跨页重用,也可以在同一个作业内部不同ZIP包中跨包重用。Preferably, the XML file, the first directory and the second directory are compressed and packaged into a file or a sequence of files. This further reduces the amount of data. It is worth noting that, in the embodiment of the present invention, the reusable page lattice blocks can be reused across pages in one ZIP package, and can also be reused across different ZIP packages within the same job.

优选地,通过游程编码压缩RLE方法和/或业界标准的数据压缩函数库ZLIB方法将可重用的页面点阵块压缩为第一文件,以及将可变的页面点阵块压缩为第二文件。每一个页面点阵块数据在加入到标准ZIP包之前,可以采用业内广泛使用的游程编码压缩方法RLE、ZLIB压缩方法,先对页面点阵数据进行压缩,再把压缩以后的数据存储到ZIP包中,而且不同的页面点阵块可以采用不同的点阵压缩方法,以提高点阵压缩率。Preferably, the reusable page bitmap blocks are compressed into the first file, and the variable page bitmap blocks are compressed into the second file by the run-length encoding compression RLE method and/or the industry standard data compression function library ZLIB method. Before the data of each page dot matrix block is added to the standard ZIP package, the run-length encoding compression method RLE and ZLIB compression methods widely used in the industry can be used to compress the page dot matrix data first, and then store the compressed data in the ZIP package In addition, different page dot matrix blocks can use different dot matrix compression methods to improve the dot matrix compression rate.

优选地,通过游程编码压缩方法和/或ZLIB方法将可重用的页面点阵块压缩为第一文件,以及将可变的页面点阵块压缩为第二文件包括:先从页面点阵块中抽取多个特征行,对特征行采用游程编码压缩方法进行压缩,若压缩率大于阈值T1,则采用游程编码压缩方法压缩页面点阵块;若压缩率不大于阈值T1,则采用ZLIB方法压缩页面点阵块,若压缩率不大于阈值T2则取消对页面点阵块的压缩。Preferably, compressing the reusable page bitmap block into a first file through the run-length coding compression method and/or the ZLIB method, and compressing the variable page bitmap block into a second file includes: first starting from the page bitmap block Extract multiple feature rows, and compress the feature rows using the run-length coding compression method. If the compression rate is greater than the threshold T1, use the run-length coding compression method to compress the page lattice block; if the compression rate is not greater than the threshold T1, use the ZLIB method to compress the page For a lattice block, if the compression ratio is not greater than the threshold T2, the compression of the lattice block of the page is cancelled.

为了兼顾页面点阵块数据的压缩率以及压缩和解压缩速度两方面的考虑,对页面点阵块数据的压缩采取智能选择的方法,即先对页面点阵块数据抽取若干特征行,对这些特征行采用游程编码压缩方法进行试验性压缩,若压缩率大于阈值T1(典型地可以设为8),就认为该页面点阵块数据适合采用游程编码压缩方法,并把压缩后的数据写入ZIP包。否则就采用ZLIB压缩方法对整个页面点阵块数据进行压缩。若采用ZLIB压缩方法压缩后数据压缩率大于阈值T2(典型地可以设为2),则把压缩后的数据写入ZIP包,否则认为压缩效果不理想,直接把该页面点阵块的原始数据写入ZIP包。In order to take into account both the compression rate of the page bitmap data and the speed of compression and decompression, an intelligent selection method is adopted for the compression of the page bitmap data, that is, a number of feature rows are first extracted from the page bitmap data, Run-length encoding compression method is used for experimental compression. If the compression rate is greater than the threshold T1 (typically, it can be set to 8), it is considered that the page lattice block data is suitable for run-length encoding compression method, and the compressed data is written into ZIP. Bag. Otherwise, the ZLIB compression method is used to compress the entire page dot matrix data. If the ZLIB compression method is used to compress the data compression rate greater than the threshold T2 (typically can be set to 2), then write the compressed data into the ZIP package, otherwise it is considered that the compression effect is not ideal, and the original data of the page dot matrix block is directly stored Write the ZIP package.

图3是一个更具有普遍性的可变数据作业的模板示例,图中“Static”的页面元素表示静态不变的图形、图像或文字,即表示跨页重用的页面点阵块,而图中“Variable”表示动态可变的图形、图像或文字,即表示跨页可变的页面点阵块。通常可变数据排版软件(如典型的标签设计软件)通过排版生成可变数据作业的模板,再结合数据库来生成海量可变数据印刷作业的不同页面。图4、5就是应用图3所示模板再结合数据库中的两条记录而生成的两个页面示意图。从图3可以看出,一个可变数据印刷作业对应的一个页面点阵可以看成由一系列的被不同页重用(甚至在同一页中的不同位置被重用)的页面点阵块和不同页可变的页面点阵块组成,其组成方法在本发明实施例中采用标准的XML来描述,每一页的页面点阵由XML页面元素PAGE来描述,具体参考表1:Figure 3 is an example of a template for a more general variable data job. The "Static" page element in the figure represents a static and unchanged graphic, image or text, that is, a page dot matrix block that is reused across pages. "Variable" means dynamically variable graphics, images or text, that is, page dot blocks that are variable across pages. Usually variable data typesetting software (such as typical label design software) generates templates for variable data jobs through typesetting, and then combines databases to generate different pages of massive variable data printing jobs. Figures 4 and 5 are schematic diagrams of two pages generated by applying the template shown in Figure 3 and combining two records in the database. It can be seen from Figure 3 that a page dot matrix corresponding to a variable data printing job can be regarded as a series of page dot matrix blocks and different page dot matrix blocks that are reused by different pages (even reused at different positions in the same page). Variable page lattice blocks are formed, and the composition method is described in the embodiment of the present invention using standard XML, and the page lattice of each page is described by the XML page element PAGE, specifically refer to Table 1:

表1Table 1

上述表1给出了一个页面对应的页面点阵的XML描述,所有页的页面点阵XML描述构成一个XML文档元素DOCUMENT,连同一个作业的XML作业元素JOB组成一个完整作业的XML文件Job.xml,其具体组成方式参见如下的表2。The above table 1 gives the XML description of the page lattice corresponding to a page. The page lattice XML description of all pages constitutes an XML document element DOCUMENT, together with the XML job element JOB of a job constitutes a complete job XML file Job.xml , see the following table 2 for its specific composition.

表2Table 2

具体说明如下:The specific instructions are as follows:

1)所有页面的初始页面背景为空白。1) The initial page background of all pages is blank.

2)一个页面对应的页面点阵由一系列页面点阵块(由XML元素MARK来表示)组成,每一个MARK元素在PAGE元素中的出项顺序决定了页面点阵块放入页面点阵背景的顺序。2) The page dot matrix corresponding to a page is composed of a series of page dot matrix blocks (represented by the XML element MARK), and the item order of each MARK element in the PAGE element determines the page dot matrix block put into the page dot matrix background Order.

3)每一个页面点阵块与页面点阵背景有两种作用方式,一种是不透明模式,对应表1中的MARK元素的Type属性为Image,即把当前页面点阵块的数据完全取代对应区域的背景页面点阵数据;另一种是透明模式,对应表1中的MARK元素的Type属性为Graph,即当前页面点阵块数据中非0像素取代对应的背景像素。也可以定义更为复杂的透明模式,如逻辑或、取最大值、取最小值等。3) Each page dot matrix block and the page dot matrix background have two modes of action, one is the opaque mode, corresponding to the Type attribute of the MARK element in Table 1 as Image, that is, the data of the current page dot matrix block is completely replaced by the corresponding The background page dot matrix data of the area; the other is the transparent mode, which corresponds to the Type attribute of the MARK element in Table 1 as Graph, that is, the non-zero pixels in the current page dot matrix block data replace the corresponding background pixels. You can also define more complex transparent modes, such as logical or, take the maximum value, take the minimum value, etc.

4)每一个页面点阵块的位深、分辨率应该一致。4) The bit depth and resolution of each page dot matrix block should be consistent.

5)每一个页面点阵块在页面中的具体大小和位置由MARK元素的Dimensions和Position属性决定。Dimensions和Position都是以像素为单位,Dimensions给出页面点阵块的宽度Width和高度Height,Position给出页面点阵块左上角相对于页面左上角的坐标值X和Y。页面点阵块的宽度Width及在页面中的X坐标有对齐要求,具体描述如下:(Height和Y没有对齐要求)5) The specific size and position of each page dot matrix block on the page are determined by the Dimensions and Position attributes of the MARK element. Both Dimensions and Position are in pixels. Dimensions gives the width Width and height of the page dot matrix block, and Position gives the coordinate values X and Y of the upper left corner of the page dot matrix block relative to the upper left corner of the page. The Width of the dot matrix block on the page and the X coordinate on the page have alignment requirements. The specific description is as follows: (There is no alignment requirement for Height and Y)

对于1位点阵,Width、X应该按8个像素对齐 For a 1-bit lattice, Width and X should be aligned by 8 pixels

对于2位点阵,Width、X应该按4个像素对齐 For 2 bit matrix, Width, X should be aligned by 4 pixels

对于4位点阵,Width、X应该按2个像素对齐 For 4 bit matrix, Width, X should be aligned by 2 pixels

对于8位点阵,Width、X应该按1个像素对齐,即没有对齐要求 For 8-bit dot matrix, Width and X should be aligned by 1 pixel, that is, there is no alignment requirement

6)每一个页面点阵块对应的MARK元素由若干子元素SEPARATION组成,每个子元素SEPARATION对应一个色面。子元素SEPARATION允许省略,对于没有给出的色面,表示该色面为全白。例如若某页是黑白页面,则与CMY三个色面对应的SEPARATION子元素可以全部省略。6) The MARK element corresponding to each page dot matrix block is composed of several sub-elements SEPARATION, and each sub-element SEPARATION corresponds to a color plane. The sub-element SEPARATION can be omitted. For a color surface not given, it means that the color surface is completely white. For example, if a certain page is a black and white page, the SEPARATION sub-elements corresponding to the three color planes of CMY can all be omitted.

7)SEPARATION元素的属性Source给出了对应页面点阵块的对应色面的点阵数据在ZIP包中的逻辑文件名,而Format属性则给出了对应的点阵数据在ZIP包中的压缩格式。7) The attribute Source of the SEPARATION element gives the logical file name of the dot matrix data in the ZIP package corresponding to the corresponding color surface of the dot matrix block of the corresponding page, and the Format attribute gives the compression of the corresponding dot matrix data in the ZIP package Format.

本发明实施例所述的可变数据印刷作业的页面点阵存储方法就是把一个作业中所有的页面点阵块数据文件和Job.xml文件一起打包存储到一个标准的ZIP包中,所有可重用的页面点阵块数据被存储于该ZIP包中的一个特定的逻辑目录Reusable下,而且只存储一次,但通过ZIP中逻辑文件名可以被多次引用,从而能大大减少数据的冗余度;所有可变的页面点阵块数据被存储于该ZIP包中另一个特定的逻辑目录Disposable下,与可重用的页面点阵块数据一样也只存储一次,但通过ZIP中逻辑文件名往往只被引用一次。而Job.xml文件存储于该ZIP包中的逻辑根目录下。每一个页面点阵块数据对应一个ZIP包中的一个逻辑文件,Job.xml文件在描述每一页的页面点阵组成时通过SEPARATION元素的Source属性给出的逻辑文件名来引用对应的页面点阵块数据,而属性Format则给出了对应的页面点阵块数据的压缩格式。The page dot matrix storage method of the variable data printing job described in the embodiment of the present invention is to pack and store all the page dot matrix block data files and the Job.xml file in a job into a standard ZIP package, all reusable The page lattice block data is stored in a specific logical directory Reusable in the ZIP package, and it is only stored once, but the logical file name in the ZIP can be quoted multiple times, which can greatly reduce data redundancy; All variable page grid block data are stored in another specific logical directory Disposable in the ZIP package, which is stored only once like the reusable page grid block data, but the logical file name in ZIP is often only stored Quote once. The Job.xml file is stored in the logical root directory of the ZIP package. Each page bitmap block data corresponds to a logical file in a ZIP package, and the Job.xml file refers to the corresponding page point through the logical file name given by the Source attribute of the SEPARATION element when describing the page bitmap composition of each page Block data, and the attribute Format gives the compression format of the corresponding page bit block data.

由于该ZIP包文件是标准的ZIP文件,用户使用常见的WinZip和WinRAR等软件均可以打开该ZIP包并解压缩释放到硬盘中的任何目录下,而且Job.xml文件也是标准的可读的XML文件,必要时用户也很容易检查数据的完整性和正确性,也很容易通过扩展XML文件的相关元素和属性来灵活扩展新的作业特性,具有很强的可扩展性。Since the ZIP package file is a standard ZIP file, users can open the ZIP package by using common software such as WinZip and WinRAR, decompress it and release it to any directory in the hard disk, and the Job.xml file is also a standard readable XML file. When necessary, the user can easily check the integrity and correctness of the data, and it is also easy to flexibly expand new job features by extending the relevant elements and attributes of the XML file, which has strong scalability.

按照上述的页面点阵存储方法,通常一个较小的短版作业对应一个ZIP包文件。对于一个较大的印刷作业如海量可变数据印刷作业,若所有页都被打包存储到一个ZIP包中,则ZIP包文件可能会变得巨大无比,可以大到几十个G字节甚至几百个G字节,对于文件存储和网络传送非常不方便。为了更有效地操作页面点阵ZIP包文件,可以限制生成的每一个ZIP包的文件大小或限制其中所包含的页数。也就是说,一个可变数据印刷作业可以对应一个页面点阵ZIP包,也可以对应由多个相互关联的按照页号递增的顺序排列的页面点阵ZIP包序列。在每一个ZIP包中的Job.xml文件中记录一个作业ID,不同的作业具有不同的作业ID,来自于同一个作业的不同ZIP包都具有相同的作业ID。在每一个ZIP包中的Job.xml文件中的DOCUMENT元素还记录两个属性参数:Prev和Next(参见表2),分别表示ZIP包序列中的上一个ZIP包的名字和下一个后续ZIP包的名字,ZIP包序列中的第一个ZIP包的Prev和最后一个ZIP包的Next均为空。后端输出设备打印控制软件在解释上述可变数据印刷作业的页面点阵ZIP包时,可以根据Prev和Next参数找到构成一个作业的完整ZIP包序列,从而按照正确的页序输出。According to the above-mentioned page dot matrix storage method, usually a relatively small short-version job corresponds to a ZIP package file. For a large printing job such as a mass variable data printing job, if all pages are packaged and stored in a ZIP package, the ZIP package file may become extremely huge, which can be as large as dozens of gigabytes or even several Hundreds of gigabytes, very inconvenient for file storage and network transmission. In order to operate the page dot matrix ZIP package file more effectively, you can limit the file size of each generated ZIP package or limit the number of pages contained therein. That is to say, a variable data printing job may correspond to a page dot matrix ZIP package, or may correspond to a sequence of multiple interrelated page dot matrix ZIP packages arranged in ascending order of page numbers. A job ID is recorded in the Job.xml file in each ZIP package. Different jobs have different job IDs, and different ZIP packages from the same job all have the same job ID. The DOCUMENT element in the Job.xml file in each ZIP package also records two attribute parameters: Prev and Next (see Table 2), which respectively represent the name of the previous ZIP package and the next subsequent ZIP package in the ZIP package sequence The name of the ZIP package, the Prev of the first ZIP package in the ZIP package sequence and the Next of the last ZIP package are both empty. When the printing control software of the back-end output device interprets the page dot matrix ZIP package of the above-mentioned variable data printing job, it can find out the complete sequence of ZIP packages constituting a job according to the Prev and Next parameters, so as to output according to the correct page order.

进一步地,为了缩小页面点阵ZIP包的数据量,每一个页面点阵块数据在加入到标准ZIP包之前,可以采用业内广泛使用的游程编码压缩方法RLE、ZLIB压缩方法,即先对页面点阵块数据进行压缩,再把压缩以后的数据存储到ZIP包中,而且不同的页面点阵块可以采用不同的点阵压缩方法,以提高点阵压缩率。在上述的表1中,每一个页面点阵块对应一个MARK元素,而MARK元素的子元素SEPARATION的Format属性则给出了对应的页面点阵块数据的压缩格式。由于不同页面点阵块对应不同的类型,可能是图形或文字类的页面点阵块,也可能是图像类的页面点阵块,不同类型的页面点阵块,其适合的点阵数据压缩方式是不一样的,不同的页面点阵块采用不同的点阵压缩方法可以有效地提高压缩率。Furthermore, in order to reduce the data volume of the page lattice ZIP package, before adding the data of each page lattice block into the standard ZIP package, the run-length encoding compression method RLE and ZLIB compression methods widely used in the industry can be used, that is, the page point The block data is compressed, and then the compressed data is stored in the ZIP package, and different page dot matrix blocks can use different dot matrix compression methods to improve the dot matrix compression rate. In the above Table 1, each page bitmap block corresponds to a MARK element, and the Format attribute of the subelement SEPARATION of the MARK element provides the compression format of the corresponding page bitmap block data. Since different page dot matrix blocks correspond to different types, it may be graphic or text page dot matrix blocks, or image page dot matrix blocks, different types of page dot matrix blocks, the suitable dot matrix data compression method It is not the same, different page dot matrix block using different dot matrix compression method can effectively improve the compression ratio.

进一步地,为了兼顾页面点阵块数据的压缩率以及出于压缩和解压缩速度两方面的考虑,对页面点阵块数据的压缩采取智能选择的方法,即先对页面点阵块数据抽取若干特征行,对这些特征行采用游程编码压缩方法进行试验性压缩,若压缩率大于阈值T1(典型地可以设为8),就认为该页面点阵块数据适合采用游程编码压缩方法,并把压缩后的数据写入ZIP包。否则就采用ZLIB压缩方法对整个页面点阵块数据进行压缩。若采用ZLIB压缩方法压缩后数据压缩率大于阈值T2(典型地可以设为2),则把压缩后的数据写入ZIP包,否则认为压缩效果不理想,直接把该页面点阵块的原始数据写入ZIP包。Furthermore, in order to take into account both the compression rate of the page bitmap data and the speed of compression and decompression, an intelligent selection method is adopted for the compression of the page bitmap data, that is, some features are first extracted from the page bitmap data OK, use the run-length coding compression method to perform experimental compression on these feature rows, if the compression rate is greater than the threshold T1 (typically can be set to 8), it is considered that the page lattice block data is suitable for using the run-length coding compression method, and the compressed The data is written into the ZIP package. Otherwise, the ZLIB compression method is used to compress the entire page dot matrix data. If the ZLIB compression method is used to compress the data compression rate greater than the threshold T2 (typically can be set to 2), then write the compressed data into the ZIP package, otherwise it is considered that the compression effect is not ideal, and the original data of the page dot matrix block is directly stored Write the ZIP package.

进一步地,可重用的页面点阵块既可以在一个ZIP包中跨页重用,也可以在同一个作业内部不同ZIP包中跨包重用。后端输出设备打印控制软件在解释上述可变数据印刷作业的页面点阵ZIP包时,对一个包中的可重用的页面点阵块数据可以采取高速缓冲技术,使得可重用的页面点阵块数据在每一次被复用时刻先根据逻辑文件名直接到高速缓冲区中检索对应的页面点阵块数据,若找不到再到ZIP包文件中进行重新定位找到对应的页面点阵块数据。若高速缓冲区较大,也可以缓冲同一个作业中若干个包的可重用页面点阵块数据,以提高系统效率。Further, the reusable page lattice blocks can be reused across pages in one ZIP package, and can also be reused across packages in different ZIP packages within the same job. When the printing control software of the back-end output device interprets the page dot matrix ZIP package of the above-mentioned variable data printing job, it can adopt high-speed buffering technology for the reusable page dot matrix block data in a package, so that the reusable page dot matrix block When the data is multiplexed every time, the corresponding page lattice block data is directly retrieved from the high-speed buffer according to the logical file name, and if it cannot be found, it is relocated in the ZIP package file to find the corresponding page lattice block data. If the high-speed buffer is large, the reusable page lattice block data of several packages in the same job can also be buffered to improve system efficiency.

综上所述,采用本发明所述的页面点阵存储方法,一个可变数据印刷作业经过RIP处理以后生成的所有页面点阵数据被存储在一个或多个标准的ZIP包中,提升了页面点阵数据存储、访问、传送、删除的效率,对于一个具有海量可变数据的印刷作业来说,效果尤为明显,因为本发明所述的方法消除了传统方法中的海量页数的页面点阵文件的创建、关闭、删除等操作。第二,可重用的页面点阵数据只存储一次,显然能够提高页面点阵数据的压缩率,减少数据的冗余度。第三,该存储方法既可以支持把一个可变数据印刷作业经过RIP处理以后生成所有页面点阵数据ZIP包然后由输出设备打印控制软件加载该ZIP包进行最后的输出,即所谓的串行工作模式,也可以支持一边RIP作业一边实际输出作业,即所谓的并行工作模式,只要RIP生成ZIP包足够快能跟上输出设备打印控制软件消耗ZIP包的速度即可。典型地,生成页面点阵ZIP包的软件写完第一个ZIP包文件后,在开始生成同一个作业的下一个页面点阵ZIP包的同时,输出设备打印控制软件可以并行地开始打印输出第一个ZIP包文件。第四,一个可变数据印刷作业对应一个或若干个标准的ZIP包,使用常见的WinZip和WinRAR软件均可以打开该ZIP包,而且Job.xml文件也是标准的可读的XML文件,必要时操作者很容易检查数据的完整性和正确性,也很容易通过扩展XML文件的相关元素的属性来灵活扩展新的作业特性,具有很强的可扩展性。In summary, with the page dot matrix storage method described in the present invention, all the page dot matrix data generated after a variable data printing job is processed by RIP are stored in one or more standard ZIP packages, which improves the page size. The efficiency of dot matrix data storage, access, transmission, and deletion is particularly effective for a printing job with a large amount of variable data, because the method of the present invention eliminates the page dot matrix of a large number of pages in the traditional method Create, close, delete, etc. files. Second, the reusable page lattice data is only stored once, which can obviously improve the compression rate of the page lattice data and reduce data redundancy. Third, the storage method can support a variable data printing job to be processed by RIP to generate a ZIP package of all page dot matrix data, and then the output device print control software loads the ZIP package for final output, that is, the so-called serial work Mode can also support the actual output job while RIP job, that is, the so-called parallel working mode, as long as RIP generates ZIP package fast enough to keep up with the speed of ZIP package consumption by the printing control software of the output device. Typically, after the software that generates the page dot matrix ZIP package finishes writing the first ZIP package file, at the same time as it starts to generate the next page dot matrix ZIP package of the same job, the print control software of the output device can start printing and outputting the first ZIP package in parallel. A ZIP package file. Fourth, a variable data printing job corresponds to one or several standard ZIP packages, which can be opened by using common WinZip and WinRAR software, and the Job.xml file is also a standard readable XML file. It is easy for the reader to check the integrity and correctness of the data, and it is also easy to flexibly expand new job features by extending the attributes of the relevant elements of the XML file, which has strong scalability.

图6示出了根据本发明一个实施例的用于可变数据印刷的页面点阵存储装置的示意图,包括:Fig. 6 shows a schematic diagram of a page dot matrix storage device for variable data printing according to an embodiment of the present invention, including:

分解模块10,用于将一系列的页面点阵中的每个页面点阵分解为由可重用的页面点阵块和可变的页面点阵块组成,其中,一系列的页面点阵是由一个可变数据印刷作业经过RIP光栅化后所分解得到;The decomposition module 10 is used to decompose each page lattice in a series of page lattices into reusable page lattice blocks and variable page lattice blocks, wherein a series of page lattices is composed of A variable data printing job is decomposed after RIP rasterization;

描述模块20,用于使用XML文件描述每个页面点阵中的可重用页面点阵块和可变的页面点阵块;A description module 20, configured to use an XML file to describe reusable page lattice blocks and variable page lattice blocks in each page lattice;

存储模块30,用于存储XML文件、可重用的页面点阵块和可变的页面点阵块,其中仅存储一份可重用页面点阵块。The storage module 30 is used for storing XML files, reusable page lattice blocks and variable page lattice blocks, wherein only one copy of the reusable page lattice blocks is stored.

本实施例的页面点阵存储装置将页面点阵文件分解为页面点阵块,并将可重用的页面点阵块仅存储一份,所以减少了数据量,解决了现有技术存储效率不高的问题,存储方式灵活易扩展,存取效率高,适合海量可变数据印刷系统。The page lattice storage device of this embodiment decomposes the page lattice file into page lattice blocks, and stores only one copy of the reusable page lattice blocks, thus reducing the amount of data and solving the problem of low storage efficiency in the prior art The storage method is flexible and easy to expand, and the access efficiency is high, which is suitable for mass variable data printing systems.

优选地,分解模块10用于分析每个页面点阵中的静态数据和动态数据;将静态数据作为可重用的页面点阵块,将动态数据作为可变的页面点阵块。本优选实施例可以大大减少需要存储的页面点阵数据的冗余。Preferably, the decomposing module 10 is used to analyze static data and dynamic data in each page lattice; the static data is used as a reusable page lattice block, and the dynamic data is used as a variable page lattice block. This preferred embodiment can greatly reduce the redundancy of the page dot matrix data that needs to be stored.

优选地,描述模块20用于描述每一个页面点阵块在页面点阵中的位置和大小,以及它与页面点阵中的对应背景的作用关系,作用关系包括透明模式和不透明模式。通过这些信息,就可以很容易地将这页面点阵块还原为每个页面点阵文件。Preferably, the description module 20 is used to describe the position and size of each page dot matrix block in the page dot matrix, and its functional relationship with the corresponding background in the page dot matrix. The functional relationship includes transparent mode and opaque mode. With these information, it is easy to restore this page bitmap block into each page bitmap file.

优选地,存储模块30用于将可重用的页面点阵块作为第一文件存储在第一目录中,将可变的页面点阵块作为第二文件存储在第二目录中,将XML文件、第一目录和第二目录打包为一个文件或一个文件序列,其中XML文件记录可变数据印刷作业的ID,以及对第一文件和第二文件的引用,如果被打包为文件序列,XML文件还记录文件序列中各个文件的引用关系。本优选实施例显著地提高了文件存储效率。Preferably, the storage module 30 is used to store the reusable page lattice block as a first file in the first directory, store the variable page lattice block as a second file in the second directory, and store the XML file, The first directory and the second directory are packaged as a file or a sequence of files, wherein the XML file records the ID of the variable data printing job, and references to the first file and the second file, and if packaged as a sequence of files, the XML file also Record the reference relationship of each file in the file sequence. This preferred embodiment significantly improves file storage efficiency.

从以上的描述中,可以看出,本发明充分利用VDP作业中的部分页面内容跨页重用的特性,其数据压缩率和存取效率都比较高,存储格式灵活易扩展,非常适合海量可变数据印刷系统。From the above description, it can be seen that the present invention makes full use of the feature of cross-page reuse of part of the page content in the VDP job, its data compression rate and access efficiency are relatively high, and the storage format is flexible and easy to expand, which is very suitable for massive variable Data printing system.

采用本发明实施例所述的页面点阵存储方法和装置,一个可变数据印刷作业经过RIP处理以后生成的所有页面点阵数据被存储在一个或多个标准的ZIP包中,提升了页面点阵数据存储、访问、传送、删除的效率,对于一个具有海量可变数据的印刷作业来说,效果尤为明显,因为本发明实施例所述的方法和装置消除了传统方法中的海量页数的页面点阵文件的创建、关闭、删除等操作。第二,可重用的页面点阵数据只存储一次,显然能够提高页面点阵数据的压缩率。第三,该存储方法和装置既可以支持把一个可变数据印刷作业经过RIP处理以后生成所有页面点阵数据ZIP包然后由设备控制程序加载该ZIP包进行最后的输出,即所谓的串行工作模式,也可以支持一边RIP作业一边实际输出作业,即所谓的并行工作模式,只要RIP生成ZIP包足够快能跟上设备控制器消耗ZIP包的速度即可。第四,一个可变数据印刷作业对应一个或若干个标准的ZIP包,使用常见的WinZip和WinRAR软件均可以打开该ZIP包,而且Job.xml文件也是标准的可读的XML文件,必要时操作者很容易检查数据的完整性和正确性,也很容易通过扩展XML文件的相关元素的属性来灵活扩展新的作业特性,具有很强的可扩展性。Using the page dot matrix storage method and device described in the embodiments of the present invention, all the page dot matrix data generated after a variable data printing job is processed by RIP are stored in one or more standard ZIP packages, which improves the page dot matrix. The efficiency of array data storage, access, transmission, and deletion is particularly obvious for a printing job with a large amount of variable data, because the method and device described in the embodiments of the present invention eliminate the problem of a large number of pages in the traditional method. Operations such as creating, closing, and deleting page bitmap files. Second, the reusable page bitmap data is only stored once, which can obviously improve the compression rate of the page bitmap data. Third, the storage method and device can support a variable data printing job to be processed by RIP to generate a ZIP package of all page dot matrix data, and then the device control program loads the ZIP package for final output, that is, the so-called serial work Mode, can also support the actual output job while RIP job, the so-called parallel working mode, as long as the RIP generates ZIP packets fast enough to keep up with the speed of the device controller to consume ZIP packets. Fourth, a variable data printing job corresponds to one or several standard ZIP packages, which can be opened by using common WinZip and WinRAR software, and the Job.xml file is also a standard readable XML file. It is easy for the reader to check the integrity and correctness of the data, and it is also easy to flexibly expand new job features by extending the attributes of the relevant elements of the XML file, which has strong scalability.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Optionally, they can be implemented with program codes executable by computing devices, so that they can be stored in storage devices and executed by computing devices, or they can be made into individual integrated circuit modules, or their Multiple modules or steps are implemented as a single integrated circuit module. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (9)

1.一种用于可变数据印刷的页面点阵存储方法,其特征在于,包括:1. A page dot matrix storage method for variable data printing, characterized in that it comprises: 将一系列的页面点阵中的每个所述页面点阵分解为由可重用的页面点阵块和可变的页面点阵块组成的一系列页面点阵块,其中,所述一系列的页面点阵是由一个可变数据印刷作业经过RIP光栅化后所分解得到,每一个所述页面点阵块的位深、分辨率一致;Decomposing each of the page lattices in a series of page lattices into a series of page lattice blocks composed of reusable page lattice blocks and variable page lattice blocks, wherein the series of page lattice blocks The page dot matrix is obtained by decomposing a variable data printing job through RIP rasterization, and the bit depth and resolution of each said page dot matrix block are consistent; 使用XML文件描述每个所述页面点阵中的所述可重用页面点阵块和所述可变的页面点阵块;using an XML file to describe the reusable page lattice blocks and the variable page lattice blocks in each of the page lattices; 存储所述XML文件、所述可重用的页面点阵块和所述可变的页面点阵块至一个或多个包中,其中仅存储一份所述可重用页面点阵块;storing the XML file, the reusable page bitmap block and the variable page bitmap block into one or more packages, wherein only one copy of the reusable page bitmap block is stored; 将一系列的页面点阵中的每个所述页面点阵分解为由可重用的页面点阵块和可变的页面点阵块组成包括:Decomposing each of the page lattices in a series of page lattices into reusable page lattice blocks and variable page lattice blocks includes: 分析每个所述页面点阵中的静态数据和动态数据;analyzing static data and dynamic data in each said page lattice; 将所述静态数据作为所述可重用的页面点阵块,将所述动态数据作为所述可变的页面点阵块。The static data is used as the reusable page grid block, and the dynamic data is used as the variable page grid block. 2.根据权利要求1所述的方法,其特征在于,使用XML文件描述每个所述页面点阵中的所述可重用页面点阵块和所述可变的页面点阵块包括:2. The method according to claim 1, characterized in that, using an XML file to describe the reusable page lattice blocks and the variable page lattice blocks in each of the page lattices comprises: 描述每一个所述页面点阵块在所述页面点阵中的位置和大小,以及它与所述页面点阵中的对应背景的作用关系,所述作用关系包括透明模式和不透明模式。Describe the position and size of each page dot matrix block in the page dot matrix, and its functional relationship with the corresponding background in the page dot matrix, the functional relationship includes a transparent mode and an opaque mode. 3.根据权利要求1所述的方法,其特征在于,存储所述XML文件、所述可重用的页面点阵块和所述可变的页面点阵块包括:3. The method according to claim 1, wherein storing the XML file, the reusable page lattice block and the variable page lattice block comprises: 将所述可重用的页面点阵块作为第一文件存储在第一目录中,将所述可变的页面点阵块作为第二文件存储在第二目录中,将所述XML文件、所述第一目录和所述第二目录打包为一个文件或一个文件序列,其中所述XML文件记录所述可变数据印刷作业的ID,以及对所述第一文件和所述第二文件的引用,如果被打包为所述文件序列,所述XML文件还记录所述文件序列中各个文件的引用关系。storing the reusable page bitmap block as a first file in a first directory, storing the variable page bitmap block as a second file in a second directory, and storing the XML file, the the first directory and the second directory are packaged as one file or a sequence of files, wherein the XML file records the ID of the VDP job and references to the first file and the second file, If packaged as the file sequence, the XML file also records the reference relationship of each file in the file sequence. 4.根据权利要求3所述的方法,其特征在于,通过游程编码压缩RLE方法和/或数据压缩函数库ZLIB方法将所述可重用的页面点阵块压缩为所述第一文件,以及将所述可变的页面点阵块压缩为所述第二文件。4. The method according to claim 3, characterized in that, the reusable page lattice block is compressed into the first file by run-length coding compression RLE method and/or data compression function library ZLIB method, and The variable page bitmap block is compressed into the second file. 5.根据权利要求4所述的方法,其特征在于,通过RLE方法和/或ZLIB方法将所述可重用的页面点阵块压缩为所述第一文件,以及将所述可变的页面点阵块压缩为所述第二文件包括:5. The method according to claim 4, wherein the reusable page bitmap block is compressed into the first file by the RLE method and/or the ZLIB method, and the variable page bitmap Block compression for the second file includes: 先从所述页面点阵块中抽取多个特征行,对所述特征行采用所述RLE方法进行压缩,若压缩率大于阈值T1,则采用所述RLE方法压缩所述页面点阵块;First extracting a plurality of feature rows from the page lattice block, compressing the feature rows using the RLE method, if the compression rate is greater than a threshold T1, then using the RLE method to compress the page lattice block; 若压缩率不大于阈值T1,则采用所述ZLIB方法压缩所述页面点阵块,若压缩率不大于阈值T2则取消对所述页面点阵块的压缩。If the compression rate is not greater than the threshold T1, the ZLIB method is used to compress the page lattice block, and if the compression rate is not greater than the threshold T2, the compression of the page lattice block is cancelled. 6.根据权利要求3所述的方法,其特征在于,将所述XML文件、所述第一目录和所述第二目录通过压缩打包为所述一个文件或所述一个文件序列。6. The method according to claim 3, wherein the XML file, the first directory and the second directory are compressed and packaged into the one file or the one file sequence. 7.一种用于可变数据印刷的页面点阵存储装置,其特征在于,包括:7. A page dot matrix storage device for variable data printing, characterized in that it comprises: 分解模块,用于将一系列的页面点阵中的每个所述页面点阵分解为由可重用的页面点阵块和可变的页面点阵块组成的一系列页面点阵块,其中,所述一系列的页面点阵是由一个可变数据印刷作业经过RIP光栅化后所分解得到,每一个所述页面点阵块的位深、分辨率一致;A decomposition module, configured to decompose each of the page lattices in a series of page lattices into a series of page lattice blocks composed of reusable page lattice blocks and variable page lattice blocks, wherein, The series of page dot matrixes are obtained by decomposing a variable data printing job through RIP rasterization, and the bit depth and resolution of each of the page dot matrix blocks are consistent; 描述模块,用于使用XML文件描述每个所述页面点阵中的所述可重用页面点阵块和所述可变的页面点阵块;A description module, configured to use an XML file to describe the reusable page lattice blocks and the variable page lattice blocks in each of the page lattices; 存储模块,用于存储所述XML文件、所述可重用的页面点阵块和所述可变的页面点阵块至一个或多个包中,其中仅存储一份所述可重用页面点阵块;A storage module, configured to store the XML file, the reusable page bitmap block and the variable page bitmap block into one or more packages, wherein only one copy of the reusable page bitmap is stored piece; 所述分解模块用于分析每个所述页面点阵中的静态数据和动态数据;将所述静态数据作为所述可重用的页面点阵块,将所述动态数据作为所述可变的页面点阵块。The decomposing module is used to analyze static data and dynamic data in each of the page lattices; the static data is used as the reusable page lattice block, and the dynamic data is used as the variable page Dot matrix blocks. 8.根据权利要求7所述的装置,其特征在于,所述描述模块用于描述每一个所述页面点阵块在所述页面点阵中的位置和大小,以及它与所述页面点阵中的对应背景的作用关系,所述作用关系包括透明模式和不透明模式。8. The device according to claim 7, wherein the description module is used to describe the position and size of each of the page dot matrix blocks in the page dot matrix, and its relationship with the page dot matrix The action relationship of the corresponding background in , the action relationship includes a transparent mode and an opaque mode. 9.根据权利要求7所述的装置,其特征在于,所述存储模块用于将所述可重用的页面点阵块作为第一文件存储在第一目录中,将所述可变的页面点阵块作为第二文件存储在第二目录中,将所述XML文件、所述第一目录和所述第二目录打包为一个文件或一个文件序列,其中所述XML文件记录所述可变数据印刷作业的ID,以及对所述第一文件和所述第二文件的引用,如果被打包为所述文件序列,所述XML文件还记录所述文件序列中各个文件的引用关系。9. The device according to claim 7, wherein the storage module is used to store the reusable page bitmap block as a first file in the first directory, and store the variable page bitmap block Blocks are stored in a second directory as a second file, and the XML file, the first directory, and the second directory are packaged into one file or a sequence of files, wherein the XML file records the variable data If the ID of the printing job and the references to the first file and the second file are packaged as the file sequence, the XML file also records the reference relationship of each file in the file sequence.
CN201010502512.XA 2010-09-30 2010-09-30 Page lattice storage method for variable data printing and device adopting same Expired - Fee Related CN102446163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010502512.XA CN102446163B (en) 2010-09-30 2010-09-30 Page lattice storage method for variable data printing and device adopting same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010502512.XA CN102446163B (en) 2010-09-30 2010-09-30 Page lattice storage method for variable data printing and device adopting same

Publications (2)

Publication Number Publication Date
CN102446163A CN102446163A (en) 2012-05-09
CN102446163B true CN102446163B (en) 2015-03-25

Family

ID=46008667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010502512.XA Expired - Fee Related CN102446163B (en) 2010-09-30 2010-09-30 Page lattice storage method for variable data printing and device adopting same

Country Status (1)

Country Link
CN (1) CN102446163B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346107B (en) * 2013-07-31 2017-04-26 北大方正集团有限公司 Variable-data printing page processing method and variable-data printing page processing device
CN104427203B (en) * 2013-08-29 2018-04-27 北大方正集团有限公司 Page dot matrix self-adapting compressing, restoring method and device
CN104765578B (en) * 2014-01-08 2018-01-09 北大方正集团有限公司 Rasterizing processing method and grating image processor
JP2017154367A (en) * 2016-03-01 2017-09-07 コニカミノルタ株式会社 Image formation device, image formation method and image formation management apparatus
CN109710198B (en) * 2018-12-29 2020-12-25 森大(深圳)技术有限公司 Printing method, device and equipment for local dynamic variable image
CN110390376B (en) * 2019-09-19 2019-12-27 南京孜博汇信息科技有限公司 Dot matrix label generation method and system
CN111274509B (en) * 2020-01-14 2021-08-17 拉扎斯网络科技(上海)有限公司 Object list page display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114210A (en) * 2007-08-30 2008-01-30 北京大学 A rasterization method and device supporting variable data page printing
CN101290559A (en) * 2007-04-19 2008-10-22 佳能株式会社 Information processing apparatus and information processing method
CN101576995A (en) * 2009-04-30 2009-11-11 北大方正集团有限公司 Storing method of rasterization lattice of variable data printed page

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100823265B1 (en) * 2006-04-13 2008-04-17 삼성전자주식회사 Method and apparatus for transmitting a BCHML-PCR document from a mobile device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290559A (en) * 2007-04-19 2008-10-22 佳能株式会社 Information processing apparatus and information processing method
CN101114210A (en) * 2007-08-30 2008-01-30 北京大学 A rasterization method and device supporting variable data page printing
CN101576995A (en) * 2009-04-30 2009-11-11 北大方正集团有限公司 Storing method of rasterization lattice of variable data printed page

Also Published As

Publication number Publication date
CN102446163A (en) 2012-05-09

Similar Documents

Publication Publication Date Title
CN102446163B (en) Page lattice storage method for variable data printing and device adopting same
US8433997B1 (en) Efficient portable document
US7006711B2 (en) Transform table for ink sizing and compression
DE69732447T2 (en) Method and device for reproducing font-free, structured documents
US7761783B2 (en) Document performance analysis
US8368969B2 (en) Methods and devices for rasterizing transparent pages
US8520006B2 (en) Image processing apparatus and method, and program
JPH04232564A (en) Data storage and communication apparatus without hard-copy loss for electronic document processing apparatus
CN103095964B (en) A kind of page dot matrix compression method and device
US8520243B2 (en) Image forming apparatus, computer-readable recording medium on which print data processing program code is recorded, and print data processing method
US6956970B2 (en) Information storage using tables and scope indices
US7532366B1 (en) Embedded interaction code printing with Microsoft Office documents
US20040205465A1 (en) Method of electronically producing documents in a legal proceeding
WO2015014060A1 (en) Page processing method and device for variable data printing
CN103853849A (en) Method for establishing and drawing high-compression reflowable file
US7346229B2 (en) Transform table for ink sizing and compression
US8749813B2 (en) Methods, devices and systems for encoding graphical primitives
JP2006146771A (en) Print job processor, print system, backup method for print job data, and program
US20180081601A1 (en) Method of storing record information
US9367775B2 (en) Toner limit processing mechanism
JP2007129557A (en) Image processing system
US8922803B2 (en) Bitmap rotation mechanism
JP3561912B2 (en) Barcode processing system
US20140241640A1 (en) Bitmap Processing Mechanism
Zhang et al. Better PostScript than PostScript: portable self-extracting PostScript representation of scanned document images

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220621

Address after: 100871 No. 5, the Summer Palace Road, Beijing, Haidian District

Patentee after: Peking University

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

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871 No. 5, the Summer Palace Road, Beijing, Haidian District

Patentee before: Peking University

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

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150325