CN112230870B - Method and device for printing form data - Google Patents

Method and device for printing form data Download PDF

Info

Publication number
CN112230870B
CN112230870B CN202011419827.8A CN202011419827A CN112230870B CN 112230870 B CN112230870 B CN 112230870B CN 202011419827 A CN202011419827 A CN 202011419827A CN 112230870 B CN112230870 B CN 112230870B
Authority
CN
China
Prior art keywords
printing
line
page
data
items
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011419827.8A
Other languages
Chinese (zh)
Other versions
CN112230870A (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.)
Zhongbo Information Technology Institute Co ltd
Original Assignee
Zhongbo Information Technology Institute 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 Zhongbo Information Technology Institute Co ltd filed Critical Zhongbo Information Technology Institute Co ltd
Priority to CN202011419827.8A priority Critical patent/CN112230870B/en
Publication of CN112230870A publication Critical patent/CN112230870A/en
Application granted granted Critical
Publication of CN112230870B publication Critical patent/CN112230870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1205Improving or facilitating administration, e.g. print management resulting in increased flexibility in print job configuration, e.g. job settings, print requirements, job tickets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1208Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • G06F3/1255Settings incompatibility, e.g. constraints, user requirements vs. device capabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • G06F3/1257Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention discloses a method and a device for printing form data, which belong to the technical field of big data, and comprise the steps that a client acquires a printing service and a printing data source to be handled, defines basic printing parameters of a printing template, edits line printing forms and merging items, a printing service end assigns values and corrects the basic printing parameters, performs line printing form configuration, marks line printing form names, calculates position coordinates of all printing item areas, calculates the positions of all printing lines and completes a basic printing function; the method and the device for printing the data on the browser can rapidly customize the data printing with relatively complex tabular layout.

Description

