CN110928504B - Printing method and device based on page elements - Google Patents

Printing method and device based on page elements Download PDF

Info

Publication number
CN110928504B
CN110928504B CN201911187972.5A CN201911187972A CN110928504B CN 110928504 B CN110928504 B CN 110928504B CN 201911187972 A CN201911187972 A CN 201911187972A CN 110928504 B CN110928504 B CN 110928504B
Authority
CN
China
Prior art keywords
page
printing
selection instruction
mode selection
data
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
CN201911187972.5A
Other languages
Chinese (zh)
Other versions
CN110928504A (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201911187972.5A priority Critical patent/CN110928504B/en
Publication of CN110928504A publication Critical patent/CN110928504A/en
Application granted granted Critical
Publication of CN110928504B publication Critical patent/CN110928504B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/1244Job translation or job parsing, e.g. page banding
    • G06F3/1246Job translation or job parsing, e.g. page banding by handling markup languages, e.g. XSL, XML, HTML
    • 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/125Page layout or assigning input pages onto output media, e.g. imposition

Abstract

The application discloses a printing method and a printing device based on page elements, which are used for acquiring pages corresponding to transaction contents of a teller front-end system to be printed; analyzing page elements of the page to obtain page data to be printed in the page; acquiring a printing mode selection instruction, and responding to the printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction; generating printing page data according to the page data and the printing template; and sending the printing page data to a passbook printer for printing. Based on the scheme, the pages corresponding to the transaction contents of the front-end system of the printing teller can be conveniently and rapidly printed through the passbook printer.

Description

Printing method and device based on page elements
Technical Field
The application relates to the technical field of printing, in particular to a printing method and device based on page elements.
Background
The bank teller needs to print the page corresponding to the transaction content of the front-end system of the teller to be checked or reserved in daily work. At present, a screen capture printing mode carried by a Microsoft operating system is generally adopted.
However, the screen capturing printing mode of the Microsoft operating system is to generate a picture from the whole computer interface and print the picture. In this way, many irrelevant contents are printed out, so that the printing fonts of the pages corresponding to the transaction contents of the front-end system of the teller are smaller. Moreover, a scroll bar may exist on a page corresponding to the transaction content of the teller front-end system, and the content not displayed by the scroll bar cannot be printed by adopting a screen capture printing mode of the microsoft operating system. In addition, the screen capturing printing mode of the microsoft operating system needs to use a laser printer, and printing cannot be performed through a passbook printer which is frequently used by a teller.
Therefore, how to disclose a printing mode suitable for printing the page corresponding to the transaction content of the teller front-end system is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The present application has been made in view of the above problems, and has as its object to disclose a page element-based printing method and apparatus which overcome or at least partially solve the above problems. The specific scheme is as follows:
a method of printing based on page elements, the method comprising:
acquiring a page corresponding to the transaction content of a teller front-end system to be printed;
analyzing page elements of the page to obtain page data to be printed in the page;
acquiring a printing mode selection instruction, and responding to the printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction;
generating printing page data according to the page data and the printing template;
and sending the printing page data to a passbook printer for printing.
Optionally, the analyzing the page element of the page to obtain page data to be printed in the page includes:
analyzing the page elements of the page, and determining a first page element with the element type being a common column and a second page element with the element type being a table;
and acquiring the column name, the column position and the column data of the first page element, and the table name, the table position and the table data of the second page element, which are page data to be printed.
Optionally, the obtaining a print mode selection instruction, and responding to the print mode selection instruction, generating a print template according to a print mode corresponding to the print mode selection instruction, including:
acquiring a first printing mode selection instruction, wherein the first printing mode selection instruction is used for indicating a mode with priority to select content for printing;
and responding to the first printing mode selection instruction, and generating a printing template by adopting a content priority algorithm.
Optionally, the obtaining a print mode selection instruction, and responding to the print mode selection instruction, generating a print template according to a print mode corresponding to the print mode selection instruction, including:
acquiring a second printing mode selection instruction, wherein the second printing mode selection instruction is used for indicating a mode with a preferential selection position to print;
and responding to the second printing mode selection instruction, and generating a printing template by adopting a position priority algorithm.
Optionally, the generating the print page data according to the page data and the print template includes:
and combining the page data with each item in the printing template to generate printing page data.
A page element-based printing apparatus, the apparatus comprising:
the page acquisition unit is used for acquiring a page corresponding to the transaction content of the teller front-end system to be printed;
the page data acquisition unit is used for analyzing page elements of the page and acquiring page data to be printed in the page;
the printing template generation unit is used for acquiring a printing mode selection instruction and responding to the printing mode selection instruction to generate a printing template according to a printing mode corresponding to the printing mode selection instruction;
a print page data generating unit for generating print page data according to the page data and the print template;
and the sending unit is used for sending the printing page data to a passbook printer for printing.
Optionally, the page data acquisition unit includes:
the determining subunit is used for analyzing the page elements of the page, and determining a first page element with the element type being a common column and a second page element with the element type being a table;
the page data acquisition subunit is configured to acquire a column name, a column position, and column data of the first page element, and a table name, a table position, and table data of the second page element, which are page data to be printed.
Optionally, the print template generating unit is specifically configured to:
acquiring a first printing mode selection instruction, wherein the first printing mode selection instruction is used for indicating a mode with priority to select content for printing;
and responding to the first printing mode selection instruction, and generating a printing template by adopting a content priority algorithm.
Optionally, the print template generating unit is specifically configured to:
acquiring a second printing mode selection instruction, wherein the second printing mode selection instruction is used for indicating a mode with a preferential selection position to print;
and responding to the second printing mode selection instruction, and generating a printing template by adopting a position priority algorithm.
Optionally, the page data generating unit is specifically configured to:
and combining the page data with each item in the printing template to generate printing page data.
By means of the technical scheme, the application discloses a printing method and device based on page elements, which are used for acquiring pages corresponding to transaction contents of a teller front-end system to be printed; analyzing page elements of the page to obtain page data to be printed in the page; acquiring a printing mode selection instruction, and responding to the printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction; generating printing page data according to the page data and the printing template; and sending the printing page data to a passbook printer for printing. Based on the scheme, the pages corresponding to the transaction contents of the front-end system of the printing teller can be conveniently and rapidly printed through the passbook printer.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a schematic flow chart of a printing method based on page elements according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for analyzing page elements of a page to obtain page data to be printed in the page according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a printing apparatus based on page elements according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are disclosed so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, fig. 1 is a schematic flow chart of a printing method based on page elements according to an embodiment of the present application, where the method includes the following steps:
s101: and acquiring a page corresponding to the transaction content of the teller front-end system to be printed.
According to the application, a bank teller can open a teller front-end system, a transaction code is input, and a page corresponding to the transaction content of the teller front-end system to be printed is obtained. The page may specifically be an HTML page. In addition, a shortcut key can be set in the front-end system of the teller, and the bank teller can start the following steps S102 and subsequent steps by triggering the shortcut key.
S102: and analyzing the page elements of the page to obtain page data to be printed in the page.
In the present application, various contents are contained in a page, and a part of the contents are contents which are not related to transaction contents, a part of the contents are contents which do not need printing, and a part of the contents are contents related to transaction contents, and a part of the contents are page data to be printed in the page.
It should be noted that, in the present application, the page elements of the page are analyzed to obtain the page data to be printed in the page, that is, the page data related to the transaction content in the page is obtained.
S103: and obtaining a printing mode selection instruction, and responding to the printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction.
In the application, a plurality of printing modes can be preset for the bank teller to select, different printing mode selection instructions can be generated after the bank teller selects different printing modes, and the system responds to the printing mode selection instructions, namely, generates a printing template according to the printing mode corresponding to the printing mode selection instructions.
S104: and generating printing page data according to the page data and the printing template.
In the present application, print page data may be generated from page data and a print template. As one implementation, the page data may be combined with a print template to generate print page data.
S105: and sending the printing page data to a passbook printer for printing.
In the application, a printing instruction can be sent to a serial port of the passbook printer, and the printing instruction carries the printing page data so as to send the printing data to the passbook printer for printing.
The embodiment discloses a printing method based on page elements, which comprises the steps of obtaining a page corresponding to transaction content of a teller front-end system to be printed; analyzing page elements of the page to obtain page data to be printed in the page; acquiring a printing mode selection instruction, and responding to the printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction; generating printing page data according to the page data and the printing template; and sending the printing page data to a passbook printer for printing. Based on the scheme, the pages corresponding to the transaction contents of the front-end system of the printing teller can be conveniently and rapidly printed through the passbook printer.
Referring to fig. 2, fig. 2 is a flow chart of a method for analyzing page elements of a page to obtain page data to be printed in the page, which includes the following steps:
s201: and analyzing the page elements of the page, and determining a first page element with the element type being a common column and a second page element with the element type being a table.
It should be noted that in the present application, only the first page element whose element type is the common field and the second page element whose element type is the table are considered, and the page elements whose page element type is the hidden field or the button are excluded, so that the data of the page to be printed can be ensured to be clear and complete.
S202: and acquiring the column name, the column position and the column data of the first page element, and the table name, the table position and the table data of the second page element, which are page data to be printed.
The printing template generation method disclosed in the embodiment of the application is described in detail below.
As an implementation manner, the obtaining a print mode selection instruction, and generating, in response to the print mode selection instruction, a print template according to a print mode corresponding to the print mode selection instruction includes:
acquiring a first printing mode selection instruction, wherein the first printing mode selection instruction is used for indicating a mode with priority to select content for printing;
and responding to the first printing mode selection instruction, and generating a printing template by adopting a content priority algorithm.
It should be noted that, the content priority algorithm can rearrange all columns displayed on the printed page, and each row of elements according to the left alignment principle; if the data is ultra-long, automatically folding the data; and if the data exceeds the length of one page of paper, page-changing printing is performed. The printing mode can ensure that the page elements are completely printed.
As still another embodiment, the obtaining a print mode selection instruction, and generating, in response to the print mode selection instruction, a print template according to a print mode corresponding to the print mode selection instruction includes:
acquiring a second printing mode selection instruction, wherein the second printing mode selection instruction is used for indicating a mode with a preferential selection position to print;
and responding to the second printing mode selection instruction, and generating a printing template by adopting a position priority algorithm.
It should be noted that, the position priority algorithm can print according to the position of the element display on the page, the printing position is consistent with the display position, automatic folding is not supported, and if the data is too long, the data exceeding the paper will not print; if the data exceeds the length of one page, page-changing printing is not supported.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a printing device based on page elements according to an embodiment of the present application, where the device includes:
the page acquisition unit 31 is configured to acquire a page corresponding to the teller front-end system transaction content to be printed;
a page data obtaining unit 32, configured to analyze page elements of the page, and obtain page data to be printed in the page;
a print template generating unit 33, configured to obtain a print mode selection instruction, and generate a print template according to a print mode corresponding to the print mode selection instruction in response to the print mode selection instruction;
a print page data generation unit 34 for generating print page data from the page data and the print template;
and a sending unit 35, configured to send the print page data to a passbook printer for printing.
As an embodiment, the page data acquiring unit includes:
the determining subunit is used for analyzing the page elements of the page, and determining a first page element with the element type being a common column and a second page element with the element type being a table;
the page data acquisition subunit is configured to acquire a column name, a column position, and column data of the first page element, and a table name, a table position, and table data of the second page element, which are page data to be printed.
As an embodiment, the print template generating unit is specifically configured to:
acquiring a first printing mode selection instruction, wherein the first printing mode selection instruction is used for indicating a mode with priority to select content for printing;
and responding to the first printing mode selection instruction, and generating a printing template by adopting a content priority algorithm.
As an embodiment, the print template generating unit is specifically configured to:
acquiring a second printing mode selection instruction, wherein the second printing mode selection instruction is used for indicating a mode with a preferential selection position to print;
and responding to the second printing mode selection instruction, and generating a printing template by adopting a position priority algorithm.
As an embodiment, the print page data generating unit is specifically configured to:
and combining the page data with each item in the printing template to generate printing page data.
It should be noted that, the specific functional implementation of each unit is described in detail in the method embodiment, and this embodiment is not repeated.
The printing device based on the page elements comprises a processor and a memory, wherein the page acquisition unit, the page data acquisition unit, the printing template generation unit, the printing page data generation unit, the sending unit and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be set with one or more than one, and printing of pages corresponding to transaction contents of a front-end system of a printing teller is realized by adjusting kernel parameters.
The embodiment of the application discloses a storage medium, on which a program is stored, which when executed by a processor, implements the above-described printing method based on page elements.
The embodiment of the application discloses a processor which is used for running a program, wherein the printing method based on page elements is executed when the program runs.
Referring to fig. 4, fig. 4 discloses an apparatus according to an embodiment of the present application, where the apparatus 40 includes at least one processor 401, and at least one memory 402 and a bus 403 connected to the processor; the processor and the memory complete communication with each other through a bus; the processor executes the following method steps when calling the program instructions in the memory:
acquiring a page corresponding to the transaction content of a teller front-end system to be printed;
analyzing page elements of the page to obtain page data to be printed in the page;
acquiring a printing mode selection instruction, and responding to the printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction;
generating printing page data according to the page data and the printing template;
and sending the printing page data to a passbook printer for printing.
Optionally, the analyzing the page element of the page to obtain page data to be printed in the page includes:
analyzing the page elements of the page, and determining a first page element with the element type being a common column and a second page element with the element type being a table;
and acquiring the column name, the column position and the column data of the first page element, and the table name, the table position and the table data of the second page element, which are page data to be printed.
Optionally, the obtaining a print mode selection instruction, and responding to the print mode selection instruction, generating a print template according to a print mode corresponding to the print mode selection instruction, including:
acquiring a first printing mode selection instruction, wherein the first printing mode selection instruction is used for indicating a mode with priority to select content for printing;
and responding to the first printing mode selection instruction, and generating a printing template by adopting a content priority algorithm.
Optionally, the obtaining a print mode selection instruction, and responding to the print mode selection instruction, generating a print template according to a print mode corresponding to the print mode selection instruction, including:
acquiring a second printing mode selection instruction, wherein the second printing mode selection instruction is used for indicating a mode with a preferential selection position to print;
and responding to the second printing mode selection instruction, and generating a printing template by adopting a position priority algorithm.
Optionally, the generating the print page data according to the page data and the print template includes:
and combining the page data with each item in the printing template to generate printing page data.
The device herein may be a server, PC, PAD, cell phone, etc.
The application also discloses a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of:
acquiring a page corresponding to the transaction content of a teller front-end system to be printed;
analyzing page elements of the page to obtain page data to be printed in the page;
acquiring a printing mode selection instruction, and responding to the printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction;
generating printing page data according to the page data and the printing template;
and sending the printing page data to a passbook printer for printing.
Optionally, the analyzing the page element of the page to obtain page data to be printed in the page includes:
analyzing the page elements of the page, and determining a first page element with the element type being a common column and a second page element with the element type being a table;
and acquiring the column name, the column position and the column data of the first page element, and the table name, the table position and the table data of the second page element, which are page data to be printed.
Optionally, the obtaining a print mode selection instruction, and responding to the print mode selection instruction, generating a print template according to a print mode corresponding to the print mode selection instruction, including:
acquiring a first printing mode selection instruction, wherein the first printing mode selection instruction is used for indicating a mode with priority to select content for printing;
and responding to the first printing mode selection instruction, and generating a printing template by adopting a content priority algorithm.
Optionally, the obtaining a print mode selection instruction, and responding to the print mode selection instruction, generating a print template according to a print mode corresponding to the print mode selection instruction, including:
acquiring a second printing mode selection instruction, wherein the second printing mode selection instruction is used for indicating a mode with a preferential selection position to print;
and responding to the second printing mode selection instruction, and generating a printing template by adopting a position priority algorithm.
Optionally, the generating the print page data according to the page data and the print template includes:
and combining the page data with each item in the printing template to generate printing page data.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be disclosed to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, the device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flashRAM), among other forms in computer readable media, the memory including at least one memory chip. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transshipment) such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be disclosed as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (2)

