CN109634537B - Segmentation printing method and transaction terminal - Google Patents

Segmentation printing method and transaction terminal Download PDF

Info

Publication number
CN109634537B
CN109634537B CN201811351464.1A CN201811351464A CN109634537B CN 109634537 B CN109634537 B CN 109634537B CN 201811351464 A CN201811351464 A CN 201811351464A CN 109634537 B CN109634537 B CN 109634537B
Authority
CN
China
Prior art keywords
printing
dom element
dom
creating
node
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
CN201811351464.1A
Other languages
Chinese (zh)
Other versions
CN109634537A (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.)
PAX Computer Technology Shenzhen Co Ltd
Original Assignee
PAX Computer Technology Shenzhen 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 PAX Computer Technology Shenzhen Co Ltd filed Critical PAX Computer Technology Shenzhen Co Ltd
Priority to CN201811351464.1A priority Critical patent/CN109634537B/en
Publication of CN109634537A publication Critical patent/CN109634537A/en
Application granted granted Critical
Publication of CN109634537B publication Critical patent/CN109634537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/121Facilitating exception or error detection and recovery, e.g. fault, media or consumables depleted
    • 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/1241Dividing a job according to job requirements, e.g. black/white and colour pages, covers and body of books, tabs
    • 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 provides a segmentation printing method and a transaction terminal, wherein the method comprises the following steps: creating a DOM element containing printing information, and creating an HTML transaction document according to the DOM element; judging whether an unprinted node exists in the HTML transaction document, if so, segmenting the DOM element according to a preset sequence to obtain a printing element meeting the requirement; and combining the printing elements into a printing template, and printing the printing template by calling printing equipment. The invention realizes the split printing, reduces the data volume of each printing, can reduce the printing abnormity and improves the user experience.

Description