Method and device for printing form data
Technical Field
The invention belongs to the technical field of big data, and relates to a method and a device for printing form data.
Background
At present, the application of the Internet is popularized to various aspects of daily life, such as catering, hotels, supermarkets and the like. Printing (such as tickets, certificates and the like) on a network terminal is common application, the printing data is basically in a form of a table, the catering tickets are shown in the attached drawing 2, the hotel admission tickets are shown in the attached drawing 3, the data can be texts, lines, bar codes, two-dimensional codes and the like, and the frame of the table can be explicit or implicit.
Most of applications on the network terminal adopt a browser printing mode, which is simple and convenient, but has obvious defects: the printing position cannot be accurately positioned, the font style, the line spacing and the margin can not be quickly and flexibly modified, and a set of front-end page printing script needs to be rewritten when a new printing format is customized.
Because the type of the browser used by the user cannot be limited, the printing methods and effects of different browsers are different, and the compatibility of the front-end JS code on different browsers also causes problems; back-end batch printing is not supported; if a plurality of printers are connected to the network terminal, page printing is troublesome.
Disclosure of Invention
The invention aims to provide a method and a device for printing form data, which solve the problem of printing compatibility of the existing browser, solve the problem that printing parameters cannot be modified at any time during browser printing, and solve the technical problem that printing formats cannot be flexibly and quickly modified and customized during browser printing.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method of printing form data comprising the steps of:
step 1: the method comprises the steps that a client side obtains a printing service and a printing data source to be transacted, defines basic printing parameters, an editing line printing style and a merging item of a printing template, and generates a preset printing template;
step 2: the method comprises the steps that a client submits a preset printing template to a printing server, the printing server is connected with printing equipment to obtain attributes of the printing equipment, assignment and correction are carried out on basic printing parameters, and the width and the height of a printing page defined by the printing template and the width and the height of each printing font in a font set are obtained;
and step 3: the printing server side performs line printing style configuration;
and 4, step 4: marking the label name of the line printing style and the attributes of the page head, the page tail and the page body by the printing server side according to the line printing style defined by the printing template for all data lines in the printing data;
and 5: the printing server side calculates the position coordinates of effective printing areas of all printing items and printing line segments in a single printing page by using a preset printing template and a printing data line marked with a line printing style label name, and calculates the total number of printing pages and the page where the printing data is located;
step 6: the printing server side completes the basic printing function;
and 7: and after receiving the print preview request of the client, the print server sends the print preview to the client for the user to check.
Preferably, when step 1 is executed, the preset printing template comprises a printing device name, a font and a printing resolution;
when the step 2 is executed, the printing server is connected with printing equipment according to the name of the printing equipment defined in the preset printing template, and the size of the self-defined printing paper is corrected;
and the printing server acquires the width and the height of the corresponding font in the printing equipment according to the font and the printing resolution defined by the printing template, and assigns values to the defined font parameters.
Preferably, when step 3 is executed, the line printing style configuration specifically includes the following steps:
step A1: the frame parameters are defined by adopting binary corresponding values: setting a binary number 'xxxx' with 4 bits, wherein x takes a value of 1 or 0, the 'xxxx' respectively represents the upper side, the lower side, the left side and the right side of a rectangular frame according to the sequence from the high bit to the low bit, 1-represents that the side is printed, and 0-represents that the side is not printed;
step A2: setting line height parameters as selectable items, when line heights are not defined, calculating the line heights by adopting a default line height calculation rule according to fonts of printed texts, and when the line heights are defined, taking the larger value of the default calculated line heights and the defined line heights as the line heights;
step A3: the text alignment mode is divided into: left alignment, middle alignment and right alignment, and the line alignment mode is divided into: upper alignment, middle alignment and lower alignment, the line pattern is divided into: and the thickness of the solid line and the thickness of the dotted line are 0-2.
Preferably, in executing step 4, the print data is in the form of a row and a column, each row of data is marked with an upper line print style label name, and the length of the in-line print item data list should be equal to the number of print items defined by the line print style in the corresponding row print style label name, and the order is the same.
Preferably, when step 5 is executed, the specific steps of calculating the effective printing area position coordinates of all the printing items and the printing line segments in a single printing page are as follows:
step B1: sequentially taking out data line by line from a printing data source, setting a line printing line of the taken out data, and calculating the abscissa of each printing item and cell, the width of the printing item, the width of a defined font and a line change symbol in the printing data according to the margin defined by a preset printing template, the width ratio of each printing item defined in a line style and the distance of columns;
step B2: dividing the printing item text into N lines according to the printing item width calculated in the step B1, the defined font width and the line feed character in the printing data, wherein 1 ≦ N, multiplying the height of the defined font to obtain the height of the printing item text, calculating the heights of all printing items in the printing line to obtain the maximum value in the heights of the printing items, if no line height is defined, adopting the maximum value as the line height, otherwise, comparing the line height defined by the printing line style, and taking the maximum value as the line height of the line;
step B3: calculating the ordinate of the printing item in the line according to the height, the top margin and the line spacing of the previous line and the height calculated in the step B2;
calculating the vertical coordinates of the printing items and the unit cells in the line according to the vertical coordinates of the bottom edge of the previous line, namely the upper edge distance of the page for the first line, the line spacing and the line height of the line, and when the line spacing and the column spacing are equal to zero, the position of the printing item area is the position of the unit cell;
and calculating the initial line number and the margin of the page body according to the attributes of the head, the body and the tail of the line of characters, and calculating the initial line number of the tail of the page, wherein the margin of the page body is defined as the height minus the margin of the page.
Preferably, when step 5 is executed, the method further includes calculating the position of the merged print item, and specifically includes the following steps:
step D1: using ID identification for the printing items needing to participate in merging, setting the ID to be not less than 1 at the moment, setting the ID to be equal to 0 at the moment without merging the default ID identification of the printing items, and scanning all the printing items to determine the printing items participating in merging when the positions of all the printing items are calculated;
step D2: acquiring the row number and the column number of the combined printing items, arranging the printing items participating in the combination from small to large according to the row number, and judging whether the row numbers are continuous or not, wherein the non-continuous combination is illegal;
step D3: the position coordinates of the merged item are obtained from the position coordinates of the head and the tail 2 printing items, and the printing items and the cells participating in merging are deleted after merging;
scanning all the printing items and the unit cells obtained by calculation, taking the printing items and the unit cells with the line numbers from 0 to the initial line number of the page body as page heads, and taking the printing items and the unit cells with the initial line number of the page tail to the maximum line number as page tails;
scanning the cells and printing items behind the initial line number of the page body, determining whether the line needs to be changed or not according to the upper margin of the page body, the lower margin of the page body, the coordinate positions of the printing items and the cells, calculating a vertical offset according to the vertical coordinate of the initial line of the page body after page changing, adding or subtracting the offset to or from all subsequent unprocessed printing items and the vertical coordinate of the cells, and updating the initial line number of the page body to be the current line number after page changing;
preferably, all cells in the page are scanned, and all line segments to be printed are determined according to which frames defined in the printing template need to be displayed. And (4) overlapping edges exist in adjacent cells, all the line segments needing to be printed are traversed, and the line segments which are repeatedly printed are deleted.
Calling a corresponding basic printing method according to the data type and the printing area coordinates of the unit item, and when the data type of the unit item is a page number type, replacing the wildcard characters with the total page number and the page number and then printing; when the data type of the unit item is a two-dimensional code type, converting the text into a two-dimensional code graph and then printing the two-dimensional code graph; and when the data type of the unit item is a bar code type, converting the text into a bar code graph and then printing the bar code graph.
Preferably, when step 7 is executed, the printing server transforms the coordinate system of the printing device into the printing coordinate position of the screen coordinate system, prints the printing coordinate position into a BMP picture by using the memory, converts the BMP picture into a JPG picture, encodes the JPG picture by BASE64, and sends the JPG picture to the client for display.
A device for printing form data comprises a client, a printing service end and printing equipment, wherein the client and the printing service end are servers, the client uses a WEB page, the printing service end provides an HTTP service interface, the client interacts data with the printing service end in a POST mode or a GET mode, the interaction data adopts JSON format data or XML format data, and the printing service end is connected with the printing equipment through a network cable.
The invention relates to a method and a device for printing form data, which solve the problems of printing compatibility of the existing browser, printing parameters of the browser cannot be modified at any time, and the technical problem that the printing format of the browser cannot be flexibly and rapidly modified and customized. And marking the data to be printed with a printing template name, printing an uplink printing style label on each line of data, and submitting the data to a printing service to finish printing preview and printing. The method greatly simplifies printing codes, realizes printing by adopting data driving, and only attaches printing labels to the printing data with attention. The method solves the problem of compatibility of browser printing, and flexibly and conveniently adjusts the printing format.
Drawings
FIG. 1 is a schematic flow diagram of the process of the present invention;
FIG. 2 is a sheet of a restaurant ticket printed using the present invention;
FIG. 3 is a diagram illustrating a print style template for a configuration line of a hotel check-in list and print style labels for marking lines of data of various lines according to an embodiment of the present invention;
FIG. 4 is a first page of a hotel check-in and check-out configuration line print style template, a line data annotation line print style label and a page head and page tail according to an embodiment of the present invention;
FIG. 5 shows an embodiment of the present invention, in which a line print style template, line print style labels of data labels of various lines, and a second page of a beginning page and a tail page are configured for a hotel check-in and check-out bill;
FIG. 6 is a diagram of an implementation apparatus based on a WEB client according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a printed page processing of an embodiment of the present invention;
FIG. 8 is a flowchart of print item and print line segment coordinate calculation and pagination processing according to an embodiment of the present invention.
Detailed Description
For those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be described in detail below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, belong to the scope of the present invention.
Example 1:
as shown in fig. 1-8, a method of printing form data includes the steps of:
step 1: the method comprises the steps that a client side obtains a printing service and a printing data source to be transacted, defines basic printing parameters, an editing line printing style and a merging item of a printing template, and generates a preset printing template;
step 2: the method comprises the steps that a client submits a preset printing template to a printing server, the printing server is connected with printing equipment to obtain attributes of the printing equipment, assignment and correction are carried out on basic printing parameters, and the width and the height of a printing page defined by the printing template and the width and the height of each printing font in a font set are obtained;
and step 3: the printing server side performs line printing style configuration;
and 4, step 4: marking the label name of the line printing style and the attributes of the page head, the page tail and the page body by the printing server side according to the line printing style defined by the printing template for all data lines in the printing data;
and 5: the printing server side calculates the position coordinates of effective printing areas of all printing items and printing line segments in a single printing page by using a preset printing template and a printing data line marked with a line printing style label name, and calculates the total number of printing pages and the page where the printing data is located;
step 6: the printing server side completes the basic printing function;
the basic printing function includes: text printing, line printing, bar code printing, two-dimensional code printing and picture printing.
And 7: and after receiving the print preview request of the client, the print server sends the print preview to the client for the user to check.
Preferably, when step 1 is executed, the preset printing template comprises a printing device name, a font and a printing resolution;
when the step 2 is executed, the printing server is connected with printing equipment according to the name of the printing equipment defined in the preset printing template, and the size of the self-defined printing paper is corrected;
and the printing server acquires the width and the height of the corresponding font in the printing equipment according to the font and the printing resolution defined by the printing template, and assigns values to the defined font parameters.
Preferably, when step 3 is executed, the line printing style configuration specifically includes the following steps:
step A1: the frame parameters are defined by adopting binary corresponding values: setting a binary number 'xxxx' with 4 bits, wherein x takes a value of 1 or 0, the 'xxxx' respectively represents the upper side, the lower side, the left side and the right side of a rectangular frame according to the sequence from the high bit to the low bit, 1-represents that the side is printed, and 0-represents that the side is not printed;
step A2: setting line height parameters as selectable items, when line heights are not defined, calculating the line heights by adopting a default line height calculation rule according to fonts of printed texts, and when the line heights are defined, taking the larger value of the default calculated line heights and the defined line heights as the line heights;
step A3: the text alignment mode is divided into: left alignment, middle alignment and right alignment, and the line alignment mode is divided into: upper alignment, middle alignment and lower alignment, the line pattern is divided into: and the thickness of the solid line and the thickness of the dotted line are 0-2.
Preferably, in executing step 4, the print data is in the form of a row and a column, each row of data is marked with an upper line print style label name, and the length of the in-line print item data list should be equal to the number of print items defined by the line print style in the corresponding row print style label name, and the order is the same.
Preferably, when step 5 is executed, the specific steps of calculating the effective printing area position coordinates of all the printing items and the printing line segments in a single printing page are as follows:
step B1: sequentially taking out data line by line from a printing data source, setting a line printing line of the taken out data, and calculating the abscissa of each printing item and cell, the width of the printing item, the width of a defined font and a line change symbol in the printing data according to the margin defined by a preset printing template, the width ratio of each printing item defined in a line style and the distance of columns;
step B2: dividing the printing item text into N lines according to the printing item width calculated in the step B1, the defined font width and the line feed character in the printing data, wherein 1 ≦ N, multiplying the height of the defined font to obtain the height of the printing item text, calculating the heights of all printing items in the printing line to obtain the maximum value in the heights of the printing items, if no line height is defined, adopting the maximum value as the line height, otherwise, comparing the line height defined by the printing line style, and taking the maximum value as the line height of the line;
step B3: calculating the ordinate of the printing item in the line according to the height, the top margin and the line spacing of the previous line and the height calculated in the step B2;
calculating the vertical coordinates of the printing items and the unit cells in the line according to the vertical coordinates of the bottom edge of the previous line, namely the upper edge distance of the page for the first line, the line spacing and the line height of the line, and when the line spacing and the column spacing are equal to zero, the position of the printing item area is the position of the unit cell;
and calculating the initial line number and the margin of the page body according to the attributes of the head, the body and the tail of the line of characters, and calculating the initial line number of the tail of the page, wherein the margin of the page body is defined as the height minus the margin of the page.
Preferably, when step 5 is executed, the method further includes calculating the position of the merged print item, and specifically includes the following steps:
step D1: using ID identification for the printing items needing to participate in merging, setting the ID to be not less than 1 at the moment, setting the ID to be equal to 0 at the moment without merging the default ID identification of the printing items, and scanning all the printing items to determine the printing items participating in merging when the positions of all the printing items are calculated;
step D2: acquiring the row number and the column number of the combined printing items, arranging the printing items participating in the combination from small to large according to the row number, and judging whether the row numbers are continuous or not, wherein the non-continuous combination is illegal;
step D3: the position coordinates of the merged item are obtained from the position coordinates of the head and the tail 2 printing items, and the printing items and the cells participating in merging are deleted after merging;
scanning all the printing items and the unit cells obtained by calculation, taking the printing items and the unit cells with the line numbers from 0 to the initial line number of the page body as page heads, and taking the printing items and the unit cells with the initial line number of the page tail to the maximum line number as page tails;
scanning the cells and printing items behind the initial line number of the page body, determining whether the line needs to be changed or not according to the upper margin of the page body, the lower margin of the page body, the coordinate positions of the printing items and the cells, calculating a vertical offset according to the vertical coordinate of the initial line of the page body after page changing, adding or subtracting the offset to or from all subsequent unprocessed printing items and the vertical coordinate of the cells, and updating the initial line number of the page body to be the current line number after page changing;
and scanning all cells in the page, and determining all line segments needing to be printed according to which frames defined in the printing template need to be displayed. And (4) overlapping edges exist in adjacent cells, all the line segments needing to be printed are traversed, and the line segments which are repeatedly printed are deleted.
Calling a corresponding basic printing method according to the data type and the printing area coordinates of the unit item, and when the data type of the unit item is a page number type, replacing the wildcard characters with the total page number and the page number and then printing; when the data type of the unit item is a two-dimensional code type, converting the text into a two-dimensional code graph and then printing the two-dimensional code graph; and when the data type of the unit item is a bar code type, converting the text into a bar code graph and then printing the bar code graph.
Preferably, when step 7 is executed, the printing server transforms the coordinate system of the printing device into the printing coordinate position of the screen coordinate system, prints the printing coordinate position into a BMP picture by using the memory, converts the BMP picture into a JPG picture, encodes the JPG picture by BASE64, and sends the JPG picture to the client for display.
As shown in fig. 6, the client of this embodiment uses a currently popular WEB page, the client interacts with the Print service through POST (or GET, etc.), the data interaction adopts JSON format (not limited to XML, etc. other data format), and the printing device uses "Microsoft Print to PDF".
The printing service is deployed in a WINDOWS system, the HTTP interface service is realized by adopting a Microsoft MFC development kit and C + +, and the CDC printing equipment provided by the MFC development kit realizes a basic printing method: DrawText (print text), MoveTo, LineTo (print line segment), and the like.
The server can be connected with a plurality of printing devices of various types, such as a USB printer, a network printer and the like; besides the HTTP interface, the server can also provide other service interfaces such as SOAP, WEBSOCKET and the like; the client is not limited to a WEB client, and can call the printing service and realize batch background printing as long as the data format meets the requirements of the invention.
The printing server provides 4 kinds of functional interfaces, which are respectively as follows: 1-obtaining basic parameters of a printing template, 2-uploading the printing template, 3-submitting labeled printing data, and 4-submitting the labeled printing data to request printing preview.
The interface 1 realizes the setting of basic parameters of the printing template, and firstly, a client submits a request data packet with the following format:
{"printemplete": "RunHotelIn", "printer": {"name": "Microsoft Print to PDF",
"papersize": A4,"resolution": 600,"orientation": 2,"pagewidth":0,"pageheight": 0},
"fonts" [ { "name": font1"," family ": black body", "size": 150 "," textheight ": 0", "textwidth": 0 },
{ "name": font2"," family ": Song body", "size": 100 "," textheight ": 0", "textwidth": 0 } ] }
The template name (printcomplete) is named "RunHotelIn", the printing device name is "Microsoft Print to PDF", the printing page size a4, the printing resolution is 600, the printing direction is 2 (1-portrait, 2-landscape), the printing page width and height are undetermined (initial value is 0), the font set defined herein uses 2 fonts named "font1" and "font2" respectively, the font sizes are 150 and 100 respectively, and the font width and height are undetermined (initial value is 0).
After receiving the request, the server connects the printing device "Microsoft Print to PDF", sets the printing page as a4, the resolution as 600, and the printing direction as the horizontal direction, and then reads the width of the basic parameter page of the printing device and the size of each font, and the unit of the value is pixel. The returned result data format is as follows:
{"printemplete": "RunHotelIn", "printer": {"name": "Microsoft Print to PDF",
"papersize": A4,"resolution": 600,"orientation": 2,"pagewidth":7016,"pageheight":4961},
"fonts" [ { "name": font1"," family ": black body", "size": 150 "," textheight ": 125", "textwidth": 63 }, { "name": font2"," family ": sonbody", "size": 100 "," textheight ": 83", "textwidth": 42 } ] }
S100 in fig. 1 is implemented after the call of interface 1 is completed, and S101 in fig. 1 needs to be completed according to the print service requirement before the call of interface 2 is completed. In this embodiment, the hotel check-in receipt and the hotel check-in statement in fig. 3, 4 and 5 are used as the printing service requirements, and two printing templates are respectively formulated: "RunHotelIn" and "CustomerAccount".
The RunHotelIn printing template is shown below:
Figure DEST_PATH_IMAGE001
Figure DEST_PATH_IMAGE002
the CustomerAccount print template is as follows:
Figure DEST_PATH_IMAGE003
Figure DEST_PATH_IMAGE004
the printing format of the hotel check-in receipt is as follows: the method is characterized in that the method comprises the following steps of single page, data types including text, lines, bar code account numbers and hotel website two-dimensional codes, and three fonts are used: the system comprises a capital amount, single names, guest signatures and other texts, wherein data lines are provided with borders and no borders, and data lines are provided with segmentation lines and merging items.
In accordance with the above printing format requirements, a configured printing template ("RunHotelIn"), font set ("Fonts") defines three Fonts: "Font1", "Font2", and "Font 3", the line print style defines 12, of which "style 10" and "style 11" are used for the merge item.
The line printing style standard format defined by the invention is as follows:
style name (pen, etc.)
Integer values (0-15), line frames, acting on all print items, optional items, in a line, with a default value of 0 when not configured
Integer values (0-2), optional items, default values of 0 when not configured
"height". Int. The integer value 0, optional, is used as default value 0 when unconfigured
"items": [{
Integer values (1-5), data types, respectively: text, lines, bar codes, two-dimensional codes and page numbers
Merge-1 and positive integer values, merge item identification, optional item, print item participating in merge using a positive integer, default-1 when unconfigured, identification not participating in merge
Integer value (0-15), cell border, optional item, default value 0 when not configured, row border not used when not 0
Font name, must be defined in the template base parameter font set
Integer value (0-100) of xln, occupying width ratio
Integer value (0-2), alignment mode, data type is text mark left, middle, right, line mark up, middle, down, etc
"lineWidth" means that integer value (0-2), line width and data type must be matched when the line is a line
"lineStyle". Int. values (0-2), line type, must be matched when the data type is line
}]}
Line print style "style 7" in interlaced configuration, line parameters: height =10, edge =0, i.e., line height =10, no line frame, and configures one print item: the data type is line, the line width =0, the occupation width =100 (whole line width), the line type and the alignment take any value of 0-2, and the configuration printing forms a sub-interlaced line with the height of 10.
The configuration of the cell longitudinal combination is as in fig. 3, the 4 th column of the 5 th row and the 3 rd column of the 6 th row are combined, and the 5 th column of the 5 th row and the 4 th column of the 6 th row are combined. The requirements for vertical merging are: in adjacent rows, the abscissa of the cells participating in merging must be equal, and the cells participating in merging are configured with the same merging identifier. Therefore, the line print styles "style 4" and "style 5" configure "merge = 0", "merge = 2", and 2 line print styles use the same aspect ratio "xln = 60", "xln = 67", and "xln = 100". After merging, 2 new line printing styles "style 10" and "style 11" are defined for use by the merged item.
The cells are transversely combined and not really combined (virtual combination), only the overlapped edges of the cells participating in combination are not printed by configuring frame parameters, and the printing position is kept unchanged. And performing transverse merging on the merged item after the longitudinal merging, and configuring "edge = 14" in "style 10" and "edge = 13" in "style 11" to achieve the effect that the items are in the same cell as the "capital sum" and "sanbai round" in fig. 3.
The underlined configurations are "guest signature" in fig. 3 and "order remark", "cashier" in fig. 5. There are two configuration methods, one is to configure the data type of the print item as a line, and the alignment is the fourth print item configuration of "style 0" in the following manner; the other is that the border parameter of the configuration cell is 4, i.e. only the lower border, such as "style 5", is displayed.
After the printing template configuration is completed, the printing service interface 2 is called to upload the printing template, the printing service receives the printing template, and the validity of the printing template and the correctness of parameter values are verified by using the rule of the template configuration, such as: value range, etc.; after the verification is passed, the template name is used as a file name and is saved in a hard disk of a server (or a database and the like), meanwhile, a line printing style list (Lst-LineStyle) is opened in a memory, and the printing template is saved for subsequent use.
As in S102 in fig. 1, the print data must be labeled with a line style label before printing using the previously configured print template. And respectively labeling the data of the hotel check-in receipt and the data of the invoice.
"printemplate" indicates the template name used by the print data, "head" marks which data lines belong to the fixed page head, "tail" marks which data lines belong to the fixed page tail, "body" marks which data lines belong to the page body, "style" marks the line style name used by the line, and "items" lists the printed data items sequentially from left to right, ensuring that the number of the data items is the same as the number and the sequence of the print items configured in the line style.
After S102 is completed, whether the printing service interface 3 is called to request printing or the interface 4 is called to request printing preview, the printing core algorithm is completed S103, then S104 is executed to call the basic printing method, and finally S105 is executed to preview.
The S103 print core algorithm is explained in detail below with reference to fig. 8. The algorithm opens up several pools of data in memory: a pre-pagination cell list (Vec-Linecells) and a print item list (Vec-LineItems) for storing intermediate results, wherein the cell structure is defined by: the system comprises a frame, a row number, a column number, a combined identifier, an upper left point coordinate and a lower right point coordinate; the print item structure is defined by: frame, line number, column number, merging identifier, upper left point coordinate, lower right point coordinate, data type, alignment mode, font, line width and line type. A print page list (Lst-printPage) for storing the result of the algorithm processing and printing, wherein a print page data structure is defined by: total number of pages, current page number, list of print items, and list of cells. The current print page prints a line segment list (Vec-LineSeg), and a data structure defines coordinates of both ends of the line segment.
S200, printing initialization, emptying Vec-LineColls and Vec-LineItems, starting a page body line number =0, starting upper margin of the page body is equal to upper margin of the page, lower margin of the page body is equal to lower margin of the page, traversing printing data starting line number =0, line top height of a current processing line (distance between the upper margin of the line and the upper margin of the page) =0, and the action domains of the parameters are all the following steps.
S201, processing the first line of the page in the print data, taking out the first line of the data from the first line of the print data, delivering the line number, the line top height, the line print style name and the in-line print item list to the line data processing module S300, updating the line top height after the data processing module finishes processing and returning the line top height, adding 1 to the line number, taking out the next line of the data from the first line of the print data page, and repeating the operation until the first line of the page is processed. At this time, the height of the top of the line = the margin of the page body, and the line number = the initial line number of the page body. If there is no top line in the print data, the step is skipped.
In step S202, page-wise lines in the print data are processed in the same manner as in step S201, except that line data are sequentially extracted from page-wise lines in the print data.
And S203, processing the page tail lines in the printing data, wherein the processing step is the same as S201, except that the line data are sequentially taken out from the page tail lines of the printing data, and the initial value of the reset line top height is equal to the page height minus the page bottom margin.
S204, the tagged printing data submitted by the interface 3 is processed, and the processed intermediate results are stored in Vec-Linecells and Vec-LineItems, namely the printing item and the cell coordinate in the page body are the non-paged coordinate, and the printing item and the cell coordinate in the page head and the page tail are the page internal coordinate. The step of processing the merging item comprises the following steps:
and taking the printing style name of the merging item line and the data of the merging item from the printing data 'mergeremems', obtaining the style content (merging identification, font and the like) from Lst-LineStyle according to the printing style name, and traversing Vec-Linecells and Vec-LineItems according to the merging identification to obtain the cells and the printing items participating in merging.
Arranging the cells and the printing items participating in merging from small to large according to the line numbers respectively, failing merging if the line numbers are discontinuous, comparing whether left and right horizontal coordinates are equal, failing merging if the left and right horizontal coordinates are not equal, taking the top side coordinates of the cells and the printing items with the minimum line numbers and the bottom side coordinates of the printing items with the maximum line numbers as the coordinates of merging items after merging verification passes, enabling the line numbers of the merging items to be equal to the minimum line number, deleting the cells and the printing items participating in merging from Vec-Linecells and Vec-LineItems, and inserting the merging items into the cells and the printing items.
And S205, performing line paging on the page body, emptying a printing page list (Lst-printPage) before paging, wherein the total number sum of the initialized pages =1, the current page number no =1, the line number rowno = the initial line number of the page body, creating a list item of the new printing page, and setting the page number equal to 1. All cells with line number = rowno are taken from Vec-LineCells, all print items with line number = rowno are taken from Vec-linesites, and deleted therefrom to reduce the number of subsequent traversals.
And comparing the vertical coordinates of the top edge and the bottom edge of the taken out unit cell with the lower margin of the page body, and if the unit cell larger than the lower margin of the page body exists, the page of the line needs to be changed.
When the page needs to be changed, adding 1 to the total page number, adding 1 to the current page number, calculating the offset = the vertical coordinate of the top edge of the current line-the upper margin of the page body, scanning Vec-Linecells and Vec-LineItems, and updating the vertical coordinates of the top edge and the bottom edge of the cell and the printing item with the line number larger than the current line number and smaller than the tail line number by using the offset. Newly creating a list item of a printing page, adding cells and printing items of a page head, a page tail and a current line, and adding a current page number.
When the page does not need to be changed, the cells and the printing items of the current line are directly added into the list items of the current printing page.
And adding 1 to the line number, and repeating the operations until the line number is equal to the initial line number of the page tail, and ending the paging operation.
And S300, the line data processing is used for calculating coordinates of all cells and printing items in the line, firstly calculating the abscissa of the printing items, and then calculating line height defined by line height and line style and transmitted line top coordinates according to the data of the printing items to determine the ordinate of each printing item. The print item coordinate calculation process is as follows:
the style parameter is taken from Lst-LineStyle according to the line printing style name: line borders, line heights, and a print item style list, the line heights being initially defined by the style.
Calculating the horizontal coordinate of the cell: left abscissa = left margin when the cell is the first, and left abscissa = right abscissa of the previous cell when the cell is not the first; right abscissa = round ((page width-left margin-right margin) × aspect ratio) + left abscissa.
Print item abscissa calculation: the left abscissa = the left abscissa + column pitch of the corresponding cell, and the right abscissa = the right abscissa-column pitch of the corresponding cell.
And (4) line height calculation, namely firstly obtaining the text line number of the printing item from a line-feed character in the text data of the printing item, then calculating whether each line needs to be divided into lines according to the width of the font defined by the style and the width of the printing item, finally multiplying the total line number by the height of the font to obtain the height of the printing item, and updating the line height if the total line number is larger than the line height defined by the line style.
The incoming row top coordinate + row spacing 2+ row height = the row cell base ordinate = the new row top coordinate as the row top coordinate parameter for calculating the next row.
And finally adding the cells and the printing items with the calculated coordinates into Vec-Linecells and Vec-LineItems as printing intermediate results.
S104, executing page printing, wherein the printing work is divided into two types: one type is print item and the other type is line segment printing. After the core printing algorithm is completed in S103, the print item with the print coordinate position and the form of the cell page are stored in the print page list (Lst-PrintPage).
Calling a corresponding basic printing method according to the data type of the printing item in the page, if the printing item is of the page type, replacing a page wildcard character in a printing text by using the total page number and the page number of the printing item, wherein the total page number is equal to the length of an Lst-printPage list; the text type and the line type call DrawText, MoveTo and LineTo of CDC; the two-dimensional code type also converts the text into a two-dimensional code picture, and calls a BMP picture printing method of CDC.
And (3) printing the line frame in the page, namely clearing Vec-LineSeg, determining edges needing to be printed in four edges of the cell according to frame parameters of the printing style of the printing item line, adding the edges to a printing line segment list (Vec-LineSeg) of the current printing page, and then traversing the Vec-LineSeg to perform duplication removal on all printing line segments in the page. There are two types of deduplication: one is that the horizontal line segment is removed from the duplication, the vertical coordinate is equal to the current line segment, and other line segments of which the left end point of the horizontal coordinate is more than or equal to the current line segment and the right end point is less than or equal to the current line segment are deleted from the Vec-LineSeg; and the other is that the longitudinal line segments are subjected to de-duplication, no partial coincidence exists, and other line segments with the same end point coordinates are only required to be deleted from the Vec-LineSeg. And finally calling a line segment printing basic method to print the line segments in the Vec-LineSeg one by one.
After receiving a print preview request of a client through an interface 4, the printing service uses a printing core algorithm to process all print data and then stores the print data in a print page list (Lst-printPage), then converts the coordinates of a printing item and a cell in printing equipment into coordinates on a screen, prints a head page into a BMP picture by using memory printing, converts the BMP picture into a JPG picture, sends the coded BASE64 together with the total number of pages to the client for display, and the client realizes print preview of other pages by sending a print preview request with page number parameters.
It can be seen from this embodiment that different printing templates can be deployed at the printing server according to different printing service requirements, and the fine adjustment of the printing format details is greatly facilitated by using the print preview function in the process of customizing the printing template. The printing template file can be directly edited by customizing the printing template, and the printing template file can be automatically generated by drawing and editing the graph by adopting the currently popular HTML5+ CANVAS. In practical application, the printing format can be conveniently and flexibly adjusted by adjusting the parameters of the printing template and loading the parameters to the printing server. Therefore, the invention has good use value in table data printing
Example 2:
the apparatus for printing form data described in embodiment 2 is configured to the method for printing form data described in embodiment 1, and includes a client, a printing server, and a printing device, where the client and the printing service are both servers, the client uses a WEB page, the printing server provides an HTTP service interface, the client interacts data with the printing server in a POST mode or a GET mode, the interaction data adopts JSON format data or XML format data, and the printing server is connected to the printing device through a network cable.
The invention relates to a method and a device for printing form data, which solve the problem of printing compatibility of the existing browser, solve the problem that printing parameters (line spacing, page margin, font and line style) cannot be modified at any time during printing of the browser, and solve the technical problem that the printing format cannot be flexibly and rapidly modified and customized during printing of the browser. And marking the data to be printed with a printing template name, printing an uplink printing style label on each line of data, and submitting the data to a printing service to finish printing preview and printing. The method greatly simplifies printing codes, realizes printing by adopting data driving, and only attaches printing labels to the printing data with attention. The method solves the problem of compatibility of browser printing, and flexibly and conveniently adjusts the printing format.
In the present invention, any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (7)

