CN102360274A - Variable-data printing template realization device and application method for same - Google Patents

Variable-data printing template realization device and application method for same Download PDF

Info

Publication number
CN102360274A
CN102360274A CN2011102946921A CN201110294692A CN102360274A CN 102360274 A CN102360274 A CN 102360274A CN 2011102946921 A CN2011102946921 A CN 2011102946921A CN 201110294692 A CN201110294692 A CN 201110294692A CN 102360274 A CN102360274 A CN 102360274A
Authority
CN
China
Prior art keywords
layout
unit
template
template file
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011102946921A
Other languages
Chinese (zh)
Inventor
臧忠慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI HUIMOU NETWORK TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI HUIMOU NETWORK TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI HUIMOU NETWORK TECHNOLOGY Co Ltd filed Critical SHANGHAI HUIMOU NETWORK TECHNOLOGY Co Ltd
Priority to CN2011102946921A priority Critical patent/CN102360274A/en
Publication of CN102360274A publication Critical patent/CN102360274A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an improved variable-data printing template realization device, which comprises a template file generation device and a template file analysis device. The template file generation device comprises a layout manager unit, a layout container unit, a drawing unit and a file generator unit, and the template file analysis device comprises a template file analyzer unit, a layout manager unit, a drawing unit, a layout container unit, a script grammar analyzer unit and a printer command generator unit. Template files can be stored to facilitate later repeated use and save later typesetting operation. Copying, reading and modifying can be facilitated, and resource sharing of the template files can also be facilitated. In addition, the invention further provides an application method for the improved variable-data printing template realization device.

Description

