CN107943426B - Document paging printing method, document paging printing system and computer device - Google Patents

Document paging printing method, document paging printing system and computer device Download PDF

Info

Publication number
CN107943426B
CN107943426B CN201710951342.5A CN201710951342A CN107943426B CN 107943426 B CN107943426 B CN 107943426B CN 201710951342 A CN201710951342 A CN 201710951342A CN 107943426 B CN107943426 B CN 107943426B
Authority
CN
China
Prior art keywords
printing
data
page
content
document
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
CN201710951342.5A
Other languages
Chinese (zh)
Other versions
CN107943426A (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.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN201710951342.5A priority Critical patent/CN107943426B/en
Publication of CN107943426A publication Critical patent/CN107943426A/en
Application granted granted Critical
Publication of CN107943426B publication Critical patent/CN107943426B/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/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/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/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server

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)
  • Record Information Processing For Printing (AREA)

Abstract

The invention provides a bill paging printing method, a bill paging printing system, a computer device and a computer readable storage medium, wherein the bill paging printing method comprises the following steps: acquiring a data array bound in a data area of a printing template, wherein the data array comprises data of all documents; analyzing the data of each bill in the data array, paging each bill, and acquiring a page cache array; printing and previewing a page cache array on a web page; and sending a printing instruction to the printer to control the printer to print all the documents. According to the document batch printing method and device, the third-party control does not need to be downloaded according to the application scene of document batch printing, so that the printing service is more flexible, more effective document data paging printing is realized, time and labor are saved, and the personalized customized printing requirements of the user on the documents are met.

Description