1. A method of printing form data, comprising: the method comprises the following steps:
step 1: the method comprises the steps that a client side obtains a printing service and a printing data source to be transacted, defines basic printing parameters, an editing line printing style and a merging item of a printing template, and generates a preset printing template;
step 2: the method comprises the steps that a client submits a preset printing template to a printing server, the printing server is connected with printing equipment to obtain attributes of the printing equipment, assignment and correction are carried out on basic printing parameters, and the width and the height of a printing page defined by the printing template and the width and the height of each printing font in a font set are obtained;
and step 3: the printing server side performs line printing style configuration;
the line printing style configuration specifically comprises the following steps:
step A1: the frame parameters are defined by adopting binary corresponding values: setting a binary number 'xxxx' with 4 bits, wherein x takes a value of 1 or 0, the 'xxxx' respectively represents the upper side, the lower side, the left side and the right side of a rectangular frame according to the sequence from the high bit to the low bit, 1-represents that the side is printed, and 0-represents that the side is not printed;
step A2: setting line height parameters as selectable items, when line heights are not defined, calculating the line heights by adopting a default line height calculation rule according to fonts of printed texts, and when the line heights are defined, taking the larger value of the default calculated line heights and the defined line heights as the line heights;
step A3: the text alignment mode is divided into: left alignment, middle alignment and right alignment, and the line alignment mode is divided into: upper alignment, middle alignment and lower alignment, the line pattern is divided into: the thickness of the line is 0-2;
and 4, step 4: marking the label name of the line printing style and the attributes of the page head, the page tail and the page body by the printing server side according to the line printing style defined by the printing template for all data lines in the printing data;
and 5: the printing server side calculates the position coordinates of effective printing areas of all printing items and printing line segments in a single printing page by using a preset printing template and a printing data line marked with a line printing style label name, and calculates the total number of printing pages and the page where the printing data is located;
the specific steps of calculating the position coordinates of the effective printing areas of all the printing items and the printing line segments in a single printing page are as follows:
step B1: sequentially taking out data line by line from a printing data source, setting a line printing line of the taken out data, and calculating the abscissa of each printing item and cell, the width of the printing item, the width of a defined font and a line change symbol in the printing data according to the margin defined by a preset printing template, the width ratio of each printing item defined in a line style and the distance of columns;
step B2: dividing the printing item text into N lines according to the printing item width calculated in the step B1, the defined font width and the line feed character in the printing data, wherein 1 ≦ N, multiplying the height of the defined font to obtain the height of the printing item text, calculating the heights of all printing items in the printing line to obtain the maximum value in the heights of the printing items, if no line height is defined, adopting the maximum value as the line height, otherwise, comparing the line height defined by the printing line style, and taking the maximum value as the line height of the line;
step B3: calculating the ordinate of the printing item in the line according to the height, the top margin and the line spacing of the previous line and the height calculated in the step B2;
calculating the vertical coordinates of the printing items and the unit cells in the line according to the vertical coordinates of the bottom edge of the previous line, namely the upper edge distance of the page for the first line, the line spacing and the line height of the line, and when the line spacing and the column spacing are equal to zero, the position of the printing item area is the position of the unit cell;
calculating the initial line number and the margin of the page body according to the attributes of the head, the body and the tail of the text of the line, and calculating the initial line number of the tail of the page, wherein the margin of the page body is defined as the height minus the margin of the page;
step 6: the printing server side completes the basic printing function;
and 7: and after receiving the print preview request of the client, the print server sends the print preview to the client for the user to check.
2. A method of printing form data as claimed in claim 1, wherein: when step 1 is executed, the preset printing template comprises a printing equipment name, a font and a printing resolution;
when the step 2 is executed, the printing server is connected with printing equipment according to the name of the printing equipment defined in the preset printing template, and the size of the self-defined printing paper is corrected;
and the printing server acquires the width and the height of the corresponding font in the printing equipment according to the font and the printing resolution defined by the printing template, and assigns values to the defined font parameters.
3. A method of printing form data as claimed in claim 1, wherein: in executing step 4, the print data is in the form of rows and columns, each row of data marks the upper line print style label name, the length of the in-line print item data list should be equal to the number of print items defined by the line print style in the corresponding row print style label name, and the order is consistent.
4. A method of printing form data as claimed in claim 3, wherein: when step 5 is executed, the calculation of the positions of the merged printing items is further included, and the method specifically includes the following steps:
step D1: using ID identification for the printing items needing to participate in merging, setting the ID to be not less than 1 at the moment, setting the ID to be equal to 0 at the moment without merging the default ID identification of the printing items, and scanning all the printing items to determine the printing items participating in merging when the positions of all the printing items are calculated;
step D2: acquiring the row number and the column number of the combined printing items, arranging the printing items participating in the combination from small to large according to the row number, and judging whether the row numbers are continuous or not, wherein the non-continuous combination is illegal;
step D3: the position coordinates of the merged item are obtained from the position coordinates of the head and the tail 2 printing items, and the printing items and the cells participating in merging are deleted after merging;
scanning all the printing items and the unit cells obtained by calculation, taking the printing items and the unit cells with the line numbers from 0 to the initial line number of the page body as page heads, and taking the printing items and the unit cells with the initial line number of the page tail to the maximum line number as page tails;
scanning the cells and printing items behind the initial line number of the page body, determining whether the line needs to be changed or not according to the upper margin of the page body, the lower margin of the page body, the coordinate positions of the printing items and the cells, calculating the vertical offset according to the vertical coordinate of the initial line of the page body after page changing, adding or subtracting the offset to or from all subsequent unprocessed printing items and the vertical coordinate of the cells, and updating the initial line number of the page body to be the current line number after page changing.
5. A method of printing form data as claimed in claim 4, wherein: when the step 5 is executed, scanning all cells in the page, determining all line segments needing to be printed according to which frames defined in the printing template need to be displayed, traversing all the line segments needing to be printed and deleting the line segments needing to be printed repeatedly, wherein the adjacent cells have overlapped edges;
calling a corresponding basic printing method according to the data type and the printing area coordinates of the unit item, and when the data type of the unit item is a page number type, replacing the wildcard characters with the total page number and the page number and then printing; when the data type of the unit item is a two-dimensional code type, converting the text into a two-dimensional code graph and then printing the two-dimensional code graph; and when the data type of the unit item is a bar code type, converting the text into a bar code graph and then printing the bar code graph.
6. A method of printing form data as claimed in claim 1, wherein: when step 7 is executed, the printing server converts the coordinate system where the printing device is located into the printing coordinate position of the screen coordinate system, prints the coordinate position into a BMP picture by using a memory, converts the BMP picture into a JPG picture, encodes the JPG picture by BASE64, and sends the JPG picture to the client for display.
7. An apparatus for printing form data using the method of printing form data of any one of claims 1 to 6, wherein: the client and the printing service are all servers, the client uses a WEB page, the printing service provides an HTTP service interface, the client interacts data with the printing service in a POST mode or a GET mode, the interaction data adopts JSON format data or XML format data, and the printing service is connected with the printing equipment through a network cable.
CN202011419827.8A 2020-12-08 2020-12-08 Method and device for printing form data Active CN112230870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011419827.8A CN112230870B (en) 2020-12-08 2020-12-08 Method and device for printing form data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011419827.8A CN112230870B (en) 2020-12-08 2020-12-08 Method and device for printing form data