1. A method of printing based on page elements, the method comprising:
acquiring a page corresponding to the transaction content of a teller front-end system to be printed;
analyzing page elements of the page to obtain page data to be printed in the page;
the analyzing the page element of the page to obtain the page data to be printed in the page includes: analyzing the page elements of the page, determining a first page element with the element type being a common column, a second page element with the element type being a table, and excluding the page element with the element type being a hidden column or a button; acquiring the column name, the column position and the column data of the first page element, and the table name, the table position and the table data of the second page element as page data to be printed;
acquiring a printing mode selection instruction, and responding to the printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction;
when the acquired printing mode selection instruction is a first printing mode selection instruction, the generating a printing template according to the printing mode corresponding to the printing mode selection instruction in response to the printing mode selection instruction comprises:
generating a printing template by adopting a content priority algorithm in response to the first printing mode selection instruction, wherein the first printing mode selection instruction is used for indicating a content priority selection mode to print, the content priority algorithm comprises rearranging each row of elements according to a left alignment principle, automatically folding the row if the row is overlong, and replacing pages to print if the row is beyond the length of a page so as to print all columns displayed on the page;
when the acquired printing mode selection instruction is a second printing mode selection instruction, the generating a printing template according to the printing mode corresponding to the printing mode selection instruction in response to the printing mode selection instruction comprises the following steps:
generating a printing template by using a position priority algorithm in response to the second printing mode selection instruction, wherein the second printing mode selection instruction is used for indicating a mode with priority to select a position for printing, the position priority algorithm comprises printing according to the position displayed by elements on a page, so that the printing position is consistent with the display position, automatic folding is not supported, if the data is overlong, the data exceeding the paper cannot be printed, and if the data exceeds the length of one page, page changing printing is not supported;
generating printing page data according to the page data and the printing template;
wherein the generating print page data according to the page data and the print template includes: combining the page data with each item in the printing template to generate printing page data;
and sending the printing page data to a passbook printer for printing.
2. A page element-based printing apparatus, the apparatus comprising:
the page acquisition unit is used for acquiring a page corresponding to the transaction content of the teller front-end system to be printed;
the page data acquisition unit is used for analyzing page elements of the page and acquiring page data to be printed in the page;
the page data acquisition unit includes: determining a subunit and a page data acquisition subunit;
the determining subunit is configured to analyze a page element of the page, determine a first page element with an element type being a common field, and determine a second page element with an element type being a table, where the page element with the element type being a hidden field or a button is excluded;
the page data obtaining subunit is configured to obtain a column name, a column position, and column data of the first page element, and a table name, a table position, and table data of the second page element, as page data to be printed;
the printing template generation unit is used for acquiring a printing mode selection instruction and responding to the printing mode selection instruction to generate a printing template according to a printing mode corresponding to the printing mode selection instruction;
the print template generating unit is specifically configured to, when the acquired print mode selection instruction is a first print mode selection instruction: generating a printing template by adopting a content priority algorithm in response to the first printing mode selection instruction, wherein the first printing mode selection instruction is used for indicating a content priority selection mode to print, the content priority algorithm comprises rearranging each row of elements according to a left alignment principle, automatically folding the row if the row is overlong, and replacing pages to print if the row is beyond the length of a page so as to print all columns displayed on the page;
the print template generating unit is specifically configured to, when the acquired print mode selection instruction is a second print mode selection instruction: generating a printing template by using a position priority algorithm in response to the second printing mode selection instruction, wherein the second printing mode selection instruction is used for indicating a mode with priority to select a position for printing, the position priority algorithm comprises printing according to the position displayed by elements on a page, so that the printing position is consistent with the display position, automatic folding is not supported, if the data is overlong, the data exceeding the paper cannot be printed, and if the data exceeds the length of one page, page changing printing is not supported;
a print page data generating unit for generating print page data according to the page data and the print template;
wherein the print page data generation unit is specifically configured to: combining the page data with each item in the printing template to generate printing page data;
and the sending unit is used for sending the printing page data to a passbook printer for printing.
CN201911187972.5A 2019-11-28 2019-11-28 Printing method and device based on page elements Active CN110928504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911187972.5A CN110928504B (en) 2019-11-28 2019-11-28 Printing method and device based on page elements

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911187972.5A CN110928504B (en) 2019-11-28 2019-11-28 Printing method and device based on page elements