Document paging printing method, document paging printing system and computer device
Technical Field
The invention relates to the technical field of bill printing, in particular to a bill paging printing method, a bill paging printing system, a computer device and a computer readable storage medium.
Background
With the application networking and the business innovation of the ToB (to business), the printing service used by the existing enterprise is usually completely bound with the application or the system, which not only is difficult to meet the diversified printing scene requirements of enterprise users, but also can make many developers fatigue to deal with the problems of concurrency performance, plug-in installation, system compatibility and the like.
The cloud printing is a Platform as a Service (Platform as a Service) public cloud Service, and provides a Platform, an application, a tool and a Service related to printing for enterprise-level users, so that the personalized customized printing requirement of the users on documents is fully met. In the web-based printing service, the biggest difficulty lies in how to analyze data according to the customized template content, so as to generate a personalized printing document and realize accurate printing. In practical application, the scenes of document paging printing, such as batch printing of reimbursement bills, purchase detail bills, personnel information tables and the like, are often encountered, and the content of each document is required to be independently paged during printing. There are many printing schemes based on Web (World Wide Web) pages in the related art: (1) and using the printing function of the browser. In the scheme, the browser automatically determines the paging position according to the page size and the web content set by the user, so that the manual control is difficult, and a plurality of documents cannot be continuously printed. (2) The pdf file printing is used, i.e. the web front end downloads the pdf file stream from the server, opens and prints using the Adobe plug-in. Although the scheme can basically meet the requirements, the Adobe plug-in is required to be downloaded. (3) The method based on the third-party control needs to download the third-party control, which is time-consuming and labor-consuming.
And under the application scene of batch printing, the printing service web page acquires data of a plurality of documents at one time and analyzes the data for one printing template. After analyzing a printing template, the printing service in the related art fills data into corresponding positions of the template from top to bottom line by line according to the sequence, performs paging when a piece of paper is filled with data lines (namely actual printing content), and does not have the function of paging according to documents. However, most of the existing web page paging functions use a mode of filling empty data lines, and paging of documents is realized by calculating and controlling the size of page display. Therefore, the existing paging method has poor flexibility in use and cannot meet the diversity requirements of users.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art or the related art.
To this end, one aspect of the invention is to provide a method for page-printing a document.
Another aspect of the present invention is to provide a document paging printing system.
Yet another aspect of the present invention is to provide a computer apparatus.
Yet another aspect of the present invention is to provide a computer-readable storage medium.
In view of the above, according to an aspect of the present invention, a method for page-printing a document is provided, including: acquiring a data array bound in a data area of a printing template, wherein the data array comprises data of all documents; analyzing the data of each bill in the data array, paging each bill, and acquiring a page cache array; printing and previewing a page cache array on a web page; and sending a printing instruction to the printer to control the printer to print all the documents.
The document paging printing method provided by the invention obtains the data arrays bound in the data area of the printing template, wherein the elements of each data array are all data of one document, namely the data arrays comprise the data of all documents, and the data area is a data container of the printing template. And circulating the data array, analyzing the data of each document, performing paging operation on each document, and generating a page cache array to be rendered, wherein each element in the page cache array is the printing content of one piece of printing paper during actual printing. And further, performing print preview display on the web page by using the page cache array, and sending a print instruction to the printer by using the system after the user views the print preview content and confirms the print preview content so as to control the printer to print all documents. According to the document batch printing method and device, the third-party control does not need to be downloaded according to the application scene of document batch printing, so that the printing service is more flexible, more effective document data paging printing is realized, time and labor are saved, and the personalized customized printing requirements of the user on the documents are met.
The document paging printing method according to the invention can also have the following technical characteristics:
in the above technical solution, preferably, the step of analyzing data of each document in the data array, paging each document, and obtaining the page cache array includes: acquiring the fixed line number of the printing template; acquiring an index value of data of any document, and calculating a ratio of the index value to the fixed line number; adding the data of the document to the current page of the page cache array; judging whether the ratio is an integer; and if the ratio is an integer, inserting a page break as the printing content of a receipt of the printing template after the content of the current page of the page cache array.
In the technical scheme, the step of performing paging operation on each document specifically comprises the following steps: the method comprises the steps of obtaining a fixed line number of a printing template, circularly obtaining an index value of data of each document, calculating a ratio of the index value to the fixed line number, adding the data of the document to a current page of a page cache array, if the ratio is an integer, indicating that the data of the document can be completely filled in the complete page of the printing template, inserting a page break as the printing content of one document of the printing template after the content of the current page of the page cache array through the css attribute, if the ratio is not an integer, stopping the current circulation, continuing the next circulation, namely obtaining and adding the next piece of data in the document, and then comparing the index values. And until whether all the documents in the array data are analyzed and added to the page cache array or not. The CSS attribute is used for accurately controlling the HTML for storing the printing content, any plug-in is not required to be additionally downloaded, the cost is low, and the cross-platform property is very good. Meanwhile, the paging controllability is improved by paging the documents in a fixed line number, and continuous printing of a plurality of documents can be realized.
In any of the above technical solutions, preferably, the step of obtaining the fixed number of lines of the printing template specifically includes: acquiring the height of printing paper; and calculating the number of data pieces which can be accommodated by the printing paper according to the height of the printing paper, and taking the number of data pieces as the fixed line number.
In the technical scheme, after the size of the printing paper of the printing template is set, the number n of data strips (namely the number of lines, n >0) which can be contained in each piece of printing paper can be calculated according to the height of the printing paper and the printing template, the calculated fixed number of lines n is given to a data area as an attribute value, the fixed number of lines can be accurately obtained, and then the document paging printing is carried out according to the fixed number of lines.
In any of the above technical solutions, preferably, the data area of the print template includes a main data area and a sub data area, wherein the main data area is associated with a plurality of sub data areas; the method comprises the steps of analyzing data of each bill in a data array, paging each bill, and acquiring a page cache array, and specifically comprises the following steps: filling the main table data of any document into a main data area to form a piece of printing content of a printing template, and adding the printing content to the current page of the page cache array; acquiring a sub data area associated with the main data area; analyzing sub-table field data of document data in a sub-data area associated with the main data area, and adding the sub-table field data to a current page of a page cache array as a piece of printing content of a printing template; after the data of the document is completely added to the page cache array, inserting a page break as the printing content of a document of the printing template after the content of the current page of the page cache array.
In the technical scheme, the printing template at least comprises a main data area and a plurality of sub data areas related to the main data area, the data arrays of a plurality of documents comprise data of all documents, each piece of data comprises a plurality of fields, and the sub table fields comprise a plurality of pieces of sub table data. The step of performing the paging operation on each document may further include: filling the main form data of any document into a main data area to form a piece of printing content of a printing template, adding the piece of printing content to the current page of a page cache array, further acquiring a plurality of sub data areas associated with the main data area, analyzing sub-form field data of the document data in the sub data areas, taking the sub-form field data as a piece of printing content of the printing template, and adding the printing content to the current page of the page cache array one by one. And judging whether all data of one receipt is added (including the main data area and the sub data area), and if so, inserting a page break as the printing content of one receipt of the printing template after the content of the current page of the page cache array through the css attribute. The CSS attribute is used for accurately controlling the HTML for storing the printing content, any plug-in is not required to be additionally downloaded, the cost is low, and the cross-platform property is very good. Meanwhile, the document paging of a complex template can be better realized, so that the document paging is more flexible and the applicability is stronger.
In any of the above technical solutions, preferably, the step of performing print preview display on the web page by using the page cache array specifically includes: inserting the printing content of each page of document into an HTML page as a table tab; analyzing the style and the content of the printing content of each page of document into HTML character string fragments, and inputting the HTML character string fragments into prestored cache data; after all the printing contents of all the documents are analyzed into HTML character string segments, splicing all the HTML character string segments in the prestored cache data into a complete HTML character string; and inserting the complete HTML character string into the web page for displaying.
In the technical scheme, after a page cache array to be rendered is generated, printing content is inserted into an HTML page in a table tab mode, each page of printing content is an independent table, and each element of the page cache array is the printing content of one piece of printing paper during actual printing. When HTML output is carried out on the printed content, a preset cache array is created, the styles (such as word size, font, border line and the like) and the content (text, picture and the like) of the printed content are analyzed into HTML character string fragments one by one according to the sequence of the printed content, and the HTML character string fragments are sequentially output to the preset cache array. After all contents to be printed are translated into HTML fragments, the character strings are spliced into complete HTML character strings and then inserted into the web page. By replacing frequent DOM operation with character string output, the browser is prevented from being jammed and even crashed due to the fact that all data are rendered at one time, and waiting time is long.
In any of the above technical solutions, preferably, the displaying a page cache array on the web page for print preview includes: and rendering the printing content of the document in the cache array of any page, and inserting the rendered printing content of the document into the web page for displaying until the printing content of all documents is inserted into the web page for displaying.
In the technical scheme, after a page cache array to be rendered is generated, page rendering can be performed, that is, the print content generated after analysis is rendered page by page. Specifically, after a page of content to be printed is completely converted into a DOM element and inserted into the page, rendering of the next page of printed content is performed. Therefore, the browser can be prevented from continuously performing a large amount of cyclic operation in a short time, and the browser is prevented from being 'falsely dead'.
According to another aspect of the present invention, there is provided a document paging printing system, including: the first acquisition unit is used for acquiring a data array bound in a data area of the printing template, and the data array comprises data of all documents; the paging unit is used for analyzing the data of each bill in the data array, paging each bill and acquiring a page cache array; the preview display unit is used for printing and previewing the page cache array on the web page; and the sending unit is used for sending a printing instruction to the printer so as to control the printer to print all the documents.
The document paging printing system provided by the invention obtains the data arrays bound in the data area of the printing template, wherein the elements of each data array are all data of one document, namely the data arrays comprise the data of all documents, and the data area is a data container of the printing template. And circulating the data array, analyzing the data of each document, performing paging operation on each document, and generating a page cache array to be rendered, wherein each element in the page cache array is the printing content of one piece of printing paper during actual printing. And further, performing print preview display on the web page by using the page cache array, and sending a print instruction to the printer by using the system after the user views the print preview content and confirms the print preview content so as to control the printer to print all documents. According to the document batch printing method and device, the third-party control does not need to be downloaded according to the application scene of document batch printing, so that the printing service is more flexible, more effective document data paging printing is realized, time and labor are saved, and the personalized customized printing requirements of the user on the documents are met.
The document paging printing system according to the present invention may further have the following technical features:
in the foregoing technical solution, preferably, the paging unit includes: the second acquisition unit is used for acquiring the fixed line number of the printing template; the calculating unit is used for acquiring an index value of data of any bill and calculating the ratio of the index value to the fixed line number; the adding unit is used for adding the data of the document to the current page of the page cache array; the judging unit is used for judging whether the ratio is an integer or not; and the adding unit is also used for inserting a page break as the printing content of one document of the printing template after the content of the current page of the page cache array if the ratio is an integer.
In the technical scheme, the step of performing paging operation on each document specifically comprises the following steps: the method comprises the steps of obtaining the fixed line number of a printing template, circularly obtaining the index value of data of each document, calculating the ratio of the index value to the fixed line number, adding the data of the document to a current page of a page cache array, if the ratio is an integer, indicating that the data of the document can be completely filled in the complete page of the printing template, inserting a page break as the printing content of one document of the printing template after the content of the current page of the page cache array through the css attribute, if the ratio is not an integer, stopping the current circulation, continuing the next circulation, namely obtaining and adding the next piece of data in the document, and then comparing the index value. And until all the documents in the array data are analyzed and added to the page cache array. The CSS attribute is used for accurately controlling the HTML for storing the printing content, any plug-in is not required to be additionally downloaded, the cost is low, and the cross-platform property is very good. Meanwhile, the paging controllability is improved by paging the documents in a fixed line number, and continuous printing of a plurality of documents can be realized.
In any of the above technical solutions, preferably, the second acquiring unit is specifically configured to acquire a height of the printing paper; and calculating the number of data pieces which can be accommodated by the printing paper according to the height of the printing paper, and taking the number of data pieces as the fixed line number.
In the technical scheme, after the size of the printing paper of the printing template is set, the number n of data strips (namely the number of lines, n >0) which can be contained in each piece of printing paper can be calculated according to the height of the printing paper and the printing template, the calculated fixed number of lines n is given to a data area as an attribute value, the fixed number of lines can be accurately obtained, and then the document paging printing is carried out according to the fixed number of lines.
In any of the above technical solutions, preferably, the data area of the printing template includes a main data area and a sub data area, wherein the main data area is associated with a plurality of the sub data areas; the paging unit is specifically used for filling the main table data of any document into the main data area to form a piece of printing content of the printing template, and adding the printing content to the current page of the page cache array; paging unit, still include: a third obtaining unit configured to obtain a sub data area associated with the main data area; the adding unit is also used for analyzing sub-table field data of the document data in the sub-data area associated with the main data area, and adding the sub-table field data to the current page of the page cache array as a piece of printing content of the printing template; after the data of the document is completely added to the page cache array, inserting a page break as the printing content of a document of the printing template after the content of the current page of the page cache array.
In the technical scheme, the printing template at least comprises a main data area and a plurality of sub data areas related to the main data area, the data arrays of a plurality of documents comprise data of all documents, each piece of data comprises a plurality of fields, and the sub table fields comprise a plurality of pieces of sub table data. The step of performing the paging operation on each document may further include: filling the main form data of any document into a main data area to form a piece of printing content of a printing template, adding the piece of printing content to the current page of a page cache array, further acquiring a plurality of sub data areas associated with the main data area, analyzing sub-form field data of the document data in the sub data areas, taking the sub-form field data as a piece of printing content of the printing template, and adding the printing content to the current page of the page cache array one by one. And judging whether all data of one receipt is added (including the main data area and the sub data area), and if so, inserting a page break as the printing content of one receipt of the printing template after the content of the current page of the page cache array through the css attribute. The CSS attribute is used for accurately controlling the HTML for storing the printing content, any plug-in is not required to be additionally downloaded, the cost is low, and the cross-platform property is very good. Meanwhile, the document paging of a complex template can be better realized, so that the document paging is more flexible and the applicability is stronger.
In any of the above technical solutions, preferably, the preview display unit is specifically configured to insert the print content of each page of document into an HTML page as a table tab; analyzing the style and the content of the printing content of each page of document into HTML character string fragments, and inputting the HTML character string fragments into prestored cache data; after all the printing contents of all the documents are analyzed into HTML character string segments, splicing all the HTML character string segments in the prestored cache data into a complete HTML character string; and inserting the complete HTML character string into the web page for displaying.
In the technical scheme, after a page cache array to be rendered is generated, printing content is inserted into an HTML page in a table tab mode, each page of printing content is an independent table, and each element of the page cache array is the printing content of one piece of printing paper during actual printing. When HTML output is carried out on the printed content, a preset cache array is created, the styles (such as word size, font, border line and the like) and the content (text, picture and the like) of the printed content are analyzed into HTML character string fragments one by one according to the sequence of the printed content, and the HTML character string fragments are sequentially output to the preset cache array. After all contents to be printed are translated into HTML fragments, the character strings are spliced into complete HTML character strings and then inserted into the web page. By replacing frequent DOM operation with character string output, the browser is prevented from being jammed and even crashed due to the fact that all data are rendered at one time, and waiting time is long.
In any of the above technical solutions, preferably, the preview display unit is specifically configured to render the print content of the document in the cache array of any page, and insert the rendered print content of the document into the web page for display until all the print contents of the documents are inserted into the web page for display.
In the technical scheme, after a page cache array to be rendered is generated, page rendering can be performed, that is, the print content generated after analysis is rendered page by page. Specifically, after a page of content to be printed is completely converted into a DOM element and inserted into the page, rendering of the next page of printed content is performed. Therefore, the browser can be prevented from continuously performing a large amount of cyclic operation in a short time, and the browser is prevented from being 'falsely dead'.
According to a further aspect of the present invention, there is provided a computer apparatus comprising a memory, a processor and a computer program stored on the memory and operable on the processor, the processor when executing the computer program implementing the steps of the method for pagination printing of documents as claimed in any one of the preceding claims.
According to the computer device provided by the invention, the processor realizes the steps of the document paging printing method when executing the computer program, the technical effect of the document paging printing method can be realized, and the details are not repeated.
According to a further aspect of the invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of a method of paged printing of documents as claimed in any one of the preceding claims.
According to the computer-readable storage medium provided by the invention, when the computer program is executed by the processor, the steps of the document paging printing method are realized, the technical effect of the document paging printing method can be realized, and the details are not repeated.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 shows a schematic diagram of a print service of one embodiment of the present invention;
FIG. 2 is a flow chart diagram illustrating a method for pagination printing of documents in accordance with one embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for pagination printing of documents according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for pagination printing of documents in accordance with yet another embodiment of the present invention;
FIG. 5 is a diagram illustrating a document pagination printing process according to the main sub-data area according to one embodiment of the invention;
FIG. 6a shows a schematic block diagram of a document paging printing system of one embodiment of the present invention;
FIG. 6b shows a schematic block diagram of a document paging printing system of another embodiment of the present invention;
FIG. 6c shows a schematic block diagram of a document pagination printing system of yet another embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
FIG. 1 shows a schematic diagram of a print service of one embodiment of the present invention. For one printing request initiated by a user, the process of the printing service is as follows:
(1) the server receives a printing request and printing data initiated by a user from the terminal, and a printing template code; (2) the method comprises the steps that when a web page acquires user data, template data, such as a template 1 and a template 2, are taken out from a cloud template library; (3) analyzing the template and the data through the web front end to generate a print preview page, and obtaining the print preview page; (4) and the browser sends a printing task to the printer to complete the printing of the document.
An embodiment of a first aspect of the present invention provides a method for page-based printing of documents, and fig. 2 shows a schematic flow diagram of the method for page-based printing of documents according to an embodiment of the present invention. Wherein, the method comprises the following steps:
step 202, acquiring a data array bound in a data area of the printing template, wherein the data array comprises data of all documents;
step 204, analyzing the data of each bill in the data array, paging each bill, and acquiring a page cache array;
step 206, performing print preview display on the page cache array on the web page;
and step 208, sending a printing instruction to the printer to control the printer to print all the documents.
The document paging printing method provided by the invention obtains the data arrays bound in the data area of the printing template, wherein the elements of each data array are all data of one document, namely the data arrays comprise the data of all documents, and the data area is a data container of the printing template. And circulating the data array, analyzing the data of each document, performing paging operation on each document, and generating a page cache array to be rendered, wherein each element in the page cache array is the printing content of one piece of printing paper during actual printing. And further, performing print preview display on the web page by using the page cache array, and sending a print instruction to the printer by using the system after the user views the print preview content and confirms the print preview content so as to control the printer to print all documents. According to the document batch printing method and device, the third-party control does not need to be downloaded according to the application scene of document batch printing, so that the printing service is more flexible, more effective document data paging printing is realized, time and labor are saved, and the personalized customized printing requirements of the user on the documents are met.
Fig. 3 is a flowchart illustrating a method for page-based printing of documents according to another embodiment of the present invention. Wherein, the method comprises the following steps:
step 302, acquiring a data array bound in a data area of the printing template, wherein the data array comprises data of all documents;
step 304, acquiring the height of the printing paper; calculating the number of data pieces which can be accommodated by the printing paper according to the height of the printing paper, and taking the number of the data pieces as a fixed line number;
step 306, acquiring any bill in the data array;
step 308, obtaining an index value of a piece of data in the document, and calculating a ratio of the index value to the fixed line number;
step 310, adding the piece of data to a current page of the page cache array;
step 312, determining whether the ratio is an integer, if so, entering step 314, and if not, returning to step 316;
step 314, inserting a page break as the printing content of a receipt of the printing template after the content of the current page of the page cache array;
step 316, judging whether all the data in the document are added, if so, entering step 318, otherwise, returning to step 308;
step 318, judging whether all the documents in the data array are acquired, if so, entering step 320, otherwise, returning to step 306;
step 320, performing print preview display on the page cache array on the web page;
step 322, sending a print command to the printer to control the printer to print all documents.
In this embodiment, the data arrays bound to the data area of the print template are obtained, where elements of each data array are all data of one document, that is, the data array includes data of all documents, and the data area is a data container of the print template.
After the size of the printing paper with the printing template is set, the number n of data strips which can be contained in each piece of printing paper (namely the number of lines, n is greater than 0) can be calculated according to the height of the printing paper and the printing template, the calculated fixed number of lines n is given to a data area as an attribute value, the fixed number of lines can be accurately obtained, and then document paging printing is carried out according to the fixed number of lines. Circularly acquiring the index value of the data of each document, calculating the ratio of the index value to the fixed line number, adding the data of the document to the current page of the page cache array, if the ratio is an integer, indicating that the data of the document can be completely filled in the complete page of the printing template, inserting a page break as the printing content of one document of the printing template after the content of the current page of the page cache array through the css attribute, if the ratio is not an integer, stopping the current cycle, continuing the next cycle, namely acquiring and adding the next piece of data in the document, and then comparing the index values. And until all the documents in the array data are analyzed and added to the page cache array. The CSS attribute is used for accurately controlling the HTML for storing the printing content, any plug-in is not required to be additionally downloaded, the cost is low, and the cross-platform property is very good. Meanwhile, the paging controllability is improved by paging the documents in a fixed line number, and continuous printing of a plurality of documents can be realized.
And further, performing print preview display on the web page by using the page cache array, and sending a print instruction to the printer by using the system after the user views the print preview content and confirms the print preview content so as to control the printer to print all documents. According to the document batch printing method and device, the third-party control does not need to be downloaded according to the application scene of document batch printing, so that the printing service is more flexible, more effective document data paging printing is realized, time and labor are saved, and the personalized customized printing requirements of the user on the documents are met.
Fig. 4 is a flowchart illustrating a method for page-printing documents according to still another embodiment of the present invention. Wherein, the method comprises the following steps:
step 402, acquiring a data array bound in a data area of the printing template, wherein the data array comprises data of all documents;
step 404, filling the main form data of any bill into a main data area to form a piece of printing content of a printing template, and adding the printing content to the current page of the page cache array;
step 406, obtaining a sub data area associated with the main data area;
step 408, analyzing sub-table field data of the document data in the sub-data area associated with the main data area, and adding the sub-table field data to the current page of the page cache array as a piece of printing content of the printing template;
step 410, after all the data of the document is added to the page cache array, inserting a page break as the printing content of one document of the printing template after the content of the current page of the page cache array;
step 412, performing print preview display on the page cache array on the web page;
step 414, sending a printing instruction to the printer to control the printer to print all documents.
The data area of the printing template comprises a main data area and a sub data area, wherein the main data area is associated with a plurality of sub data areas.
In this embodiment, data arrays bound to a data area of a print template are obtained, where elements of each data array are all data of one document, that is, the data arrays include data of all documents, and data containers of the print template may be mainly divided into two types, taking a reimbursement form as an example: and a main data area, a main table field of the printed document, such as the name of a person in the reimbursement note, a document number and the like. The sub-data area is a detailed list of the printed documents, and corresponds to a sub-table field of the main table data, such as the expense occurrence date, expense items and the like.
The printing template at least comprises a main data area and a plurality of sub data areas related to the main data area, the data arrays of a plurality of documents comprise data of all documents, each piece of data comprises a plurality of fields, and the sub table fields comprise a plurality of pieces of sub table data. The step of performing the paging operation on each document may further include: filling the main form data of any document into a main data area to form a piece of printing content of a printing template, adding the piece of printing content to the current page of a page cache array, further acquiring a plurality of sub data areas associated with the main data area, analyzing sub-form field data of the document data in the sub data areas, taking the sub-form field data as a piece of printing content of the printing template, and adding the printing content to the current page of the page cache array one by one. And judging whether all data of one receipt is added (including the main data area and the sub data area), and if so, inserting a page break as the printing content of one receipt of the printing template after the content of the current page of the page cache array through the css attribute. The printing process is as shown in fig. 5, the single data is printed in pages according to the main sub data area of the printing template. The CSS attribute is used for accurately controlling the HTML for storing the printing content, any plug-in is not required to be additionally downloaded, the cost is low, and the cross-platform property is very good. Meanwhile, the document paging of a complex template can be better realized, so that the document paging is more flexible and the applicability is stronger.
And further, performing print preview display on the web page by using the page cache array, and sending a print instruction to the printer by using the system after the user views the print preview content and confirms the print preview content so as to control the printer to print all documents. According to the document batch printing method and device, the third-party control does not need to be downloaded according to the application scene of document batch printing, so that the printing service is more flexible, more effective document data paging printing is realized, time and labor are saved, and the personalized customized printing requirements of the user on the documents are met.
After the web page analyzes the document data according to the printing template, a page cache array to be rendered is generated, and each element of the array is the printing content of a piece of printing paper during actual printing. When the number of documents is large, frequent calculation and a large number of DOM operations are required. Due to the fact that computing resources of a browser client are limited, the browser is very easy to jam or even crash when all data are rendered at one time, waiting time is long, and user experience is poor. In order to avoid the efficiency problem, the invention simultaneously adopts the following optimization scheme of the printing preview efficiency of the multi-page document:
1) the string output replaces frequent DOM operations. The printing content is inserted into the HTML page in the form of table tabs, and each page of the printing content is a separate table. When HTML output is carried out on the printed content, a cache array is created, the styles (such as word size, font, border line and the like) and the content (text, picture and the like) of the printed content are analyzed into HTML character string fragments one by one according to the sequence of the printed content, and the HTML character string fragments are sequentially output to the cache array. After all contents to be printed are translated into HTML fragments, the character strings are spliced into complete HTML character strings and are inserted into the web page at one time. By replacing frequent DOM operation with character string output, the browser is prevented from being jammed and even crashed due to the fact that all data are rendered at one time, and waiting time is long.
2) And performing page rendering, namely rendering the printing content generated after the analysis page by page. Specifically, after a page of content to be printed is completely converted into a DOM element and inserted into the page, rendering of the next page of printed content is performed. Therefore, the browser can be prevented from continuously performing a large amount of cyclic operation in a short time, and the browser is prevented from being 'falsely dead'.
It should be noted that the above optimization scheme of the printing preview efficiency of the multi-page document can be applied to the process of performing the printing preview display on the web page by using the page cache array in the document paging printing method.
In a second aspect of the present invention, a document paging printing system is provided, and fig. 6a shows a schematic block diagram of a document paging printing system 600 according to an embodiment of the present invention. Wherein the system 600 comprises:
a first obtaining unit 602, configured to obtain a data array bound to a data area of a print template, where the data array includes data of all documents;
the paging unit 604 is configured to parse data of each document in the data array, page each document, and obtain a page cache array;
a preview display unit 606, configured to perform print preview display on the web page by using the page cache array;
a sending unit 608, configured to send a print instruction to the printer to control the printer to print all documents.
The document paging printing system 600 provided by the invention obtains the data arrays bound to the data area of the printing template, wherein the elements of each data array are all data of one document, that is, the data arrays comprise data of all documents, and the data area is a data container of the printing template. And circulating the data array, analyzing the data of each document, performing paging operation on each document, and generating a page cache array to be rendered, wherein each element in the page cache array is the printing content of one piece of printing paper during actual printing. And further, performing print preview display on the web page by using the page cache array, and sending a print instruction to the printer by using the system after the user views the print preview content and confirms the print preview content so as to control the printer to print all documents. According to the document batch printing method and device, the third-party control does not need to be downloaded according to the application scene of document batch printing, so that the printing service is more flexible, more effective document data paging printing is realized, time and labor are saved, and the personalized customized printing requirements of the user on the documents are met.
FIG. 6b shows a schematic block diagram of a document paging printing system 600 of another embodiment of the present invention. Wherein the system 600 comprises:
a first obtaining unit 602, configured to obtain a data array bound to a data area of a print template, where the data array includes data of all documents;
the paging unit 604 includes: a second acquiring unit 6402 for acquiring the height of the printing paper; calculating the number of data pieces which can be accommodated by the printing paper according to the height of the printing paper, and taking the number of the data pieces as a fixed line number; the calculating unit 6404 is configured to obtain an index value of data of any document, and calculate a ratio of the index value to the fixed line number; an adding unit 6406, configured to add data of a document to a current page of the page cache array; a judging unit 6408, configured to judge whether the ratio is an integer; the adding unit 6406 is further configured to insert a page break as a printing content of a document of the printing template after the content of the current page of the page cache array if the ratio is an integer;
a preview display unit 606, configured to perform print preview display on the web page by using the page cache array;
a sending unit 608, configured to send a print instruction to the printer to control the printer to print all documents.
In this embodiment, after the size of the printing paper of the printing template is set, the number n of data lines that can be accommodated by each printing paper (i.e., the number of lines, n >0) can be calculated according to the height of the printing paper and the printing template, and the calculated fixed number of lines n is assigned to the data area as an attribute value, so that the fixed number of lines can be accurately obtained, and then the document paging printing according to the fixed number of lines is performed.
The step of performing paging operation on each document specifically comprises the following steps: the method comprises the steps of obtaining the fixed line number of a printing template, circularly obtaining the index value of data of each document, calculating the ratio of the index value to the fixed line number, adding the data of the document to a current page of a page cache array, if the ratio is an integer, indicating that the data of the document can be completely filled in the complete page of the printing template, inserting a page break as the printing content of one document of the printing template after the content of the current page of the page cache array through the css attribute, if the ratio is not an integer, stopping the current circulation, continuing the next circulation, namely obtaining and adding the next piece of data in the document, and then comparing the index value. And until all the documents in the array data are analyzed and added to the page cache array. The CSS attribute is used for accurately controlling the HTML for storing the printing content, any plug-in is not required to be additionally downloaded, the cost is low, and the cross-platform property is very good. Meanwhile, the paging controllability is improved by paging the documents in a fixed line number, and continuous printing of a plurality of documents can be realized.
FIG. 6c shows a schematic block diagram of a document paging printing system 600 of yet another embodiment of the present invention. Wherein the system 600 comprises:
a first obtaining unit 602, configured to obtain a data array bound to a data area of a print template, where the data array includes data of all documents;
a paging unit 604, configured to fill the main table data of any document into the main data area, form a piece of print content of the print template, and add the print content to the current page of the page cache array;
the paging unit 604 further includes: a third acquiring unit 6410 for acquiring a sub data area associated with the main data area; an adding unit 6406, configured to parse sub-table field data of the document data in the sub-data area associated with the main data area, and add the sub-table field data to a current page of the page cache array as a piece of print content of the print template; after the data of the document is completely added to the page cache array, inserting a page break as the printing content of a document of a printing template after the content of the current page of the page cache array;
a preview display unit 606, configured to perform print preview display on the web page by using the page cache array;
a sending unit 608, configured to send a print instruction to the printer to control the printer to print all documents.
The data area of the printing template comprises a main data area and a sub data area, wherein the main data area is associated with a plurality of sub data areas.
In this embodiment, the printing template includes at least one main data area and a plurality of sub data areas associated with the main data area, the data array of the plurality of documents includes data of all documents, each piece of data includes a plurality of fields, and the sub table field includes a plurality of pieces of sub table data. The step of performing the paging operation on each document may further include: filling the main form data of any document into a main data area to form a piece of printing content of a printing template, adding the piece of printing content to the current page of a page cache array, further acquiring a plurality of sub data areas associated with the main data area, analyzing sub-form field data of the document data in the sub data areas, taking the sub-form field data as a piece of printing content of the printing template, and adding the printing content to the current page of the page cache array one by one. And judging whether all data of one receipt is added (including the main data area and the sub data area), and if so, inserting a page break as the printing content of one receipt of the printing template after the content of the current page of the page cache array through the css attribute. The CSS attribute is used for accurately controlling the HTML for storing the printing content, any plug-in is not required to be additionally downloaded, the cost is low, and the cross-platform property is very good. Meanwhile, the document paging of a complex template can be better realized, so that the document paging is more flexible and the applicability is stronger.
In an embodiment of the present invention, preferably, the preview display unit 606 is specifically configured to insert the print content of each page of document into an HTML page as a table tab; analyzing the style and the content of the printing content of each page of document into HTML character string fragments, and inputting the HTML character string fragments into prestored cache data; after all the printing contents of all the documents are analyzed into HTML character string segments, splicing all the HTML character string segments in the prestored cache data into a complete HTML character string; and inserting the complete HTML character string into the web page for displaying.
In this embodiment, after a page buffer array to be rendered is generated, print content is inserted into an HTML page in the form of a table tab, each page of print content is an individual table, and each element of the page buffer array is print content of a piece of printing paper during actual printing. When HTML output is carried out on the printed content, a preset cache array is created, the styles (such as word size, font, border line and the like) and the content (text, picture and the like) of the printed content are analyzed into HTML character string fragments one by one according to the sequence of the printed content, and the HTML character string fragments are sequentially output to the preset cache array. After all contents to be printed are translated into HTML fragments, the character strings are spliced into complete HTML character strings and then inserted into the web page. By replacing frequent DOM operation with character string output, the browser is prevented from being jammed and even crashed due to the fact that all data are rendered at one time, and waiting time is long.
In an embodiment of the present invention, preferably, the preview display unit 606 is specifically configured to render the print content of the document in any page cache array, and insert the rendered print content of the document into the web page for display until all the print contents of the documents are inserted into the web page for display.
In this embodiment, after a page cache array to be rendered is generated, page rendering may also be performed, that is, the print content generated after parsing is rendered page by page. Specifically, after a page of content to be printed is completely converted into a DOM element and inserted into the page, rendering of the next page of printed content is performed. Therefore, the browser can be prevented from continuously performing a large amount of cyclic operation in a short time, and the browser is prevented from being 'falsely dead'.
The invention provides an effective technical scheme for paging printing data according to bills from the perspectives of template design and data analysis. Meanwhile, for batch printing of a large number of documents, the invention provides an optimization scheme from the perspective of front-end algorithm optimization, and effectively solves the problem of efficiency of printing preview. Compared with the paging printing scheme based on the plug-in which pdf plug-in and ActiveX control are used in the related art, the method has the following advantages:
(1) the JavaScript script and the css style are used for accurately controlling the HTML for storing the printing content, any plug-in is not required to be additionally downloaded, the cost is low, and the cross-platform performance is very good. (2) The operation of the user is simple, and the learning, the maintenance and the release are easy. The user can easily obtain the documents printed in pages only by checking the binding of the main data area and the sub data area on the template designer.
In an embodiment of the third aspect of the present invention, a computer device is provided, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method for paging printing documents according to any one of the above items when executing the computer program. According to the computer device provided by the invention, the processor realizes the steps of the document paging printing method when executing the computer program, the technical effect of the document paging printing method can be realized, and the details are not repeated.
An embodiment of a fourth aspect of the invention proposes a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for pagination printing of documents as defined in any one of the above. According to the computer-readable storage medium provided by the invention, when the computer program is executed by the processor, the steps of the document paging printing method are realized, the technical effect of the document paging printing method can be realized, and the details are not repeated.
In the description herein, the description of the terms "one embodiment," "some embodiments," "specific embodiments," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A document paging printing method is characterized by comprising the following steps:
acquiring a data array bound in a data area of a printing template, wherein the data array comprises data of all documents;
analyzing the data of each bill in the data array, paging each bill, and acquiring a page cache array;
printing and previewing the page cache array on a web page;
sending a printing instruction to a printer to control the printer to print all the documents;
the step of analyzing the data of each document in the data array, paging each document, and acquiring the page cache array specifically includes:
acquiring the fixed line number of the printing template;
acquiring an index value of data of any bill, and calculating the ratio of the index value to the fixed line number;
adding the data of the bill to the current page of the page cache array;
judging whether the ratio is an integer or not;
and if the ratio is an integer, inserting a page break as the printing content of a receipt of the printing template after the content of the current page of the page cache array.
2. The method for pagination printing of documents as claimed in claim 1, wherein said step of obtaining said fixed number of lines of said printing template includes:
acquiring the height of printing paper;
and calculating the number of data pieces which can be accommodated by the printing paper according to the height of the printing paper, and taking the number of data pieces as the fixed line number.
3. The method for pagination printing of documents according to claim 1, wherein the data area of said printing template includes a main data area and a sub data area, wherein said main data area is associated with a plurality of said sub data areas;
the step of analyzing the data of each document in the data array, paging each document, and acquiring the page cache array specifically includes:
filling the main table data of any bill into the main data area to form a piece of printing content of the printing template, and adding the printing content to the current page of the page cache array;
acquiring a sub data area associated with the main data area;
analyzing sub-table field data of the document data in a sub-data area associated with the main data area, and adding the sub-table field data to the current page of the page cache array as a piece of printing content of the printing template;
and after the data of the receipt is completely added to the page cache array, inserting a page break as the printing content of a receipt of the printing template after the content of the current page of the page cache array.
4. The method for paging printing of documents as claimed in any one of claims 1 to 3, wherein the step of displaying the page cache array on the web page for print preview specifically comprises:
taking the printing content of each page of the document as a table tab and inserting the tab into an HTML page;
analyzing the style and the content of the printing content of each page of the document into HTML character string fragments, and inputting the HTML character string fragments into prestored cache data;
after all the printing contents of all the documents are analyzed into HTML character string segments, splicing all the HTML character string segments in the pre-stored cache data into complete HTML character strings;
and inserting the complete HTML character string into the web page for displaying.
5. The method for paging printing of documents as claimed in any one of claims 1 to 3, wherein said displaying the page cache array on the web page for print preview specifically comprises:
and rendering the printing content of the receipt in the page cache array of any page, and inserting the rendered printing content of the receipt into the web page for displaying until all the printing content of the receipt is inserted into the web page for displaying.
6. A document paging printing system, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a data array bound in a data area of a printing template, and the data array comprises data of all documents;
the paging unit is used for analyzing the data of each bill in the data array, paging each bill and acquiring a page cache array;
the preview display unit is used for printing and previewing the page cache array on a web page;
the sending unit is used for sending a printing instruction to a printer so as to control the printer to print all the documents;
the paging unit includes:
the second acquisition unit is used for acquiring the fixed line number of the printing template;
the calculation unit is used for acquiring an index value of data of any bill and calculating the ratio of the index value to the fixed line number;
the adding unit is used for adding the data of the bill to the current page of the page cache array;
the judging unit is used for judging whether the ratio is an integer or not;
and the adding unit is also used for inserting a page break as the printing content of one receipt of the printing template after the content of the current page of the page cache array if the ratio is an integer.
7. The paged document printing system according to claim 6, wherein the second acquiring unit is specifically configured to acquire the height of the printed sheets; and
and calculating the number of data pieces which can be accommodated by the printing paper according to the height of the printing paper, and taking the number of data pieces as the fixed line number.
8. The paginated printing system according to claim 6, wherein the data area of the printing template comprises a main data area and a sub-data area, wherein the main data area is associated with a plurality of the sub-data areas;
the paging unit is specifically configured to fill the main table data of any one of the documents into the main data area to form a piece of print content of the print template, and add the print content to the current page of the page cache array;
the paging unit further includes:
a third obtaining unit configured to obtain a sub data area associated with the main data area;
the adding unit is further configured to parse sub-table field data of the document data in a sub-data area associated with the main data area, and add the sub-table field data to the current page of the page cache array as a piece of print content of the print template; and after the data of the receipt is completely added to the page cache array, inserting a page break as the printing content of a receipt of the printing template after the content of the current page of the page cache array.
9. The paginated printing system according to any one of claims 6 to 8, wherein the preview display unit is specifically configured to:
taking the printing content of each page of the document as a table tab and inserting the tab into an HTML page;
analyzing the style and the content of the printing content of each page of the document into HTML character string fragments, and inputting the HTML character string fragments into prestored cache data;
after all the printing contents of all the documents are analyzed into HTML character string segments, splicing all the HTML character string segments in the pre-stored cache data into complete HTML character strings;
and inserting the complete HTML character string into the web page for displaying.
10. The paginated printing system according to any one of claims 6 to 8, wherein the preview display unit is specifically configured to:
and rendering the printing content of the receipt in the page cache array of any page, and inserting the rendered printing content of the receipt into the web page for displaying until all the printing content of the receipt is inserted into the web page for displaying.
11. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program performs the steps of the method for paged printing of documents according to any one of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for pagination printing of documents as claimed in any one of claims 1 to 5.
CN201710951342.5A 2017-10-13 2017-10-13 Document paging printing method, document paging printing system and computer device Active CN107943426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710951342.5A CN107943426B (en) 2017-10-13 2017-10-13 Document paging printing method, document paging printing system and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710951342.5A CN107943426B (en) 2017-10-13 2017-10-13 Document paging printing method, document paging printing system and computer device