Publications (2)

Publication Number Publication Date
CN112230870A CN112230870A (en) 2021-01-15
CN112230870B true CN112230870B (en) 2021-04-06

Family

ID=74123942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011419827.8A Active CN112230870B (en) 2020-12-08 2020-12-08 Method and device for printing form data

Country Status (1)

Country Link
CN (1) CN112230870B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113256170A (en) * 2021-06-28 2021-08-13 浙江大胜达包装股份有限公司 Graph processing device and method for preprinting paper products
CN113225402B (en) * 2021-07-08 2021-09-07 飞天诚信科技股份有限公司 Working method of printing system
CN113760202A (en) * 2021-08-11 2021-12-07 广州快批信息科技有限公司 Document printing method, server, system and storage medium
CN114138214B (en) * 2022-01-27 2022-04-29 北京辰光融信技术有限公司 Method and device for automatically generating print file and electronic equipment
CN114780044A (en) * 2022-04-26 2022-07-22 北京太格时代自动化系统设备有限公司 Printing method for work ticket of high-speed railway traction substation
CN115543239A (en) * 2022-11-30 2022-12-30 北京标记万物科技有限公司 Label printing method and printing system
CN115857845B (en) * 2023-03-03 2023-04-18 畅捷通信息技术股份有限公司 Bill Bluetooth printing implementation method and system and computer storage medium
CN116560599B (en) * 2023-07-11 2023-09-22 北京普云特科技有限公司 Intelligent printing method
CN116737094B (en) * 2023-08-15 2023-10-27 北京谷器数据科技有限公司 Custom label printing method based on Vue framework

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794167A (en) * 2006-01-06 2006-06-28 无锡永中科技有限公司 Method of setting printing parameter
CN106406783A (en) * 2016-11-29 2017-02-15 北京慧眼智行科技有限公司 Label printing method and label printing plug-in
CN107402729A (en) * 2016-05-20 2017-11-28 航天信息软件技术有限公司 Printing template construction method and stencil marking method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794167A (en) * 2006-01-06 2006-06-28 无锡永中科技有限公司 Method of setting printing parameter
CN107402729A (en) * 2016-05-20 2017-11-28 航天信息软件技术有限公司 Printing template construction method and stencil marking method
CN106406783A (en) * 2016-11-29 2017-02-15 北京慧眼智行科技有限公司 Label printing method and label printing plug-in

