CN118092827A - File printing method, apparatus, device, storage medium, and computer program product - Google Patents

File printing method, apparatus, device, storage medium, and computer program product Download PDF

Info

Publication number
CN118092827A
CN118092827A CN202410379598.3A CN202410379598A CN118092827A CN 118092827 A CN118092827 A CN 118092827A CN 202410379598 A CN202410379598 A CN 202410379598A CN 118092827 A CN118092827 A CN 118092827A
Authority
CN
China
Prior art keywords
printing
style
template
print
client
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.)
Pending
Application number
CN202410379598.3A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC 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 Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202410379598.3A priority Critical patent/CN118092827A/en
Publication of CN118092827A publication Critical patent/CN118092827A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The application relates to a file printing method, a device, computer equipment, a storage medium and a computer program product, which are applied to the technical field of financial science and technology and can improve the printing efficiency of business system files. The method comprises the following steps: responding to a business file printing operation triggered by a business system page displayed in a browser window, and calling a printing client by the browser; displaying a candidate printing style template through the printing client, and acquiring a target printing style template based on the candidate printing style template and style template configuration information; acquiring a file to be printed based on the acquired printing content and the target printing style template; and printing the file to be printed.

Description

File printing method, apparatus, device, storage medium, and computer program product
Technical Field
The present application relates to the technical field of financial science and technology, and in particular, to a file printing method, a file printing device, a computer device, a storage medium and a computer program product.
Background
With the development of technology, the application of the printing device is becoming wider, and the user can configure the printing device to flexibly and freely print the file required by the user.
In the related art, when a user needs to print a document of a service system, the user firstly obtains the document from the service system, edits the document to be printed into a required style through editing software, stores the required style on a storage device, and then opens the edited document through software to print.
However, in the above manner, not only is it necessary for the user to perform an operation to switch between different pages to acquire a document and edit the document into a specified style before printing; moreover, the user is required to manually set the style of the document, which is time-consuming and labor-consuming, and the uniformity of the style is difficult to ensure. As can be seen, the related approach suffers from inefficiency in printing documents of the business system.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a document printing method, apparatus, computer device, computer readable storage medium, and computer program product that can improve the printing efficiency of business system documents.
In a first aspect, the present application provides a document printing method, including:
Responding to a business file printing operation triggered by a business system page displayed in a browser window, and calling a printing client by the browser;
Displaying a candidate printing style template through the printing client, and acquiring a target printing style template based on the candidate printing style template and style template configuration information;
Acquiring a file to be printed based on the acquired printing content and the target printing style template;
And printing the file to be printed.
In one embodiment, the obtaining the target print style template based on the candidate print style template and style template configuration information includes:
Receiving input style template configuration information, wherein the style template configuration information comprises a style template selection result and style template adjustment information;
Determining a selected printing style template from the candidate printing style templates according to the style template configuration information, and adjusting the selected printing style template according to the style template adjustment information to obtain a target printing style template.
In one embodiment, the candidate print style templates are displayed through a style display list of corresponding template display items in the print client;
after the target print style template is obtained, the method further comprises:
A template storage instruction carrying a style parameter corresponding to the target printing style template is sent to a printing server, and the template storage instruction is used for instructing the printing server to store the style parameter and generating a target template display item corresponding to the target printing style template;
And updating the style display list based on the target template display item returned by the printing server.
In one embodiment, before the obtaining the file to be printed based on the obtained print content and the target print style template, the method further includes:
acquiring a service file identifier by the browser based on the service file printing operation, and sending the service file identifier to the printing client;
and the printing client sends a service file acquisition request carrying the service file identifier to a printing server, and obtains printing content based on the service file returned by the printing server.
In one embodiment, the acquiring the file to be printed based on the acquired print content and the target print style template includes:
applying the target printing style template to the printing content, and displaying the printing content after the application style template through a printing content editing page of the printing client;
and responding to the content editing operation on the printing content editing page, adjusting the printing content after the pattern template is applied, and obtaining the file to be printed based on the adjusted content.
In one embodiment, before the presenting, by the print client, the candidate print style templates, the method further includes:
Acquiring authority information of a user account logged in the service system and providing the authority information to the printing client;
The displaying, by the print client, the candidate print style templates includes:
And acquiring a printing style template matched with the authority information by the printing client, and displaying a template display item corresponding to the matched printing style template in a style display list in the printing client.
In one embodiment, the method further comprises:
collecting a printing operation record in a printing process by the printing client;
and sending the printing operation record to the service system for storage.
In a second aspect, the present application also provides a document printing apparatus, including:
The client calling module is used for responding to the business file printing operation triggered by the business system page displayed in the browser window, and calling the printing client by the browser;
the target style acquisition module is used for displaying a candidate printing style template through the printing client and acquiring a target printing style template based on the candidate printing style template and style template configuration information;
the style application module is used for acquiring a file to be printed based on the acquired printing content and the target printing style template;
And the printing module is used for printing the file to be printed.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
Responding to a business file printing operation triggered by a business system page displayed in a browser window, and calling a printing client by the browser;
Displaying a candidate printing style template through the printing client, and acquiring a target printing style template based on the candidate printing style template and style template configuration information;
Acquiring a file to be printed based on the acquired printing content and the target printing style template;
And printing the file to be printed.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Responding to a business file printing operation triggered by a business system page displayed in a browser window, and calling a printing client by the browser;
Displaying a candidate printing style template through the printing client, and acquiring a target printing style template based on the candidate printing style template and style template configuration information;
Acquiring a file to be printed based on the acquired printing content and the target printing style template;
And printing the file to be printed.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
Responding to a business file printing operation triggered by a business system page displayed in a browser window, and calling a printing client by the browser;
Displaying a candidate printing style template through the printing client, and acquiring a target printing style template based on the candidate printing style template and style template configuration information;
Acquiring a file to be printed based on the acquired printing content and the target printing style template;
And printing the file to be printed.
The file printing method, the file printing device, the computer equipment, the storage medium and the computer program product, respond to the business file printing operation triggered by the business system page displayed in the browser window, call a printing client by the browser, then display a candidate printing pattern template through the printing client, acquire a target printing pattern template based on the candidate printing pattern template and pattern template configuration information, and acquire a file to be printed based on the acquired printing content and the target printing pattern template; further, the document to be printed can be printed. In this embodiment, when a user triggers a print service file in a service system, a terminal may utilize data interaction between the service system and a browser, and between the browser and a print client, and the browser actively invokes the print client to print without triggering switching between different pages or applications by the user.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is an application environment diagram of a method of printing a file in one embodiment;
FIG. 2 is a flow chart of a method for printing a document according to one embodiment;
FIG. 3 is a flowchart illustrating a step of acquiring a document to be printed in one embodiment;
FIG. 4 is a flow chart of another method of printing a document according to one embodiment;
FIG. 5 is a block diagram showing a configuration of a document printing apparatus according to an embodiment;
FIG. 6 is an internal block diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The application provides a file printing method, a file printing device, computer equipment, a storage medium and a computer program product, which are applied to the field of financial science and technology. The file printing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1, wherein the application environment comprises a terminal, a printing server and printing equipment, a browser and a printing client are deployed on the terminal, the terminal communicates with the printing server through a network, and the terminal can be in communication connection with the printing equipment in a wired or wireless mode.
The terminal can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices and the like, and the portable wearable devices can be smart watches, smart bracelets, head-mounted devices and the like; the printing server can be provided with data to be processed by the data storage printing server, and the data storage system can be integrated on the printing server or placed on a cloud or other network servers; the print server may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In an exemplary embodiment, as shown in fig. 2, a document printing method is provided, which is illustrated as an example of application of the method to the terminal in fig. 1, and includes the following steps S201 to S204. Wherein:
S201, responding to business file printing operation triggered by a business system page displayed in a browser window, and calling a printing client by the browser.
In a specific implementation, a user may log in to the service system through a browser, and at least one of the following operations may be performed in the service system: viewing, browsing, printing, downloading. In an embodiment, the business system may be a financial related business system, for example, the business system may be at least one of:
(1) Financial business processing system: the system can be used for financial institutions to process daily business, such as accounting, deposit, loan, settlement, fund, clearing, credit card, fixed property, internal financial accounting and other business systems.
(2) Risk management system: the system can be responsible for risk monitoring, assessment, control and management to ensure the safety and stability of financial services.
(3) Customer relationship management system: can be used for managing customer information, marketing management, customer service, etc.
(4) Asset management system: can be used to manage portfolio and asset risk.
(5) Network banking system: the method can be used for providing network banking service, and is convenient for clients to conduct financial transactions and queries anytime and anywhere.
(6) Insurance business system: the method can be used for processing and managing insurance business, such as insurance product management, customer management, insurance contract management, claim management and the like.
(7) Enterprise financial system: can be used for financial management and accounting.
In this embodiment, a user may browse a service system page corresponding to a service system through a browser window provided by a browser, and trigger a service file printing operation in the service system page displayed by the browser, where the service file printing operation may be an operation for requesting to print a specified service file. For example, for a business system page presented in a browser window, a link or control may be provided on the page that triggers printing of the file, and when a click operation for the link or control is detected, it may be determined that the user triggers the printing operation of the business file.
Further, in response to the business file printing operation, the browser on the terminal may invoke a print client, which may also be referred to as a print service client. For example, the browser may call the print client by executing a call function.
In some alternative embodiments, the print client may be a client software pre-installed on the terminal operating system, and the print client may interact with other applications (e.g., a browser) on the terminal and with the print server. In particular implementations, the print client may be developed based on a front-end development framework. In some examples, the print client may be developed based on an Electron development framework, where an Electron is to build a cross-platform desktop application framework using JavaScript, HTML and CSS, while an Electron supports a cross-platform cross-operating system, and may be compatible with Mac, windows, and Linux, to build three platform applications.
In other alternative embodiments, the print client may be an application deployed on the cloud or server, e.g., the print client may be developed and deployed by way of an applet, and the browser may implement a call to the print client by sending a corresponding request.
S202, displaying the candidate printing style templates through the printing client, and acquiring the target printing style templates based on the candidate printing style templates and the style template configuration information.
In practical applications, the print client may provide one or more candidate print style templates, where the print style templates may be used to set a style of content in a file to be printed, such as a template corresponding to a file having a standard format or a template of a financial instrument. Illustratively, the style of the print style template settings may include at least one of: font style, paragraph style, link style, table style, list style, picture style, page style; the font style may include a font, a font size, a font color, etc. of characters in the file to be printed, the paragraph style may include an alignment mode, a recess, a line space, a segment space, etc. of a paragraph, the link style may include a color, an underline style, etc. of a link, the table style may include a border, a background color, a text alignment mode, etc. of a table, the list style may include a number, a symbol, a recess, etc., the picture style may include a size, a position, a border, etc. of a picture, the page style may include a margin, a paper size, a paper direction, etc. of a page.
In this step, after the browser invokes the print client, at least one print style template may be exposed through the print client. After browsing the print style templates displayed by the print client, the user can input style template configuration information to the print client, and then the print client can acquire the target print style templates based on the candidate print style templates and the style template configuration information input by the user.
In an alternative embodiment, the style template configuration information may be a style template selection result, for example, for one or more candidate print style templates displayed by the print client, when a user selection operation on one of the candidate print style templates is detected, the style template selection result may be obtained, and the target print style template may be determined based on the candidate print style templates.
S203, acquiring a file to be printed based on the acquired printing content and the target printing style template.
After the target print style template is acquired, the target print style template may be applied to the print content acquired in advance, and the file to be printed is acquired. Wherein, the print content may be obtained from a service system.
S204, printing the file to be printed.
In this step, after the file to be printed is obtained, the print client may trigger the file to be printed to print the file to be printed, for example, control the printing device to print the file to be printed.
In some embodiments, the user may click on a control on the print client that triggers the printing of the file, in response to which the print client may obtain the setting data of the print device through a terminal communicatively connected to the print device, e.g., the print client may obtain the setting data of the print device through an operating system of the terminal, and then the print client may invoke a printer communicatively connected to the terminal (or the print client), execute a print script, and control the print device to print the file to be printed.
In the file printing method, in response to a service file printing operation triggered by a service system page displayed in a browser window, a printing client can be called by the browser, then a candidate printing style template is displayed through the printing client, a target printing style template is acquired based on the candidate printing style template and style template configuration information, and a file to be printed can be acquired based on the acquired printing content and the target printing style template; further, the document to be printed can be printed. In this embodiment, when a user triggers a print service file in a service system, a terminal may utilize data interaction between the service system and a browser, and between the browser and a print client, and the browser actively invokes the print client to print without triggering switching between different pages or applications by the user.
In one embodiment, before acquiring the file to be printed based on the acquired print content and the target print style template, the present application may acquire the print content by:
the browser obtains a service file identifier based on the service file printing operation and sends the service file identifier to a printing client; and the printing client sends a service file acquisition request carrying the service file identification to the printing server, and obtains printing content based on the service file returned by the printing server.
In some embodiments, the business file printing operation may be triggered by a page element in the business system page, such as clicking a link or button in the business system page, where the page element may be associated with a corresponding business file identification, e.g., the business file identification may be bound to the business element. In response to a service file printing operation triggered by a service system page displayed on a browser window by a user, the browser can perform the service file printing operation to obtain a service file identifier, for example, the service file identifier bound by a service element aimed at by the service file printing operation can be obtained.
The browser on the terminal may then transmit the service file identification to the print client. In an exemplary embodiment, when the browser sends a print request to the print client through a function (such as a hook function) to call the print client, the service file transmission identifier may be carried in the print request, so that the service file identifier may be transmitted to the print client while the print client is called, thereby improving the transmission efficiency of the service file identifier and saving processing time.
In practical application, the print client may communicate with the print server, where the print server may be associated with a corresponding data storage system, and the data storage system may store a plurality of service files of the service system. After the print client acquires the service file identifier, the print client can generate a service file acquisition request carrying the service file identifier, and send the service file acquisition request to the print server, so that the print server can be triggered to find the service file corresponding to the service file identifier, and the found service file is returned to the print client. After receiving the service file returned by the print server, the print client can acquire the print content based on the print file.
In this embodiment, after the browser detects the operation of printing the service file, the service file identifier may be obtained and sent to the print client, and then the service file is obtained from the print server by the print client and the print content is obtained, so that the user does not need to download the service file to the terminal first and then start related software to open the service file locally, and interface switching or related other operations triggered in the printing process of the user are reduced.
After acquiring the print content provided by the print server, in one embodiment, as shown in fig. 3, the step S103 of acquiring the file to be printed based on the acquired print content and the target print style template may include the steps of:
S301, applying the target printing style template to the printing content, and displaying the printing content after the application style template through a printing content editing page of the printing client.
In a specific implementation, after the print content is acquired from the print server, the target print style template may be applied to the acquired print content, for example, the style of the acquired print content, such as font style, position, line spacing, picture position, picture size, and specifically the adjusted object and adjustment manner may be determined according to the target print style template.
Furthermore, the print content to which the target print style template is applied can be displayed on a print content editing page provided by the print client, wherein the print content editing page can display a print preview effect, that is, an actual print effect of the current print content, and further support the user to edit the content displayed therein.
S302, in response to the content editing operation on the printing content editing page, the printing content after the style template is applied is adjusted, and the file to be printed is obtained based on the adjusted content.
After displaying the print content after applying the style template through the print content editing page, the user may perform a content editing operation on the print content editing page for the print content after applying the style template, where the content editing operation may include content editing of the print content and style editing of the print content, for example, characters in the print content editing page may be deleted, added, or modified, and the style of the print content may be changed. The printing client responds to the content editing operation triggered by the user on the printing content editing page, the printing content after the pattern template is applied can be adjusted, and the file to be printed can be obtained based on the adjusted content.
In this embodiment, the print content after the application style template is displayed through the print content editing page of the print client, and the print content is adjusted in response to the content editing operation, so that on one hand, the print effect can be previewed in advance without executing various triggering operations, and on the other hand, the print content can be directly modified without switching pages, and the print effect is effectively improved.
In one embodiment, in step S102, acquiring the target print style template based on the candidate print style template and style template configuration information may include the steps of:
S1021, receiving input style template configuration information, wherein the style template configuration information comprises a style template selection result and style template adjustment information.
Specifically, the style template configuration information may indicate a configuration manner of the print style template by the user; the style template selection result may be a print style template selected by the user from a plurality of candidate print style templates, and the style template adjustment information may indicate an adjustment manner of the selected print style template by the user.
In this step, the print client may receive style template configuration information input by the user. Specifically, for example, after the print client displays one or more candidate print style templates to the user, the user may select a print style template from the candidate print style templates, and then may adjust the selected print style template according to the actual situation, so that style template configuration information including a style template selection result and style template adjustment information may be obtained.
S1022, determining the selected printing style template in the candidate printing style templates according to the style template configuration information, and adjusting the selected printing style template according to the style template adjustment information to obtain the target printing style template.
Furthermore, after the style template configuration information is obtained, the print client can determine the print style template selected by the user from the candidate print style templates according to the style template configuration information, and then adjust the print style template by combining the style template adjustment information. Specifically, for example, the style template adjustment information includes style adjustment parameters, and the print client may adjust style parameters of the selected print style template according to the style adjustment parameters to obtain the target print style template.
In this embodiment, on the one hand, when a user needs to set a style for a content to be printed, by selecting a print style template from candidate print style templates provided by a print client, the user can be prevented from repeatedly performing a large number of complicated style setting processes, and on the other hand, by adjusting information according to a style template input by the user, the selected print style template can be flexibly adjusted according to actual conditions, so as to promote suitability of a finally obtained target print style template and the print content.
In one embodiment, after the print client obtains the candidate print style templates, all candidate print style templates that can be selected by the user may be listed in an interface of the print client. Wherein the template presentation item is operable to present information related to the print style template, illustratively, at least one of the following information may be included in the template presentation item: name of print style template, template identification of print style template, template instance of print style template (or template effect diagram).
Accordingly, after the target print style template is obtained in step S102, the method may further include the steps of:
A template storage instruction carrying style parameters corresponding to a target printing style template is sent to a printing server, and the template storage instruction is used for indicating the printing server to store the style parameters and generating a target template display item corresponding to the target printing style template; and updating the style display list based on the target template display item returned by the printing server.
Specifically, after a target printing style template obtained by adjustment according to style template adjustment information provided by a user is obtained, the printing client can obtain style parameters corresponding to the target printing style template, generate a template storage instruction carrying the style parameters and having the style parameters, and send the template storage instruction to the printing server.
In response to the received template storage instruction, the print server may store the style parameters carried in the template storage instruction, so as to save the target print style template, and the print server may generate a corresponding template display item, that is, a target template display item, for the target print style template, for example, may generate a template ID (Identity document) or a template name of the target print style template before or after storing the style parameters, so as to obtain the target template display item. The print server may then return the generated target template presentation item to the print client, which may update the style presentation list based on the target template presentation item.
In this embodiment, after the target print style template obtained after the adjustment of the user is obtained, on one hand, by saving style parameters corresponding to the target print style template in the print server, related data can be quickly obtained when the user subsequently uses the same target print style template again, and on the other hand, by updating the style display list based on the target template display item returned by the print server, the user is facilitated to quickly find the target template display item used before, the search time is reduced, and the multiplexing efficiency of the target template display item is improved.
In one embodiment, before the candidate print style templates are presented by the print client, the following apoptosis may be further included:
and acquiring authority information of a user account logged into the service system and providing the authority information to the printing client.
In practical application, when a user logs in to the service system through the browser, the authority information corresponding to the user in the service system can be obtained, and the authority information of the user can be determined according to the identity, the job, the occupation or the working characteristics of the user by way of example.
In some alternative embodiments, the browser may query the service system account authority for a request, where the request carries an account identifier of a user account used when the user logs in to the service system, where the browser may obtain authority information of the user account based on a query result returned by the service system, and provide the authority information of the user account to the print client together when the print client is invoked and a print request is sent to the print client.
In step S102, the presenting, by the print client, the candidate print style templates may include the steps of:
and the print client acquires the print style template matched with the authority information, and displays the template display item corresponding to the matched print style template in a style display list in the print client.
In practice, there may be a difference in the print style templates used by different users, for example, the style templates applied to the files each often requiring printing may be different for user a and user B with different roles, user a may often use the print style templates related to the financial billing, and user B may often use the print style templates related to the report.
In this regard, after the print client obtains the authority information of the user account, the print client may obtain a print style template that matches the authority information, and display a template display item corresponding to the print style template in a style display list in the print client.
In this embodiment, the template display item of the printing style template matched with the authority information of the user account is displayed in the style display list, so that the user can browse only the printing style template matched with the authority of the user account, the time for browsing irrelevant templates is reduced, an adaptive template matched with the actual use scene of the user is provided, and the template application efficiency of the user in the printing process is improved.
The print style template provided by the print client may support at least one of adding, deleting, modifying and querying, the user may initiate the at least one operation on the print style template through the print client, when the print client receives a corresponding request, such as a template adding request, a template deleting request, a template modifying request or a template querying request, the print client may determine whether to respond to the corresponding request according to authority information of the user account, for example, when the authority information does not satisfy a preset authority type, the print client may reject the corresponding received request, and when the authority information satisfies the preset authority type, the print client may perform corresponding adding, deleting, modifying or querying processing.
In one embodiment, the present application may further include the steps of:
collecting a printing operation record in the printing process by a printing client; and sending the printing operation record to a business system for storage.
In a specific implementation, the print client may collect a print operation record in the printing process, for example, after being called by the browser, the print client may continuously obtain the print operation record triggered by the user until the file to be printed is printed and the printing is finished. And then, the collected printing operation records can be sent to a business system for storage to form electronic archive records.
In some alternative embodiments, the user may perform a rollback operation based on the print operation record, e.g., in the case where there are two or more print operation records, the current operating state may be rolled back to the operating state corresponding to the previous print operation record. Or the printing operation record can be queried, for example, the content printed by the user and the operation executed in the printing process can be queried according to the printing operation record stored in the service system.
In the embodiment, the printing operation records are collected by the printing client and sent to the service system for storage, so that the adjustment records of the printing file can be marked and archived, and the management and reference efficiency is improved.
In order that those skilled in the art may better understand the above steps, an embodiment of the present application will be described below by way of an example, but it should be understood that the embodiment of the present application is not limited thereto.
As shown in fig. 4, a printing process is provided in which a user initiates a printing service from a browser, and printing of an entity file is completed through interaction of the browser, a printing client, a printing server and a printing device. In this example, the user may log into the business system at the browser and trigger a business file printing operation on the business system page presented in the browser window. In response to this operation, the browser can initiate a print request through the hooking function, and add a service file identification of the service file to be printed, such as a file ID, in the print request.
Further, the print client may be activated, acquire the file ID from the print request, and transmit the file ID to the print server. The print server side queries the file content according to the file ID, performs preprocessing on the file content obtained by query, and returns the preprocessed file data to the print client side, for example, the file data can be transmitted in a binary format mode or other modes.
After receiving the file data, the print client can present the received file data on a page of the print client, and list all preset print style templates which can be selected by a user in an unlimited form in the page of the print client, wherein the type of the print style template displayed by the print client can be determined according to the authority of the user. The user can select a desired print style template (e.g., a template corresponding to a file for describing strategic information of an organization) in the print client, and can make style fine adjustments, such as adjusting margins of a print file, based on the selected print style template, and in addition, the user can adjust the number of prints and select a print paper size.
After the user confirms printing and initiates a printing request, the printing client can determine the printing style template selected by the user, judge whether the terminal locally stores template data corresponding to the printing style template selected by the user, and if the terminal locally does not store the template data, initiate a request to the server to acquire the template data of the template selected by the user. When a request is sent, the print client can send the template ID corresponding to the template selected by the user to the print server together, and the print server reads the template data according to parameters including the template ID and then returns the template data to the print client.
After the print client acquires the template data returned by the print server or the template data locally stored by the terminal, the print client can render a print style, fill the content of the print file into the print style template selected by the user, present the print style to the user in a print content editing page, and enable the user to preview the print effect in the print content editing page or perform style adjustment or print content adjustment on the information presented in the page.
When the print client detects that the user clicks the control of the print button, the print client can read parameters of the print device through the terminal, for example, the print client can acquire the print device (such as a printer) selected by the user through the terminal, and determine corresponding parameters according to the selected print device, for example, set print parameters such as paper size, print number of copies and print direction according to the selected hardware printer. The print client may then call up a printer connected to the print client by executing the script, execute the print script, transmit the parameters to the printing device, and print out the physical file.
In addition, if a new print style template is added by the user in the printing process, for example, the obtained print style template is adjusted based on the original template, the print client can inquire whether the new print style template is stored by the user, and if not, the printing process can be ended. If yes, the print server may initiate a request to the server to send the template data of the print style template to the print server. The print server may store the template data, generate a template ID, then return information such as the template ID and name to the print client, and the print client may update the data in the template presentation list according to the data received from the print server, and then end the print flow.
In this example, the print service client may be developed by using the front-end development framework Electron tool, and based on the UI development advantage of the front end, the complex flow of the conventional printing and repeated operations of each time may be avoided, and a systematic operation interface may be provided, so that the file with the required format may be quickly printed out.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a file printing device for realizing the above related file printing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in one or more embodiments of the document printing device provided below may refer to the limitation of the document printing method hereinabove, and will not be repeated herein.
In one exemplary embodiment, as shown in fig. 5, there is provided a document printing apparatus including:
A client calling module 501, configured to call a print client by a browser in response to a service file printing operation triggered by a service system page displayed in a browser window;
The target style acquisition module 502 displays a candidate printing style template through the printing client, and acquires a target printing style template based on the candidate printing style template and style template configuration information;
a style application module 503, configured to obtain a file to be printed based on the obtained print content and the target print style template;
And the printing module 504 is used for printing the file to be printed.
In one embodiment, the target pattern obtaining module 502 is configured to:
Receiving input style template configuration information, wherein the style template configuration information comprises a style template selection result and style template adjustment information;
Determining a selected printing style template from the candidate printing style templates according to the style template configuration information, and adjusting the selected printing style template according to the style template adjustment information to obtain a target printing style template.
In one embodiment, the candidate print style templates are presented by a style presentation list of corresponding template presentation items in the print client;
The apparatus further comprises a style presentation list update module for:
A template storage instruction carrying a style parameter corresponding to the target printing style template is sent to a printing server, and the template storage instruction is used for instructing the printing server to store the style parameter and generating a target template display item corresponding to the target printing style template;
And updating the style display list based on the target template display item returned by the printing server.
In one embodiment, the style application module 503 is further configured to:
acquiring a service file identifier by the browser based on the service file printing operation, and sending the service file identifier to the printing client;
and the printing client sends a service file acquisition request carrying the service file identifier to a printing server, and obtains printing content based on the service file returned by the printing server.
In one embodiment, the style application module 503 is configured to:
applying the target printing style template to the printing content, and displaying the printing content after the application style template through a printing content editing page of the printing client;
and responding to the content editing operation on the printing content editing page, adjusting the printing content after the pattern template is applied, and obtaining the file to be printed based on the adjusted content.
In one embodiment, the target pattern obtaining module 502 is configured to:
Acquiring authority information of a user account logged in the service system and providing the authority information to the printing client;
And acquiring a printing style template matched with the authority information by the printing client, and displaying a template display item corresponding to the matched printing style template in a style display list in the printing client.
In one embodiment, the apparatus is further for:
collecting a printing operation record in a printing process by the printing client;
and sending the printing operation record to the service system for storage.
The respective modules in the above-described document printing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In an exemplary embodiment, a computer device, which may be a terminal, is provided, and an internal structure diagram thereof may be as shown in fig. 6. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of printing a document. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are both information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (11)