Segmentation printing method and transaction terminal
Technical Field
The invention belongs to the technical field of financial transactions, and particularly relates to a segmentation printing method and a transaction terminal.
Background
In general, in addition to printing a transaction voucher, the financial transaction device also needs to support functions such as printing a transaction report and transaction details. Due to the continuous increase of transaction data volume, the printing content can become larger gradually, and the size of the printing buffer area and the length of printing paper of the hardware equipment are limited, so that the equipment has printing abnormity.
In summary, the prior art has a problem of abnormal printing due to excessive printing contents.
Disclosure of Invention
In view of this, embodiments of the present invention provide a segmentation printing method and a transaction terminal, so as to solve the problem in the prior art that printing is abnormal due to too much printing content.
A first aspect of an embodiment of the present invention provides a division printing method, including:
creating a DOM element containing printing information, and creating an HTML transaction document according to the DOM element;
judging whether an unprinted node exists in the HTML transaction document, if so, segmenting the DOM element according to a preset sequence to obtain a printing element meeting the requirement;
and combining the printing elements into a printing template, and printing the printing template by calling printing equipment.
A second aspect of an embodiment of the present invention provides a transaction terminal, including:
the system comprises a creating module, a document editing module and a document editing module, wherein the creating module is used for creating a DOM element containing printing information and creating an HTML transaction document according to the DOM element;
the segmentation module is used for judging whether an unprinted node exists in the HTML transaction document, and if so, segmenting the DOM element according to a preset sequence to obtain a printing element meeting the requirement;
and the printing module is used for combining the printing elements into a printing template and printing the printing template by calling printing equipment.
A third aspect of an embodiment of the present invention provides a transaction terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the division printing method as described above when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the division printing method as described above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: by creating DOM elements containing printing information and dividing the DOM elements to form a printing template and print the DOM elements, the divided printing is realized, the data volume of each printing is reduced, and the problem of abnormal printing of hardware equipment is solved; the method of combining the printing templates simplifies the complexity of typesetting, organization and the like of the printing templates, so that the printing contents are concise and beautiful, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow diagram of a method of split printing according to one embodiment of the present invention;
FIG. 2 is a schematic diagram of a transaction terminal according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a transaction terminal according to another embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The terms "comprises" and "comprising," as well as any other variations, in the description and claims of this invention and the drawings described above, are intended to mean "including but not limited to," and are intended to cover non-exclusive inclusions. For example, a process, method, or system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example 1:
fig. 1 shows an implementation flow Of a division printing method provided by an embodiment Of the present invention, where a flow execution subject Of this embodiment may be a transaction terminal, and the transaction terminal includes a payment terminal, a cash register terminal, and the like, for example, a pos (point Of sale) terminal, an ATM device, and the like.
As shown in fig. 1, a method for division printing according to an embodiment of the present invention includes:
step S101, creating a DOM element containing printing information, and creating an HTML transaction document according to the DOM element;
wherein the HTML transaction document includes a DOM element and transaction information.
Step S102, judging whether an unprinted node exists in the HTML transaction document, if so, segmenting the DOM element according to a preset sequence, and acquiring a printing element meeting the requirement;
the unprinted node refers to content which is not printed in the HTML transaction document.
The embodiment judges whether unprinted nodes exist in the HTML transaction document, if so, the steps S102-S103 are sequentially executed, and if not, the method indicates that all documents are printed and directly ends.
And step S103, combining the printing elements into a printing template, and printing the printing template by calling printing equipment.
In this embodiment, the segmentation printing is successively completed, and after the segmentation is completed once and the printing template is formed for printing, the printed DOM elements are deleted from the HTML transaction document.
After the execution of step S103 is completed, the process again proceeds to step S102 to determine whether or not there is an unprinted node. If so, steps S102-S103 are repeated. If not, the printing of all the documents is finished, and a transaction list is obtained. The transaction order may be a transaction voucher, a transaction report or transaction detail, etc.
According to the embodiment of the invention, the DOM elements containing the printing information are created and are divided to form the printing template for printing, so that the divided printing is realized, the data volume of each printing is reduced, and the problem of abnormal printing of hardware equipment is solved; the method of combining the printing templates simplifies the complexity of typesetting, organization and the like of the printing templates, so that the printing contents are concise and beautiful, and the user experience is improved.
In one embodiment of the present invention, step S101 includes:
1) creating the DOM element containing the printing information;
2) and wrapping the DOM element containing the printing information by using a standard IFrame to obtain a wrapped DOM element, and putting the wrapped DOM element into a Document object to obtain the HTML transaction Document.
In this embodiment, the HTML is HyperText Markup Language and HyperText Markup Language, and is used to organize web page contents, including text, pictures, audio/video contents, and provide semantic tags such as links, paragraphs, and lists. The HTML transaction document is a graphical page file, and the HTML transaction document in this embodiment includes transaction order data information.
Each HTML transaction Document has a Document object available that allows a user to access all of the elements in the HTML transaction Document from the script.
The DOM is the Document Object Model. The DOM elements define the objects and attributes of the elements in the HTML transaction document, as well as the methods of accessing them. By using the DOM element, operations of obtaining, modifying, adding or deleting the HTML transaction document can be realized.
In one embodiment of the present invention, after step S101, the division printing method further includes:
and setting the attribute of the DOM element in the HTML transaction document to be invisible, and acquiring the height of the DOM element.
In this embodiment, the DOM element is set to be invisible, so as to prevent a CSS (Cascading Style Sheets) Style of the printed DOM from affecting the layout Style of Document, thereby affecting the acquisition of the actual height of the DOM element.
In one embodiment of the invention, the segmenting the DOM element in step S102 comprises:
1) combining the size of the printing buffer area and the user requirement, and testing to obtain the length of the printing area;
2) analyzing the DOM elements according to the preset sequence to obtain critical points which accord with the length of the printing area;
3) analyzing the critical point according to the length of the printing area and the height of the DOM element to obtain a segmentation position;
4) and segmenting the DOM element according to the segmentation position to obtain the printing element.
In one embodiment, the size of the print buffer of the transaction terminal and the user best experience data are combined, and the length of the print buffer is estimated to be more appropriate after relevant tests are performed.
The DOM element is composed of a plurality of nodes and is divided into a father node and a child node, and each father node comprises a plurality of child nodes.
For example, starting from the first child node of the first-layer parent node of the DOM element, the idea of layer-by-layer analysis from top to bottom is adopted, and if the height from the starting position to a certain node just meets the length of the printing area, the node is a critical point. Analyzing the critical point, considering the requirements of a user on the simplicity, the attractiveness and the like of a printing interface, if the critical point is taken as a printing node and does not meet the requirements, analyzing the nodes near the critical point until the maximum limited printing length is reached and the user requirements are met, and taking the nodes as the segmentation positions.
In one embodiment, the combining of the print elements into a print template in step S103 comprises:
and combining the template container with the printing elements to obtain the printing template.
It will be appreciated that the print elements are filled into the template container, resulting in a printed document for printing, i.e. a print template. The print template may be used to print a ticket.
The template container is fixed, and the printing elements are filled into the template container to obtain a printing template for printing. The method for combining the template container and the printing element comprises VUE template grammar, a data binding mechanism and the like. The complexity of typesetting, organization and the like of the printing template is greatly simplified.
In one embodiment of the present invention, after step S103, the division printing method further includes:
and after printing is completed, clearing the DOM element containing the printing information from the HTML transaction document.
The deletion function of the DOM element is set in the initial Document, and the function is started after printing is finished, so that the content in the Document can be reduced, the file is lighter, and various influences caused by data redundancy are avoided.
In this embodiment, after each time the divided printing of the DOM element is completed and deleted, the above entire flow is repeated for the unprinted nodes.
According to the embodiment of the invention, the divided printing method based on the HTML technology is adopted, so that the capacity limitation of the printing cache region of the hardware equipment and the limitation of the length of the transaction list are solved, the complexity of typesetting, organizing and the like of the printing template is simplified, the printing abnormity can be reduced, and the user experience is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example 2:
as shown in fig. 2, an embodiment of the present invention provides a transaction terminal 100, configured to execute the method steps in the embodiment corresponding to fig. 1, including:
a creating module 110, configured to create a DOM element containing printing information, and create an HTML transaction document according to the DOM element;
the segmentation module 120 is configured to determine whether an unprinted node exists in the HTML transaction document, and if so, segment the DOM elements according to a preset sequence to obtain a print element meeting a requirement;
and the printing module 130 is configured to combine the printing elements into a printing template, and print the printing template by calling a printing device.
In one embodiment of the invention, the creation module 110 includes:
an element creating unit for creating the DOM element containing the print information;
and the wrapping unit is used for wrapping the DOM element containing the printing information by using a standard IFrame frame to obtain a wrapped DOM element, and putting the wrapped DOM element into a Document object to obtain the HTML transaction Document.
In one embodiment of the present invention, the transaction terminal 100 further comprises:
and the attribute processing module is used for setting the attribute of the DOM element in the HTML transaction document to be invisible and acquiring the height of the DOM element.
In one embodiment of the present invention, the segmentation module 120 includes:
the length obtaining unit is used for testing the length of the printing area according to the size of the printing buffer area and user requirements;
the critical point acquisition unit is used for analyzing the DOM elements according to the preset sequence to obtain critical points which accord with the length of the printing area;
the segmentation position acquisition unit is used for analyzing the critical point according to the length of the printing area and the height of the DOM element to obtain a segmentation position;
and the dividing unit is used for dividing the DOM element according to the dividing position to obtain the printing element.
In one embodiment of the present invention, the transaction terminal 100 further comprises:
and the deleting module is used for clearing the DOM element containing the printing information from the HTML transaction document after printing is finished.
In one embodiment, the transaction terminal 100 further comprises other functional modules/units for implementing the method steps of the embodiments of embodiment 1.
Example 3:
fig. 3 is a schematic diagram of a transaction terminal according to an embodiment of the present invention. As shown in fig. 3, the transaction terminal 3 of this embodiment includes: a processor 30, a memory 31 and a computer program 32 stored in said memory 31 and executable on said processor 30. The processor 30, when executing the computer program 32, implements the steps in the embodiments as described in embodiment 1, such as steps S101 to S103 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 32, implements the functions of the modules/units in the system embodiments as described in embodiment 2, such as the functions of the modules 110 to 130 shown in fig. 2.
The transaction terminal 3 refers to a terminal with data processing capability, and includes but is not limited to a POS terminal, an ATM device, a computer, a workstation, a server, and even some Smart phones, palm computers, tablet computers, Personal Digital Assistants (PDAs), Smart televisions (Smart TVs), etc. with excellent performance. The transaction terminal generally has an operating system installed thereon, including but not limited to: windows operating system, LINUX operating system, Android (Android) operating system, Symbian operating system, Windows mobile operating system, and iOS operating system, among others. While specific examples of transaction terminals 3 have been set forth in detail above, those skilled in the art will appreciate that transaction terminals are not limited to the above-listed examples.
The transaction terminal may include, but is not limited to, a processor 30, a memory 31. It will be appreciated by those skilled in the art that fig. 3 is only an example of the transaction terminal 3 and does not constitute a limitation of the transaction terminal 3 and may comprise more or less components than those shown, or some components may be combined, or different components, for example, the transaction terminal 3 may further comprise an input-output device, a network access device, a bus, etc.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the transaction terminal 3, such as a hard disk or a memory of the transaction terminal 3. The memory 31 may also be an external storage device of the transaction terminal 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the transaction terminal 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the transaction terminal 3. The memory 31 is used for storing the computer program and other programs and data required by the transaction terminal 3. The memory 31 may also be used to temporarily store data that has been output or is to be output.
Example 4:
an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the embodiments described in embodiment 1, for example, step S101 to step S103 shown in fig. 1. Alternatively, the computer program, when executed by a processor, implements the functionality of the various modules/units in the various system embodiments as described in embodiment 2, such as the functionality of modules 110 to 130 shown in fig. 2.
The computer program may be stored in a computer readable storage medium, which when executed by a processor, may implement the steps of the various method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
In the above embodiments, the description of each embodiment has a respective emphasis, and embodiments 1 to 4 may be combined arbitrarily, and a new embodiment formed by combining is also within the scope of the present application. For parts which are not described or illustrated in a certain embodiment, reference may be made to the description of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed transaction terminal and method may be implemented in other ways. For example, the above-described system/transaction terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A division printing method, comprising:
creating a DOM element containing printing information, and creating an HTML transaction document according to the DOM element;
judging whether an unprinted node exists in the HTML transaction document, if so, segmenting the DOM element according to a preset sequence to obtain a printing element meeting the requirement; the unprinted node refers to content which is not printed in the HTML transaction document;
combining the printing elements into a printing template, and printing the printing template by calling printing equipment;
segmenting the DOM element, including:
combining the size of the printing buffer area and the user requirement, and testing to obtain the length of the printing area;
analyzing the DOM elements according to the preset sequence to obtain critical points which accord with the length of the printing area; starting from a first child node of a first-layer father node of a DOM element, adopting a mode of analyzing layer by layer from top to bottom, and if the height from an initial position to a certain node just meets the length of a printing area, the node is the critical point;
analyzing the critical point according to the length of the printing area and the height of the DOM element to obtain a segmentation position;
and segmenting the DOM element according to the segmentation position to obtain the printing element.
2. The division printing method according to claim 1, wherein said creating a DOM element containing printing information and creating an HTML transaction document based on said DOM element comprises:
creating the DOM element containing the printing information;
and wrapping the DOM element containing the printing information by using a standard IFrame to obtain a wrapped DOM element, and putting the wrapped DOM element into a Document object to obtain the HTML transaction Document.
3. The division printing method according to claim 2, further comprising:
and setting the attribute of the DOM element in the HTML transaction document to be invisible, and acquiring the height of the DOM element.
4. The division printing method according to claim 1, further comprising:
and after printing is completed, clearing the DOM element containing the printing information from the HTML transaction document.
5. A transaction terminal, comprising:
the system comprises a creating module, a document editing module and a document editing module, wherein the creating module is used for creating a DOM element containing printing information and creating an HTML transaction document according to the DOM element;
the segmentation module is used for judging whether an unprinted node exists in the HTML transaction document, and if so, segmenting the DOM element according to a preset sequence to obtain a printing element meeting the requirement; the unprinted node refers to content which is not printed in the HTML transaction document;
the printing module is used for combining the printing elements into a printing template and printing the printing template by calling printing equipment;
the segmentation module includes:
the length obtaining unit is used for testing the length of the printing area according to the size of the printing buffer area and user requirements;
the critical point acquisition unit is used for analyzing the DOM elements according to the preset sequence to obtain critical points which accord with the length of the printing area; starting from a first child node of a first-layer father node of a DOM element, adopting a mode of analyzing layer by layer from top to bottom, and if the height from an initial position to a certain node just meets the length of a printing area, the node is the critical point;
the segmentation position acquisition unit is used for analyzing the critical point according to the length of the printing area and the height of the DOM element to obtain a segmentation position;
and the dividing unit is used for dividing the DOM element according to the dividing position to obtain the printing element.
6. The transaction terminal of claim 5, wherein the creation module comprises:
the element creating unit is used for creating the DOM element containing the printing information;
and the wrapping unit is used for wrapping the DOM element containing the printing information by using a standard IFrame frame to obtain a wrapped DOM element, and putting the wrapped DOM element into a Document object to obtain the HTML transaction Document.
7. A transaction terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor when executing the computer program implementing the steps of the split printing method according to any of claims 1 to 4.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the steps of the division printing method according to any one of claims 1 to 4.
CN201811351464.1A 2018-11-14 2018-11-14 Segmentation printing method and transaction terminal Active CN109634537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811351464.1A CN109634537B (en) 2018-11-14 2018-11-14 Segmentation printing method and transaction terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811351464.1A CN109634537B (en) 2018-11-14 2018-11-14 Segmentation printing method and transaction terminal