Also Published As

Publication number Publication date
CN112230870A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN112230870B (en) Method and device for printing form data
CN109933756A (en) Image based on OCR turns shelves method, apparatus, equipment and readable storage medium storing program for executing
US20180101726A1 (en) Systems and Methods for Optical Character Recognition for Low-Resolution Documents
CN100576233C (en) Detect the direction of the character in the file and picture
US8718364B2 (en) Apparatus and method for digitizing documents with extracted region data
CN107943426B (en) Document paging printing method, document paging printing system and computer device
US10606933B2 (en) Method and system for document image layout deconstruction and redisplay
CN111626036B (en) Image-text typesetting processing method
EA004418B1 (en) Automatic barcode creation for data transfer and retrieval
US20180074999A1 (en) Systems and methods for automatically reformatting publications
CN104461483A (en) Font rendering method and device, rendering platform client and server
CN105095166A (en) Method for generating stream-type electronic book and website system
CN105760501A (en) Document format conversion method and device
US8593697B2 (en) Document processing
CN101448054A (en) Information processing device, printing device, information processing system and method
US20220269898A1 (en) Information processing device, information processing system, information processing method, and non-transitory computer readable medium
CN113190191A (en) Printing method and device
CN112906364A (en) Voucher generation method and device, electronic equipment and storage medium
CN111198664A (en) Document printing method and device, computer storage medium and terminal
CN104424174A (en) Document processing system and document processing method
CN102254204B (en) Coding method for graphemic code
CN116778032B (en) Answer sheet generation method, device, equipment and storage medium
US20080150967A1 (en) Form editing apparatus, control method, and storage medium
CN111506276A (en) Method and device for printing two-dimensional code label
CN104375846B (en) The production method and its generation device of ePrint Archive

Legal Events

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