Publications (2)

Publication Number Publication Date
CN107943426A CN107943426A (en) 2018-04-20
CN107943426B true CN107943426B (en) 2021-02-19

Family

ID=61935247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710951342.5A Active CN107943426B (en) 2017-10-13 2017-10-13 Document paging printing method, document paging printing system and computer device

Country Status (1)

Country Link
CN (1) CN107943426B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109164992A (en) * 2018-08-16 2019-01-08 北京易华录信息技术股份有限公司 A kind of system for supporting multilingual printing template and its be converted into html template
CN109597591B (en) * 2018-10-24 2023-04-07 厦门汉印电子技术有限公司 Printing information synchronous display method, device, system, printer and user terminal
CN109324771A (en) * 2018-10-26 2019-02-12 苏州浪潮智能软件有限公司 A kind of self-service apparatus for returning-back of bills intelligence print page technology based on HTML analytic technique
CN109471600B (en) * 2018-10-31 2021-08-31 中国银行股份有限公司 Printing method, printing device and printing system
CN109634537B (en) * 2018-11-14 2022-04-12 百富计算机技术(深圳)有限公司 Segmentation printing method and transaction terminal
CN110221790B (en) * 2019-05-28 2023-02-21 迈克医疗电子有限公司 Universal printing method and apparatus, analyzer, and storage medium
CN112199056A (en) * 2020-10-20 2021-01-08 金蝶软件(中国)有限公司 Data printing method, device and computer storage medium
WO2022184122A1 (en) * 2021-03-05 2022-09-09 珠海奔图电子有限公司 Image formation control method, apparatus and system
CN113268209A (en) * 2021-05-14 2021-08-17 深圳市领星网络科技有限公司 Method and device for creating custom document printing template and computer equipment
CN113760202B (en) * 2021-08-11 2024-05-31 广州快批信息科技有限公司 Document printing method, server, system and storage medium
CN117234442B (en) * 2023-11-09 2024-04-19 金蝶征信有限公司 Data printing method, device, computer equipment and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6437872B1 (en) * 1998-09-22 2002-08-20 Xerox Corporation Multibit screening of print documents in a PDL environment
CN100361067C (en) * 2004-12-31 2008-01-09 东友科技股份有限公司 Paging method for printing file
CN104571978B (en) * 2015-01-09 2017-11-21 中科宇图天下科技有限公司 A kind of method that document print page is carried out based on html tag
CN104714766B (en) * 2015-03-12 2017-11-03 福建工程学院 A kind of method directly printed in WEB forms browser
CN105930109B (en) * 2016-04-06 2020-07-07 北京红马传媒文化发展有限公司 Document printing method, system and terminal