A kind of template implement device and application process thereof of variable data print
Technical field:
The present invention relates to the variable data print field, relate in particular to a kind of template implement device and application process thereof of variable data print.
Background technology:
The VDP technology is said from fundamental aspect, is meant to adopt digital technology with print engine and database link the in store printed contents information of treating of database.During printing, computer applied algorithm uses and placement rule according to element, extracts related content from database, puts it into document then.Therefore, no matter once print ten parts still 10,000 parts, the VDP technology can both information makes every part of document neither identical through changing wherein.VDP of today technology can dynamic combined four chromatic graph sheets, chart, text and other object, create out the document of attractive height customization.
At present; The VDP growth in the printing on demand field abroad is very fast; On the one hand be because the development of 1 pair 1 marketing and customer relationship marketing; Businessman can design pointed products & services through this media of VDP article, has improved consumer's feedback rates greatly and has made the lifelong value maximization of client; On the other hand, the final user of printed matter more and more stresses the personalization of oneself, and the requirement of printing product quality improves day by day, thereby has promoted applying of personal printing.This has also expedited the emergence of the development of variable data software.
Variable data software on the market, common way are through gui interface layout and data source, associate data source and layout then.Template has two kinds of storage meanss at present, and a kind of is directly to be stored in the database, the migration copy of the inconvenient template file of this method; A kind of in addition is to be stored in the self-defining file, and this file can not be edited, and can only just can open inconvenient manual read and modification with the variable data software of oneself.
Summary of the invention:
In view of above-mentioned prior art defective and application demand, the purpose of this invention is to provide a kind of template implement device of follow-on variable data print, this device can be deposited into template file, convenient repeatedly use later on, the work of setting type after saving.Can conveniently copy, read and revise, make things convenient for the resource sharing of template file.In addition, the present invention also provides the application process about above-mentioned this implement device.
To achieve these goals, concrete technical scheme of the present invention is following:
A kind of template implement device of variable data print, this device is core with the template file, comprises template file generating apparatus and template file resolver.
The template file generating apparatus comprises:
One reading of data source and page info generate the layout item, issue the layout manager unit of layout container unit and drawing unit;
One receives the layout item that the layout manager unit is sent, and the layout container unit that stores;
One is used for the layout item that receives the layout manager unit, the drawing unit that shows with GUI (Graphical User Interface, graphic user interface) mode;
One reads the template generator unit of the layout Xiang Laicheng template file of layout container unit;
The template file resolver comprises:
One reads template file, parses data source and page data information in the version file, the result is issued the template file resolver unit of layout management unit;
One receives template file data sent source, resolver unit and page data information, is organized into the layout item, issues the layout manager unit of layout container unit and drawing unit;
One is used for the drawing unit that the layout item shows with the GUI mode is sent in the layout manager unit;
One receives the layout item that the layout manager unit is sent, and the layout container unit that stores;
One reads the layout item of layout container unit, resolves the expression formula in the layout item, analysis result is sent to the script syntax parsing device unit of PDF maker or printer command unit;
One receives the analysis result of script syntax parsing device unit, generates the printer command maker unit of print command.
In the such scheme, said template file is for describing the script file of layout container unit, and this script file is made up of XML and RTF two parts; Said XML partly comprises page info, data source, bar code, literal, figure and image.
In the such scheme, said page data comprises page size information; The cutting line positional information; The positional information that comprises circle, rectangle, ellipse, these figures of straight line; Thickness, size and colouring information; The bar code positional information; Size, information such as barcode types; The position of image and size information.
In the such scheme, said data source comprises user, password, database-driven description and these attributes of database-name.
In the such scheme, said bar code comprises these attributes of barcode types, position, size, data and expression formula.
In the such scheme, said literal comprises these attributes of position, size and expression formula.
In the such scheme, said figure comprises the attribute information of circle, ellipse, rectangle, these figures of straight line.
In the such scheme, said image refers to the filename of jpg, tiff etc., these information of picture position and expression formula.
In the such scheme, said template file resolver also is provided with one through reading the pdf document maker unit that information and variable data in the layout container unit generates pdf document.
In addition, according to the application process that the invention described above device is provided, this method comprises that template file generates and template file is resolved two big steps.
The particular content that template file generates:
SA1: the layout manager unit reads page data and data source, generates the layout item and sends to layout container unit and drawing unit;
SA2: drawing unit receives the layout item that sends the layout manager unit, draws out with the GUI form;
SA3: the template generator unit reads the layout item information of layout container, derives template file.
The particular content that template file is resolved:
SB1: the data source information in the template file resolver resolves template file connects database, and analysis result is sent to layout manager;
SB2: layout manager arrangement analysis result becomes the layout item, and the layout item is stored in the layout container and sends to drawing unit and the syntax parsing device;
SB3: call drawing unit, draw the layout object;
SB4: the syntax parsing device is resolved the expression formula attribute in the layout item, and the data source of resolving the layout item simultaneously indicates, and the record to database matees one by one then, generates print command or PDF and creates instruction;
SB5: call print unit and print command is sent to printer or call PDF generation unit generation pdf document.
Can be known that by such scheme the present invention can easily the support variable data printing, template file is readable strong, and it is simple to resolve the template file method, template file has used the combination of XML and RTF, has reduced that text formatting is described and the complexity of parsing.Template file is smaller, can copy to very easily on other computers to use, and animal migration is strong, and shared resource is saved human cost effectively.If data source etc. change, can directly revise template file with editing machines such as notepads.
Description of drawings:
Further specify the present invention below in conjunction with accompanying drawing and embodiment.
Fig. 1 is the Organization Chart of template implement device of the present invention.
Fig. 2 a is a template file generating apparatus Organization Chart of the present invention.
Fig. 2 b is a template file resolver Organization Chart of the present invention.
Fig. 3 is template file content structure figure of the present invention.
Fig. 4 is XML structural drawing in the template file of the present invention.
Fig. 5 illustrates figure for RTF in the template file of the present invention.
Fig. 6 is RTF structural drawing in the template file of the present invention.
Embodiment:
For technological means, creation characteristic that the present invention is realized, reach purpose and effect and be easy to understand and understand, below in conjunction with concrete diagram, further set forth the present invention.
As shown in Figure 1, the template implement device of variable data print of the present invention comprises template file generating apparatus and template file resolver.
Shown in Fig. 2 a, the direction of arrow among the figure is indicating data flow.Device for reading data source information, layout manager is created layout, and layout information is stored in the layout container.The layout object comprises image-type variable data object, figure type variable data object, bar code variable data object, literal variable data object and page info.Image-type variable data object, figure type variable data object, bar code variable data object, literal variable data object also can comprise expression formula.Expression formula is the custom script language normally, can support special variable data demand.Template generator generates template file according to object properties information in the layout container.The template file copy is convenient, can reuse, the workload that layout is set type after reducing.
Shown in Fig. 2 b, the direction of arrow among the figure is indicating data flow.Template file resolver in the device reads template file; Parse layout information and data source information, script syntax parsing device parses the expression formula in the layout information, according to expression formula; Pass to layout manager after revising layout information; Layout manager is put in order out with layout information and is passed to the graphic plotting unit, and layout information is stored in the layout container, and the graphic plotting unit shows layout information with the GUI mode.The printer command maker reads information and the variable data in the layout container, generates print command and sends to printer.Information and variable data that the pdf document maker reads in the layout container generate pdf document.This covering device both can be accomplished printing function, can derive pdf document again.PDF supports interdepartmental system, like this can the perhaps fast seal shop completion printing in other printing house very easily.
As shown in Figure 3, template file separated into two parts, first half are XML, and latter half is RTF.
Need to prove that XML (Extensible Markup Language) is an extend markup language, is a kind of simple data storage language, uses a series of simple mark data of description, and these marks can use easily mode to set up.XML simply makes it be easy in Any Application, read and write data, and this makes XML become unique common language of different platform exchanges data very soon.XML is used for describing the object information of layout container in the present invention, mainly comprises bar code, figure, image and literal.RTF is the abbreviation of RichText Format, and meaning is many text formattings, is the Windows normative document.This is the file of a kind of similar DOC form (Word document), and good compatibility is arranged, and uses " board " among the Windows " annex " just can open the edlin of going forward side by side.Since in the variable data implementation procedure, the text formatting more complicated, text formatting of the present invention partly uses the rtf form of Microsoft to describe, and the windows environment can just can parse down at an easy rate like this.
As shown in Figure 4, the present invention proposes the XML part in the template file, comprises page info, data source, bar code, literal, figure and image.
Data source mainly comprises attributes such as user, password, database-driven description and database-name.
Bar code mainly comprises attributes such as barcode types, position, size, data and expression formula.
Literal comprises attributes such as position, size and expression formula.Word content and form are represented by the RTF of Fig. 5.RTF is the standard that Microsoft provides, and having corresponding control to resolve and show among the WINDOWS does not need other exploitation by RTF.RTF to as if deposit in order, as shown in Figure 6, can be mapped convenient the parsing like this with the file object among the XML one by one.
Figure comprises the attribute information of circle, ellipse, rectangle, straight line figures.
Image mainly refers to the filename of jpg, tiff etc., information such as picture position and expression formula.
More than show and described ultimate principle of the present invention and principal character and advantage of the present invention.The technician of the industry should understand; The present invention is not restricted to the described embodiments; That describes in the foregoing description and the instructions just explains principle of the present invention; Under the prerequisite that does not break away from spirit and scope of the invention, the present invention also has various changes and modifications, and these variations and improvement all fall in the scope of the invention that requires protection.The present invention requires protection domain to be defined by appending claims and equivalent thereof.