Publications (2)

Publication Number Publication Date
CN109634537A CN109634537A (en) 2019-04-16
CN109634537B true CN109634537B (en) 2022-04-12

Family

ID=66068041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811351464.1A Active CN109634537B (en) 2018-11-14 2018-11-14 Segmentation printing method and transaction terminal

Country Status (1)

Country Link
CN (1) CN109634537B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564974A (en) * 2001-10-05 2005-01-12 松下电器产业株式会社 Print data creation apparatus and print data creation method
CN104714766A (en) * 2015-03-12 2015-06-17 福建工程学院 Method for direct printing in WEB report browser
CN107943426A (en) * 2017-10-13 2018-04-20 用友网络科技股份有限公司 Document page-by-page printing method, document print page system and computer installation

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5735778B2 (en) * 2010-10-15 2015-06-17 キヤノン株式会社 Information processing apparatus, information processing method, and program
US8817285B2 (en) * 2012-12-27 2014-08-26 Zih Corp. Method and apparatus for printing HTML content
CN107943434A (en) * 2017-11-24 2018-04-20 理光图像技术(上海)有限公司 Method of printing and its device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564974A (en) * 2001-10-05 2005-01-12 松下电器产业株式会社 Print data creation apparatus and print data creation method
CN104714766A (en) * 2015-03-12 2015-06-17 福建工程学院 Method for direct printing in WEB report browser
CN107943426A (en) * 2017-10-13 2018-04-20 用友网络科技股份有限公司 Document page-by-page printing method, document print page system and computer installation