Publications (2)

Publication Number Publication Date
CN110928504A CN110928504A (en) 2020-03-27
CN110928504B true CN110928504B (en) 2023-11-24

Family

ID=69847369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911187972.5A Active CN110928504B (en) 2019-11-28 2019-11-28 Printing method and device based on page elements

Country Status (1)

Country Link
CN (1) CN110928504B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115079966B (en) * 2022-08-22 2022-12-02 南京数睿数据科技有限公司 Code-free page printing method and device, electronic equipment and readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6287380A (en) * 1985-10-14 1987-04-21 Omron Tateisi Electronics Co Passbook printer
CN106940628A (en) * 2016-01-04 2017-07-11 平安科技(深圳)有限公司 Document Method of printing and device
CN109786045A (en) * 2019-03-15 2019-05-21 深圳市君派伟业有限公司 The method of automatic identification print data for spool marking machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6287380A (en) * 1985-10-14 1987-04-21 Omron Tateisi Electronics Co Passbook printer
CN106940628A (en) * 2016-01-04 2017-07-11 平安科技(深圳)有限公司 Document Method of printing and device
CN109786045A (en) * 2019-03-15 2019-05-21 深圳市君派伟业有限公司 The method of automatic identification print data for spool marking machine

Also Published As

Publication number Publication date
CN110928504A (en) 2020-03-27

