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

Printing method and device based on page elements Download PDF

Info

Publication number
CN110928504A
CN110928504A CN201911187972.5A CN201911187972A CN110928504A CN 110928504 A CN110928504 A CN 110928504A CN 201911187972 A CN201911187972 A CN 201911187972A CN 110928504 A CN110928504 A CN 110928504A
Authority
CN
China
Prior art keywords
printing
page
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.)
Granted
Application number
CN201911187972.5A
Other languages
Chinese (zh)
Other versions
CN110928504B (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

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/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

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)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The application discloses a printing method and device based on page elements, which are used for acquiring a page corresponding to transaction content of a teller front-end system to be printed; analyzing page elements of the page to acquire page data to be printed in the page; acquiring a printing mode selection instruction, 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 bankbook printer for printing. Based on the scheme, the page corresponding to the transaction content of the teller front-end system can be printed out through the bankbook printer conveniently and quickly.

Description

Printing method and device based on page elements
Technical Field
The present application relates to the field of technologies, and in particular, to a printing method and apparatus based on page elements.
Background
In daily work, a bank teller needs to print a page corresponding to transaction content of a teller front-end system for viewing or standby. Currently, the screen capture printing mode of the microsoft operating system is generally adopted.
However, the screen capture printing method of the microsoft operating system is to generate a picture on the whole computer interface and print the picture by the method of printing the picture. By adopting the mode, a lot of irrelevant contents can be printed, so that the printing font of the page corresponding to the transaction contents of the teller front-end system is smaller. Moreover, a scroll bar may exist in 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 carried by the microsoft operating system. In addition, the screen capture printing method of the microsoft operating system requires a laser printer, and cannot be used for printing through a bankbook printer frequently used by a teller.
Therefore, how to disclose a printing method suitable for printing a page corresponding to the transaction content of the teller front-end system becomes a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the above, the present application is made to disclose a page element based printing method and apparatus that overcomes or at least partially solves the above-mentioned problems. The specific scheme is as follows:
a method of page element based printing, the method comprising:
acquiring a page corresponding to transaction content of a teller front-end system to be printed;
analyzing page elements of the page to acquire page data to be printed in the page;
acquiring a printing mode selection instruction, 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 bankbook printer for printing.
Optionally, the analyzing the page elements of the page to obtain the page data to be printed in the page includes:
analyzing the page elements of the page, and determining a first page element with an element type of a common column and a second page element with an element type of a table;
and acquiring the field name, the field position and the field data of the first page element, and the table name, the table position and the table data of the second page element, wherein the table name, the table position and the table data are page data to be printed.
Optionally, the acquiring a printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction in response to the printing mode selection instruction includes:
acquiring a first printing method selection instruction, wherein the first printing method selection instruction is used for indicating a mode of selecting content to be printed preferentially;
and generating a printing template by adopting a content priority algorithm in response to the first printing mode selection instruction.
Optionally, the acquiring a printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction in response to the printing 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.
Optionally, the generating 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.
An apparatus for page element based printing, 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 generating unit is used for acquiring a printing mode selecting instruction and generating a printing template according to a printing mode corresponding to the printing mode selecting instruction in response to the printing mode selecting instruction;
the printing page data generating unit is used for generating printing page data according to the page data and the printing template;
and the sending unit is used for sending the printing page data to a bankbook printer for printing.
Optionally, the page data obtaining unit includes:
the determining subunit is used for analyzing the page elements of the page, and determining a first page element with an element type of a common column and a second page element with an element type of a table;
and the page data acquisition subunit is used for acquiring the field name, the field position and the field data of the first page element, and the table name, the table position and the table data of the second page element, which are the page data to be printed.
Optionally, the print template generating unit is specifically configured to:
acquiring a first printing method selection instruction, wherein the first printing method selection instruction is used for indicating a mode of selecting content to be printed preferentially;
and generating a printing template by adopting a content priority algorithm in response to the first printing mode selection instruction.
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 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.
By means of the technical scheme, the application discloses a printing method and device based on page elements, and the method 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 acquire page data to be printed in the page; acquiring a printing mode selection instruction, 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 bankbook printer for printing. Based on the scheme, the page corresponding to the transaction content of the teller front-end system can be printed out through the bankbook printer conveniently and quickly.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
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 refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic flowchart of a printing method based on page elements according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart 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 structural diagram of a printing apparatus based on page elements according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of an apparatus disclosed in the 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 in order that the disclosure may be more fully understood and the scope of the disclosure may be fully conveyed to those skilled in the art.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating 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.
In the application, the teller front-end system can be opened through a bank teller, 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 may be set in the teller front-end system, and the bank teller may start the following S102 and subsequent steps by triggering the shortcut key.
S102: and analyzing the page elements of the page to acquire page data to be printed in the page.
In the present application, the page includes a plurality of contents, a part of the contents is contents unrelated to the transaction contents, the part of the contents is contents not to be printed, and a part of the contents is contents related to the transaction contents, the part of the contents is 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, to obtain the page data related to the transaction content in the page.
S103: and acquiring a printing mode selection instruction, responding to the printing mode selection instruction, and generating a printing template according to the printing mode corresponding to the printing mode selection instruction.
In the application, various 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, the printing template is generated 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, the print page data may be generated from the page data and the print template. As one possible embodiment, the page data may be combined with a print template to generate print page data.
S105: and sending the printing page data to a bankbook printer for printing.
In this application, can send the print order to the serial ports of bankbook printer, carry in the print order print page data to the realization is printed data transmission to the bankbook printer.
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 acquire page data to be printed in the page; acquiring a printing mode selection instruction, 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 bankbook printer for printing. Based on the scheme, the page corresponding to the transaction content of the teller front-end system can be printed out through the bankbook printer conveniently and quickly.
Referring to fig. 2, fig. 2 is a schematic flowchart 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, where the method includes the following steps:
s201: and analyzing the page elements of the page, and determining a first page element with an element type of a common column and a second page element with an element type of a table.
It should be noted that, in the present application, only the first page element whose element type is the normal field and the second page element whose element type is the table are considered, and the page element whose page element type is the hidden field or the button is excluded, so that clear and complete page data to be printed can be ensured.
S202: and acquiring the field name, the field position and the field data of the first page element, and the table name, the table position and the table data of the second page element, wherein the table name, the table position and the table data are page data to be printed.
Next, a printing template generation method disclosed in the embodiment of the present application will be described in detail.
As an implementation manner, the acquiring a printing manner selection instruction, and generating a printing template according to a printing manner corresponding to the printing manner selection instruction in response to the printing manner selection instruction includes:
acquiring a first printing method selection instruction, wherein the first printing method selection instruction is used for indicating a mode of selecting content to be printed preferentially;
and generating a printing template by adopting a content priority algorithm in response to the first printing mode selection instruction.
It should be noted that the content priority algorithm can rearrange all columns displayed on the print page, and each row of elements according to the left alignment principle; if the row data is overlong, automatically folding; and if the data exceeds the length of one page of paper, page changing and printing. The printing mode can ensure that the page elements are completely printed.
As another possible implementation manner, the acquiring a printing manner selection instruction, and generating a printing template according to a printing manner corresponding to the printing manner selection instruction in response to the printing manner 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 displayed by the element on the page, the printing position is consistent with the display position, the automatic folding is not supported, and if the line data is too long, the data beyond the paper will not be printed; if the data exceeds the length of one page of paper, page-changing printing is not supported.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a printing apparatus based on page elements according to an embodiment of the present application, where the apparatus includes:
the page acquiring unit 31 is used for acquiring a page corresponding to the transaction content of the teller front-end system 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 printing template generating unit 33, configured to obtain a printing mode selection instruction, and generate a printing template according to a printing mode corresponding to the printing mode selection instruction in response to the printing mode selection instruction;
a print page data generating unit 34 configured to generate print page data from the page data and the print template;
a sending unit 35, configured to send the print page data to a passbook printer for printing.
As an implementable manner, the page data obtaining unit includes:
the determining subunit is used for analyzing the page elements of the page, and determining a first page element with an element type of a common column and a second page element with an element type of a table;
and the page data acquisition subunit is used for acquiring the field name, the field position and the field data of the first page element, and the table name, the table position and the table data of the second page element, which are the page data to be printed.
As an implementation manner, the printing template generating unit is specifically configured to:
acquiring a first printing method selection instruction, wherein the first printing method selection instruction is used for indicating a mode of selecting content to be printed preferentially;
and generating a printing template by adopting a content priority algorithm in response to the first printing mode selection instruction.
As an implementation manner, the printing 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 implementation manner, 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 specific function implementation of each unit is already described in detail in the method embodiment, and this embodiment is not described again.
The page element-based printing device 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 stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the printing of the page corresponding to the transaction content of the teller printing front-end system is realized by adjusting the kernel parameters.
The embodiment of the application discloses a storage medium, wherein a program is stored on the storage medium, and the program realizes the printing method based on the page element when being executed by a processor.
The embodiment of the application discloses a processor, wherein the processor is used for running a program, and the program executes the printing method based on the page element when running.
Referring to fig. 4, fig. 4 discloses an apparatus for the embodiment of the present application, in which the apparatus 40 includes at least one processor 401, at least one memory 402 connected to the processor, and a bus 403; the processor and the memory complete mutual communication through a bus; when the processor calls the program instructions in the memory, the following method steps are executed:
acquiring a page corresponding to transaction content of a teller front-end system to be printed;
analyzing page elements of the page to acquire page data to be printed in the page;
acquiring a printing mode selection instruction, 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 bankbook printer for printing.
Optionally, the analyzing the page elements of the page to obtain the page data to be printed in the page includes:
analyzing the page elements of the page, and determining a first page element with an element type of a common column and a second page element with an element type of a table;
and acquiring the field name, the field position and the field data of the first page element, and the table name, the table position and the table data of the second page element, wherein the table name, the table position and the table data are page data to be printed.
Optionally, the acquiring a printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction in response to the printing mode selection instruction includes:
acquiring a first printing method selection instruction, wherein the first printing method selection instruction is used for indicating a mode of selecting content to be printed preferentially;
and generating a printing template by adopting a content priority algorithm in response to the first printing mode selection instruction.
Optionally, the acquiring a printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction in response to the printing 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.
Optionally, the generating 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, a PC, a PAD, a mobile phone, etc.
The present application also discloses a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
acquiring a page corresponding to transaction content of a teller front-end system to be printed;
analyzing page elements of the page to acquire page data to be printed in the page;
acquiring a printing mode selection instruction, 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 bankbook printer for printing.
Optionally, the analyzing the page elements of the page to obtain the page data to be printed in the page includes:
analyzing the page elements of the page, and determining a first page element with an element type of a common column and a second page element with an element type of a table;
and acquiring the field name, the field position and the field data of the first page element, and the table name, the table position and the table data of the second page element, wherein the table name, the table position and the table data are page data to be printed.
Optionally, the acquiring a printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction in response to the printing mode selection instruction includes:
acquiring a first printing method selection instruction, wherein the first printing method selection instruction is used for indicating a mode of selecting content to be printed preferentially;
and generating a printing template by adopting a content priority algorithm in response to the first printing mode selection instruction.
Optionally, the acquiring a printing mode selection instruction, and generating a printing template according to a printing mode corresponding to the printing mode selection instruction in response to the printing 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.
Optionally, the generating 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 a typical configuration, a 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 in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The 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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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 an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, 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 above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of printing based on page elements, the method comprising:
acquiring a page corresponding to transaction content of a teller front-end system to be printed;
analyzing page elements of the page to acquire page data to be printed in the page;
acquiring a printing mode selection instruction, 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 bankbook printer for printing.
2. The method according to claim 1, wherein the analyzing the page elements of the page to obtain page data to be printed in the page comprises:
analyzing the page elements of the page, and determining a first page element with an element type of a common column and a second page element with an element type of a table;
and acquiring the field name, the field position and the field data of the first page element, and the table name, the table position and the table data of the second page element, wherein the table name, the table position and the table data are page data to be printed.
3. The method according to claim 1, wherein the obtaining a printing mode selection instruction and generating a printing template in a printing mode corresponding to the printing mode selection instruction in response to the printing mode selection instruction comprises:
acquiring a first printing method selection instruction, wherein the first printing method selection instruction is used for indicating a mode of selecting content to be printed preferentially;
and generating a printing template by adopting a content priority algorithm in response to the first printing mode selection instruction.
4. The method according to claim 1, wherein the obtaining a printing mode selection instruction and generating a printing template in a printing mode corresponding to the printing mode selection instruction in response to the printing mode selection instruction comprises:
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.
5. The method of claim 1, wherein generating print page data from the page data and the print template comprises:
and combining the page data with each item in the printing template to generate printing page data.
6. An apparatus for page element based printing, 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 generating unit is used for acquiring a printing mode selecting instruction and generating a printing template according to a printing mode corresponding to the printing mode selecting instruction in response to the printing mode selecting instruction;
the printing page data generating unit is used for generating printing page data according to the page data and the printing template;
and the sending unit is used for sending the printing page data to a bankbook printer for printing.
7. The apparatus of claim 6, wherein the page data obtaining unit comprises:
the determining subunit is used for analyzing the page elements of the page, and determining a first page element with an element type of a common column and a second page element with an element type of a table;
and the page data acquisition subunit is used for acquiring the field name, the field position and the field data of the first page element, and the table name, the table position and the table data of the second page element, which are the page data to be printed.
8. The apparatus according to claim 6, wherein the print template generation unit is specifically configured to:
acquiring a first printing method selection instruction, wherein the first printing method selection instruction is used for indicating a mode of selecting content to be printed preferentially;
and generating a printing template by adopting a content priority algorithm in response to the first printing mode selection instruction.
9. The apparatus according to claim 6, wherein the print template generation 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.
10. The apparatus according to claim 6, wherein 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.
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 true CN110928504A (en) 2020-03-27
CN110928504B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115079966A (en) * 2022-08-22 2022-09-20 南京数睿数据科技有限公司 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