Also Published As

Publication number Publication date
CN109634537A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN107656914B (en) Configurable table generation method and device, terminal equipment and storage medium
CN110442341B (en) Interface configuration method and device of application program and terminal equipment
KR101716823B1 (en) System for electronic book service
US20110107204A1 (en) Automated document assembly with obscuring
CN104915186B (en) A kind of method and apparatus making the page
CN110321504B (en) Page processing method and device
CN104820589A (en) Method and device for dynamically adapting webpage
CN109410932A (en) Voice operating method and apparatus based on HTML5 webpage
CN113655999A (en) Rendering method, device and equipment of page control and storage medium
CN116992081A (en) Page form data processing method and device and user terminal
US20170031889A1 (en) Creating a communication editable in a browser independent of platform and operating system
CN113360106B (en) Webpage printing method and device
CN113900647A (en) Method, device and equipment for screenshot of webpage
CN109634537B (en) Segmentation printing method and transaction terminal
CN111881657A (en) Intelligent marking method, terminal equipment and storage medium
KR102087274B1 (en) Web electric document editing apparatus for rendering object and operating method thereof
CN113110829B (en) Multi-UI component library data processing method and device
CN109491622B (en) Printing method applied to transaction terminal and transaction terminal
CN112433778B (en) Mobile device page display method and device, electronic device and storage medium
CN114676097A (en) OFD file processing method, device, equipment and medium
CN113297425A (en) Document conversion method, device, server and storage medium
CN110795914A (en) Method and device for converting PDF document into picture and electronic equipment
CN110362790A (en) Processing method, device, electronic equipment and the readable storage medium storing program for executing of font file
CN107392981A (en) A kind of picture synthetic method, device, electronic equipment and readable storage medium storing program for executing
CN111581921B (en) Text editing method and device, computer storage medium and terminal

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