Similar Documents

Publication Publication Date Title
CN110058856B (en) Page configuration method and device
US10809811B2 (en) Method for invoking local keyboard on HTML page in user terminal device and apparatus thereof
CN106610774B (en) Webpage table editing method and device
CN104834645B (en) Method and apparatus for showing format document
CN106021431A (en) Page display method and device
CN110928504B (en) Printing method and device based on page elements
CN107294918B (en) Phishing webpage detection method and device
CN111859865A (en) Method, device, terminal and medium for converting PDF document
JP6859504B2 (en) Methods, devices and terminal devices for extracting data
CN111581939A (en) Method and device for typesetting questions, electronic equipment and storage medium
CN112579948A (en) Webpage screenshot method and device, storage medium and electronic equipment
CN108062321B (en) Page turning method and device based on paging
JPH08129550A (en) Image processor and method for image processing
CN107818000B (en) Operation method and device of page table
CN111475589B (en) Image data rendering method and device
CN108073594B (en) Method and device for generating thermodynamic diagram
CN109388313B (en) Method and device for sending feedback mails
CN112579221A (en) Modal popup display method and device
CN110059563B (en) Text processing method and device
CN112882665A (en) Method and device for generating printing template, electronic equipment and storage medium
CN112068828A (en) Title control generation method, device, system, equipment and medium
CN109948075B (en) Webpage data marking method and device
CN112579220B (en) Modal popup window display method and device
CN110020284B (en) Chart display method and device
CN112417830A (en) Document page management method and device, electronic equipment and storage medium

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