Cited By (2)

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

Also Published As

Publication number Publication date
CN110928504B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
KR101955732B1 (en) Associating captured image data with a spreadsheet
EP3279866B1 (en) Method and apparatus for generating synthetic picture
CN106610774B (en) Webpage table editing method and device
US10809811B2 (en) Method for invoking local keyboard on HTML page in user terminal device and apparatus thereof
CN107729897B (en) Text operation method, device and terminal
CN107526592B (en) Page adaptation method and device
CN111859865A (en) Method, device, terminal and medium for converting PDF document
EP3217388B1 (en) Display device, screen display method, recording medium, and image processing apparatus
CN112486398B (en) Method for realizing page turning effect of handwriting, electronic equipment and storage medium
CN112579948A (en) Webpage screenshot method and device, storage medium and electronic equipment
JP5496173B2 (en) Server apparatus, browsing system, distribution method, and program
CN111581939A (en) Method and device for typesetting questions, electronic equipment and storage medium
CN110928504B (en) Printing method and device based on page elements
JP6447564B2 (en) Image forming apparatus, program, and information processing system
US20140157147A1 (en) Feedback system, feedback method and recording media thereof
US20150237224A1 (en) Method of using address book of image forming apparatus on web browser and image forming apparatus for performing the same
JP5304467B2 (en) Portable terminal device, portable terminal display method, portable terminal display system, and program
CN112529343A (en) Task state display method, device and computer readable medium
US20190163351A1 (en) System and method for processing screenshot-type note of streaming document
CN111475589B (en) Image data rendering method and device
CN112882665A (en) Method and device for generating printing template, electronic equipment and storage medium
CN110020285B (en) Histogram processing method and device
JP2021105644A (en) Display unit
CN112579221A (en) Modal popup display method and device
CN221225822U (en) Screen display circuit and display device

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