1. A method of printing a document, the method comprising:
Responding to a business file printing operation triggered by a business system page displayed in a browser window, and calling a printing client by the browser;
Displaying a candidate printing style template through the printing client, and acquiring a target printing style template based on the candidate printing style template and style template configuration information;
Acquiring a file to be printed based on the acquired printing content and the target printing style template;
And printing the file to be printed.
2. The method of claim 1, wherein the obtaining a target print style template based on the candidate print style template and style template configuration information comprises:
Receiving input style template configuration information, wherein the style template configuration information comprises a style template selection result and style template adjustment information;
Determining a selected printing style template from the candidate printing style templates according to the style template configuration information, and adjusting the selected printing style template according to the style template adjustment information to obtain a target printing style template.
3. The method of claim 2, wherein the candidate print style templates are presented by a style presentation list of corresponding template presentation items in the print client;
after the target print style template is obtained, the method further comprises:
A template storage instruction carrying a style parameter corresponding to the target printing style template is sent to a printing server, and the template storage instruction is used for instructing the printing server to store the style parameter and generating a target template display item corresponding to the target printing style template;
And updating the style display list based on the target template display item returned by the printing server.
4. The method of claim 1, further comprising, prior to the acquiring the file to be printed based on the acquired print content and the target print style template:
acquiring a service file identifier by the browser based on the service file printing operation, and sending the service file identifier to the printing client;
and the printing client sends a service file acquisition request carrying the service file identifier to a printing server, and obtains printing content based on the service file returned by the printing server.
5. The method of claim 4, wherein the obtaining a document to be printed based on the obtained print content and the target print style template comprises:
applying the target printing style template to the printing content, and displaying the printing content after the application style template through a printing content editing page of the printing client;
and responding to the content editing operation on the printing content editing page, adjusting the printing content after the pattern template is applied, and obtaining the file to be printed based on the adjusted content.
6. The method according to any one of claims 1 to 5, further comprising, prior to said exposing, by the print client, a candidate print style template:
Acquiring authority information of a user account logged in the service system and providing the authority information to the printing client;
The displaying, by the print client, the candidate print style templates includes:
And acquiring a printing style template matched with the authority information by the printing client, and displaying a template display item corresponding to the matched printing style template in a style display list in the printing client.
7. The method according to any one of claims 1 to 5, further comprising:
collecting a printing operation record in a printing process by the printing client;
and sending the printing operation record to the service system for storage.
8. A document printing apparatus, the apparatus comprising:
The client calling module is used for responding to the business file printing operation triggered by the business system page displayed in the browser window, and calling the printing client by the browser;
the target style acquisition module is used for displaying a candidate printing style template through the printing client and acquiring a target printing style template based on the candidate printing style template and style template configuration information;
the style application module is used for acquiring a file to be printed based on the acquired printing content and the target printing style template;
And the printing module is used for printing the file to be printed.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202410379598.3A 2024-03-29 2024-03-29 File printing method, apparatus, device, storage medium, and computer program product Pending CN118092827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410379598.3A CN118092827A (en) 2024-03-29 2024-03-29 File printing method, apparatus, device, storage medium, and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410379598.3A CN118092827A (en) 2024-03-29 2024-03-29 File printing method, apparatus, device, storage medium, and computer program product