Claims (10)

1. the template implement device of a variable data print, this device is a core with the template file, comprises template file generating apparatus and template file resolver; It is characterized in that,
Said file creating apparatus comprises:
One reading of data source and page info generate the layout item, issue the layout manager unit of layout container unit and drawing unit;
One receives the layout item that the layout manager unit is sent, and the layout container unit that stores;
One is used for the layout item that receives the layout manager unit, the drawing unit that shows with GUI (Graphical User Interface, graphic user interface) mode;
One reads the template generator unit of the layout Xiang Laicheng template file of layout container unit;
Said document analysis device comprises:
One reads template file, parses data source and page data information in the version file, the result is issued the template file resolver unit of layout management unit;
One receives template file data sent source, resolver unit and page data information, is organized into the layout item, issues the layout manager unit of layout container unit and drawing unit;
One is used for the drawing unit that the layout item shows with the GUI mode is sent in the layout manager unit;
One receives the layout item that the layout manager unit is sent, and the layout container unit that stores;
One reads the layout item of layout container unit, resolves the expression formula in the layout item, analysis result is sent to the script syntax parsing device unit of PDF maker or printer command unit;
One receives the analysis result of script syntax parsing device unit, generates the printer command maker unit of print command.
2. according to the template implement device of the variable data print of claim 1, it is characterized in that said template file is for describing the script file of layout container unit, this script file is made up of XML and RTF two parts; Said XML partly comprises page info, data source, bar code, literal, figure and image.
3. according to the template implement device of the variable data print of claim 2, it is characterized in that said page data comprises page size information; The cutting line positional information; The positional information that comprises circle, rectangle, ellipse, these figures of straight line; Thickness, size and colouring information; The bar code positional information; Size, information such as barcode types; The position of image and size information.
4. according to the template implement device of the variable data print of claim 2, it is characterized in that said data source comprises that user, password, database-driven describe and these attributes of database-name.
5. according to the template implement device of the variable data print of claim 2, it is characterized in that said bar code comprises these attributes of barcode types, position, size, data and expression formula.
6. according to the template implement device of the variable data print of claim 2, it is characterized in that said literal comprises these attributes of position, size and expression formula.
7. according to the template implement device of the variable data print of claim 2, it is characterized in that said figure comprises the attribute information of circle, ellipse, rectangle, these figures of straight line.
8. according to the template implement device of the variable data print of claim 2, it is characterized in that said image refers to the filename of jpg, tiff etc., these information of picture position and expression formula.
9. according to the template implement device of the variable data print of claim 2, it is characterized in that, said template file resolver also be provided with one generate pdf document through the information and the variable data that read in the layout container unit pdf document maker unit.
10. according to the application process of the template implement device of the variable data print of claim 1, it is characterized in that this method comprises the steps:
SA: template file generates;
SB: template file is resolved;
Said template file generates step and also comprises:
SA1: the layout manager unit reads page data and data source, generates the layout item and sends to layout container unit and drawing unit;
SA2: drawing unit receives the layout item that sends the layout manager unit, draws out with the GUI form;
SA3: the template generator unit reads the layout item information of layout container, derives template file.
Said template file analyzing step also comprises:
SB1: the data source information in the template file resolver resolves template file connects database, and analysis result is sent to layout manager;
SB2: layout manager arrangement analysis result becomes the layout item, and the layout item is stored in the layout container and sends to drawing unit and the syntax parsing device;
SB3: call drawing unit, draw the layout object;
SB4: the syntax parsing device is resolved the expression formula attribute in the layout item, and the data source of resolving the layout item simultaneously indicates, and the record to database matees one by one then, generates print command or PDF and creates instruction;
SB5: call print unit and print command is sent to printer or call PDF generation unit generation pdf document.
CN2011102946921A 2011-09-30 2011-09-30 Variable-data printing template realization device and application method for same Pending CN102360274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102946921A CN102360274A (en) 2011-09-30 2011-09-30 Variable-data printing template realization device and application method for same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102946921A CN102360274A (en) 2011-09-30 2011-09-30 Variable-data printing template realization device and application method for same