Also Published As

Publication number Publication date
CN107943426A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN107943426B (en) Document paging printing method, document paging printing system and computer device
JP4344693B2 (en) System and method for browser document editing
JP4290011B2 (en) Viewer device, control method therefor, and program
US7949942B2 (en) System and method for identifying line breaks
US6560621B2 (en) World wide web formatting for program output through print function
CN110765284B (en) Method, system, computing device and storage medium for generating presentation
CN110717127A (en) Method and device for on-line analysis and browsing of OFD (office file)
US20110107204A1 (en) Automated document assembly with obscuring
US9535880B2 (en) Method and apparatus for preserving fidelity of bounded rich text appearance by maintaining reflow when converting between interactive and flat documents across different environments
KR102574306B1 (en) dynamic typesetting
US9489161B2 (en) Automatic selection of web page objects for printing
CN114625996A (en) Webpage content paging method and device, electronic equipment and readable storage medium
CN110674437A (en) Method and device for converting webpage data into PDF (Portable document Format) attachment
CN112433995B (en) File format conversion method, system, computer device and storage medium
US10157238B2 (en) Transformation of marked-up content to a reversible file format for automated browser based pagination
US9817913B2 (en) Method and apparatus for collecting, merging and presenting content
CN111198664A (en) Document printing method and device, computer storage medium and terminal
CN113139145B (en) Page generation method and device, electronic equipment and readable storage medium
CN113297425B (en) Document conversion method, device, server and storage medium
CN108287813A (en) A kind of information submits method, apparatus and electronic equipment
US10606928B2 (en) Assistive technology for the impaired
CN111143719A (en) Online publication method, device and equipment of thesis and computer-readable storage medium
CN110705210A (en) Chinese font loading method and device
KR101660489B1 (en) Implementing system and method of web office
CN116956834A (en) Text generation method, device, 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