Publications (1)

Publication Number Publication Date
CN118092827A true CN118092827A (en) 2024-05-28

Family

ID=91142001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410379598.3A Pending CN118092827A (en) 2024-03-29 2024-03-29 File printing method, apparatus, device, storage medium, and computer program product

Country Status (1)

Country Link
CN (1) CN118092827A (en)

Similar Documents

Publication Publication Date Title
US10841439B2 (en) Mobile solution for importing and signing third-party electronic signature documents
EP2732388B1 (en) Method for associating third party content with online document signing
US11763076B2 (en) Document applet generation
US8731973B2 (en) Overlaying images in automated insurance policy form generation
EP2849086A2 (en) Font management for editing electronic documents
US20080288471A1 (en) Apparatus and method for providing a data marketplace
CN112800370A (en) Business document processing method and device, computer equipment and storage medium
JP2018063501A (en) Information processing device and document display method, document display system and program
CN108363809A (en) A method of in PC client information input interface upload pictures
CA2853386C (en) Mobile solution for importing and signing third-party electronic signature documents
CN112819923A (en) Method and device for generating electronic business card and computer storage medium
JP2010003127A (en) Document management device, document management system, document management method and computer program
US10885408B2 (en) Document generation system, method of controlling the same, and non-transitory computer readable medium
US10917286B2 (en) Control method and information processing apparatus
CN114415911B (en) Data entry method and device
CN104769579A (en) List management in a document management system
CN118092827A (en) File printing method, apparatus, device, storage medium, and computer program product
CN112988090A (en) Method and device for data printing management
JP2011233104A (en) Information processing system, information processor, information processing method, program, and recording medium
US11630879B2 (en) Server and providing method
JP4530572B2 (en) Document creation system and document creation method
CN117435198A (en) Page generation method and device
CN118093535A (en) Method, device, computer equipment and storage medium for generating pdf of local webpage
CN117632056A (en) Method and system for printing and rendering engine of bill capable of being arranged
CN116797189A (en) Information processing method, apparatus, computer device, and storage medium

Legal Events

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