Publications (1)

Publication Number Publication Date
CN102360274A true CN102360274A (en) 2012-02-22

Family

ID=45585608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102946921A Pending CN102360274A (en) 2011-09-30 2011-09-30 Variable-data printing template realization device and application method for same

Country Status (1)

Country Link
CN (1) CN102360274A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663198A (en) * 2012-04-18 2012-09-12 上海方正数字出版技术有限公司 Method and system for designing and manufacturing printed matter on line by combining background and foreground of web
CN103268324A (en) * 2013-04-26 2013-08-28 何富友 Automatic printing method and system for bus stop sign boards
CN103310291A (en) * 2012-03-14 2013-09-18 金蝶软件(中国)有限公司 Method and device for realizing bill flow based on bar code scanning
CN103377181A (en) * 2012-04-20 2013-10-30 佳能株式会社 Typesetting method and typesetting equipment
CN103455290A (en) * 2013-09-06 2013-12-18 苏州百慧华业精密仪器有限公司 Visio document-based general report template print method
CN104175727A (en) * 2013-05-24 2014-12-03 精工爱普生株式会社 Printing apparatus, printing control system and control method of the printing apparatus
CN104571977A (en) * 2014-12-05 2015-04-29 北京赛德高科铁道电气科技有限责任公司 Report printing method and system based on HTML (Hyper Text Markup Language) template
CN106020744A (en) * 2012-04-10 2016-10-12 精工爱普生株式会社 Data processing apparatus and control method of data processing apparatus
CN106598510A (en) * 2016-11-18 2017-04-26 福建星网视易信息系统有限公司 Method and device compatible with two print modes
CN106779000A (en) * 2016-12-07 2017-05-31 北京慧眼智行科技有限公司 A kind of code figure editor and generation method and system
CN107145312A (en) * 2017-04-27 2017-09-08 广州慧扬健康科技有限公司 Semi-automatic printing masterplate designer based on electronic health record Form Designer
CN107423004A (en) * 2017-06-20 2017-12-01 上海慧银信息科技有限公司 The method and POS terminal of POS terminal printed tickets
CN107451103A (en) * 2016-03-31 2017-12-08 阿里巴巴集团控股有限公司 Template for displaying and amending method and equipment
CN108733332A (en) * 2018-06-19 2018-11-02 山东浪潮通软信息科技有限公司 A kind of general printing template Metadata design method
CN110287429A (en) * 2019-06-28 2019-09-27 百度在线网络技术(北京)有限公司 Data analysis method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828518A (en) * 2005-03-04 2006-09-06 佳能株式会社 Layout processing method, information processing apparatus
US7249319B1 (en) * 2003-12-22 2007-07-24 Microsoft Corporation Smartly formatted print in toolbar
CN102165410A (en) * 2008-01-31 2011-08-24 惠普开发有限公司 Printing structured documents

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7249319B1 (en) * 2003-12-22 2007-07-24 Microsoft Corporation Smartly formatted print in toolbar
CN1828518A (en) * 2005-03-04 2006-09-06 佳能株式会社 Layout processing method, information processing apparatus
CN102165410A (en) * 2008-01-31 2011-08-24 惠普开发有限公司 Printing structured documents

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310291A (en) * 2012-03-14 2013-09-18 金蝶软件(中国)有限公司 Method and device for realizing bill flow based on bar code scanning
CN103310291B (en) * 2012-03-14 2017-11-24 金蝶软件(中国)有限公司 The implementation method and device of bill flow based on bar code scan
CN106020744A (en) * 2012-04-10 2016-10-12 精工爱普生株式会社 Data processing apparatus and control method of data processing apparatus
CN102663198A (en) * 2012-04-18 2012-09-12 上海方正数字出版技术有限公司 Method and system for designing and manufacturing printed matter on line by combining background and foreground of web
CN103377181A (en) * 2012-04-20 2013-10-30 佳能株式会社 Typesetting method and typesetting equipment
CN103268324B (en) * 2013-04-26 2017-05-10 何富友 Automatic printing method and system for bus stop sign boards
CN103268324A (en) * 2013-04-26 2013-08-28 何富友 Automatic printing method and system for bus stop sign boards
CN104175727A (en) * 2013-05-24 2014-12-03 精工爱普生株式会社 Printing apparatus, printing control system and control method of the printing apparatus
CN103455290A (en) * 2013-09-06 2013-12-18 苏州百慧华业精密仪器有限公司 Visio document-based general report template print method
CN104571977A (en) * 2014-12-05 2015-04-29 北京赛德高科铁道电气科技有限责任公司 Report printing method and system based on HTML (Hyper Text Markup Language) template
CN107451103A (en) * 2016-03-31 2017-12-08 阿里巴巴集团控股有限公司 Template for displaying and amending method and equipment
CN107451103B (en) * 2016-03-31 2022-04-22 阿里巴巴集团控股有限公司 Template display and modification method and device
CN106598510A (en) * 2016-11-18 2017-04-26 福建星网视易信息系统有限公司 Method and device compatible with two print modes
CN106779000A (en) * 2016-12-07 2017-05-31 北京慧眼智行科技有限公司 A kind of code figure editor and generation method and system
CN107145312A (en) * 2017-04-27 2017-09-08 广州慧扬健康科技有限公司 Semi-automatic printing masterplate designer based on electronic health record Form Designer
CN107423004A (en) * 2017-06-20 2017-12-01 上海慧银信息科技有限公司 The method and POS terminal of POS terminal printed tickets
CN108733332A (en) * 2018-06-19 2018-11-02 山东浪潮通软信息科技有限公司 A kind of general printing template Metadata design method
CN108733332B (en) * 2018-06-19 2021-04-16 浪潮通用软件有限公司 Universal printing template metadata design method
CN110287429A (en) * 2019-06-28 2019-09-27 百度在线网络技术(北京)有限公司 Data analysis method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102360274A (en) Variable-data printing template realization device and application method for same
US7434160B2 (en) PDF document to PPML template translation
US8438476B2 (en) Dynamic variable-content publishing
US8924841B2 (en) Variable data printing
US9201845B2 (en) XML printer system
CN100478868C (en) Information processing apparatus and control method thereof
CN100478867C (en) Information processing apparatus and control method thereof
US8294942B2 (en) Data processing apparatus, image forming apparatus, and computer program
US20060138227A1 (en) XML printer system
US20070055929A1 (en) Templates for variable data printing
US20040015782A1 (en) Templating method for automated generation of print product catalogs
US20100318897A1 (en) Method and apparatus for processing document conforming to docbase standard
CN110865775B (en) Printing method for online design and preview based on WEB
CN104239284A (en) Method and device for automatic image-text composition
US20070055925A1 (en) Themes for variable data printing
US20070067336A1 (en) Electronic publishing system and method for managing publishing requirements in a neutral format
CN102779118A (en) Paper typesetting method and system
US8381099B2 (en) Flows for variable-data printing
CN106886551A (en) A kind of method and device of utilization markup language display image
US20050125724A1 (en) PPML to PDF conversion
JP2009169810A (en) Authoring device
JP2020518884A (en) System and method for cropping an image
US8904280B2 (en) Recursive flows in variable-data printing document templates
JP2006092462A (en) Automatic conversion system for electronic book content and construction of electronic book shared database
JP2004326567A (en) Table content formation support system, method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120222