Page printing method, device, system, equipment and storage medium

By comparing URLs and calling the rendering server for remote printing, the problem of low printing success rate of non-Trident kernel browser pages is solved, achieving higher printing success rate and stability.

CN113778349BActive Publication Date: 2025-03-25BEIJING QIHOOD TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010526932.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-10
Publication Date
2025-03-25
Estimated Expiration
2040-06-10

AI Technical Summary

Technical Problem

Existing browser pages based on non-Trident kernels have low success rates, especially when using ActiveX plug-ins and Trident kernel business systems, the printing failure rate is high.

Method used

By detecting access requests and obtaining the corresponding URL and pre-stored configuration data, compare the URLs to determine whether remote printing is required. If necessary, obtain remote printing data and call the rendering server to print, supporting intermediate file and bitmap printing methods.

Benefits of technology

Improves the success rate of browser page printing based on non-Trident kernels, avoids the problem of local printing failure, and ensures that the page can be successfully printed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113778349B_ABST
    Figure CN113778349B_ABST
Patent Text Reader

Abstract

The present invention discloses a page printing method, device, system, equipment and storage medium. The page printing method includes the following steps: when an access request to a client website is detected and the page corresponding to the access request is remotely rendered successfully, a first URL corresponding to the access request is obtained, and a second URL in pre-stored configuration data is obtained; the first URL is compared with the second URL, and whether the page corresponding to the access request needs to be remotely printed is determined according to the comparison result obtained by the comparison; if it is determined according to the comparison result that the page needs to be remotely printed, the print data of the remote printing is obtained, and based on the print data, a rendering server is called to print the page. In the process of printing a page, the present invention avoids the failure of printing the page locally by calling the rendering server for remote page printing, thereby improving the success rate of printing the page, that is, improving the success rate of printing the page by a browser based on a non-Trident kernel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a page printing method, device, system, equipment and storage medium. Background Art

[0002] IE (Internet Explorer) is a closed-source browser based on Wintel architecture. Currently, some operating systems only support Blink kernel. In addition, there are a large number of business systems developed based on Trident kernel in this operating system environment, some of which use ActiveX plug-ins under Trident kernel to improve the business closed loop. ActiveX is Microsoft's name for a series of strategic object-oriented programming technologies and tools, among which the main technology is the component object model. However, due to the technical characteristics of this operating system, the terminal devices corresponding to this operating system cannot install and run the IE browser with Trident kernel normally, causing a great business fault. If the business system developed based on the Trident kernel of IE browser is not adapted and optimized, the page rendering may fail when accessed by a browser other than Trident kernel. At this time, when the business system also uses the ActiveX plug-in of IE kernel to interact with business data, the browser other than Trident kernel cannot complete the business interaction. If you want to print the page at this time, it cannot be printed successfully.

[0003] It can be seen that the current success rate of page printing based on browsers other than the Trident kernel is low. Summary of the invention

[0004] The main purpose of the present invention is to provide a page printing method, device, system, equipment and storage medium, aiming to solve the technical problem of low success rate of page printing in existing browsers based on non-Trident kernels.

[0005] To achieve the above object, the present invention provides a method for printing a page, the method comprising the steps of:

[0006] When an access request to access a client website is detected and the page corresponding to the access request is remotely rendered successfully, a first URL corresponding to the access request is obtained, and a second URL in the pre-stored configuration data is obtained;

[0007] Comparing the first URL with the second URL, and determining whether the page corresponding to the access request needs to be remotely printed according to a comparison result obtained by the comparison;

[0008] If it is determined according to the comparison result that the page needs to be remotely printed, the print data of the remote printing is obtained, and based on the print data, a rendering server is called to print the page.

[0009] Optionally, if it is determined according to the comparison result that the page needs to be remotely printed, the step of obtaining print data for the remote printing, and based on the print data, calling a rendering server to print the page includes:

[0010] If it is determined according to the comparison result that the page needs to be remotely printed, then obtaining print data for the remote printing, and determining a printing method according to the print data;

[0011] If it is determined that the printing method is intermediate file printing, triggering a first printing instruction, and sending the first printing instruction to a rendering server, so that the rendering server generates a printing language file after receiving the first printing instruction;

[0012] After the printing language file is acquired, the printing language file is determined as a printing file source for printing, so as to print the page.

[0013] Optionally, if it is determined according to the comparison result that the page needs to be remotely printed, after the step of obtaining the print data of the remote printing and determining the printing method according to the print data, the method further includes:

[0014] If it is determined that the printing mode is intermediate bitmap printing, triggering a second printing instruction, and sending the second printing instruction to a rendering server, so that the rendering server generates a bitmap image file after receiving the second printing instruction;

[0015] After the bitmap image file is acquired, the bitmap image file is determined as a print file source for printing, so as to print the page.

[0016] Optionally, when an access request to access a client website is detected and the remote rendering of a page corresponding to the access request is successful, the step of obtaining a first URL corresponding to the access request includes:

[0017] When an access request to a client website is detected, pre-stored configuration data is obtained, and according to the configuration data, whether a page corresponding to the access request needs to be remotely rendered is determined;

[0018] If it is determined that the page needs remote rendering, a rendering server is called to remotely render the page, and after the remote rendering of the page is successful, a first URL corresponding to the access request is obtained.

[0019] Optionally, after detecting an access request to the client website, before the step of acquiring pre-stored configuration data, the method further includes:

[0020] When a request for obtaining configuration data is detected, a protocol package name corresponding to the request is obtained;

[0021] Determine a domain name corresponding to the server according to the protocol package name, and send the acquisition request to the server through the domain name, so that the server returns configuration data corresponding to the acquisition request;

[0022] Receive the configuration data returned by the server and store the configuration data.

[0023] Optionally, after detecting an acquisition request for acquiring configuration data, before the step of acquiring a protocol package name corresponding to the acquisition request, the method further includes:

[0024] Check whether the current time is the time to obtain the configuration data;

[0025] If it is detected that the current time is the acquisition time for acquiring configuration data, an acquisition request is triggered.

[0026] Optionally, if it is determined that the page needs remote rendering, the step of calling the rendering server to remotely render the page includes:

[0027] If it is determined that the page needs remote rendering, detecting whether the page is remotely rendered for the first time;

[0028] If it is detected that the page is remotely rendered for the first time, obtaining the URL of the page;

[0029] Sending the URL of the page to a rendering scheduling server, so that the rendering scheduling server returns connection information of the rendering server;

[0030] A communication connection is established between the client and the rendering server according to the connection information, so as to call the rendering server to remotely render the page.

[0031] In addition, to achieve the above object, the present invention also provides a method for printing a page, the method comprising:

[0032] When the server receives the acquisition request sent by the client for acquiring configuration data, the server sends the configuration data to the client according to the acquisition request;

[0033] When the client detects an access request to access the client website and remotely renders the page corresponding to the access request according to the configuration data, obtains the first URL corresponding to the access request and obtains the second URL in the configuration data sent by the server;

[0034] Comparing the first URL with the second URL, and determining whether the page corresponding to the access request needs to be remotely printed according to a comparison result obtained by the comparison;

[0035] If it is determined according to the comparison result that the page needs to be remotely printed, the print data of the remote printing is obtained, and based on the print data, a rendering server is called to print the page.

[0036] Optionally, after the server receives the acquisition request for acquiring configuration data sent by the client, before the step of sending the configuration data to the client according to the acquisition request, the step further includes:

[0037] When the server detects a setting instruction for setting configuration data, the server sets the configuration data according to the setting instruction;

[0038] Acquire a second URL in the configuration data, determine the second URL as an index value of the configuration data, and determine other data in the configuration data except the second URL as key values;

[0039] A mapping relationship corresponding to the configuration data is established according to the index value and the key value, and the mapping relationship is stored in a preset database and a redis cache to store the configuration data.

[0040] Optionally, after the server receives the acquisition request for acquiring configuration data sent by the client, the step of sending the configuration data to the client according to the acquisition request includes:

[0041] When the server receives the acquisition request for acquiring configuration data sent by the client, the server acquires the mapping relationship corresponding to the configuration data in the redis cache according to the acquisition request;

[0042] The mapping relationship is sent to the client, so as to send the configuration data to the client.

[0043] Optionally, the page rendering method further includes:

[0044] If the server detects a change instruction for changing the configuration data, the server changes the configuration data according to the change instruction, wherein the change instruction includes at least one of the following instructions: an add instruction, a modify instruction, and a delete instruction.

[0045] In addition, to achieve the above-mentioned purpose, the present invention also provides a page printing device, the page printing device comprising:

[0046] An acquisition module, for acquiring a first URL corresponding to the access request and a second URL in pre-stored configuration data when an access request to access a client website is detected and the remote rendering of a page corresponding to the access request is successful;

[0047] A comparison module, used for comparing the first URL with the second URL;

[0048] A determination module, used to determine whether the page corresponding to the access request needs to be remotely printed according to the comparison result obtained by comparison;

[0049] The acquisition module is further used for acquiring the print data of the remote printing if it is determined according to the comparison result that the page needs to be remotely printed;

[0050] The printing module is used to call the rendering server to print the page based on the printing data.

[0051] In addition, to achieve the above-mentioned purpose, the present invention also provides a page printing system, the page printing system comprising a client and a server;

[0052] The server is configured to, upon receiving a request from a client to obtain configuration data, send the configuration data to the client according to the request;

[0053] The client is used to, when an access request to access a client website is detected and the page corresponding to the access request is remotely rendered according to the configuration data, obtain a first URL corresponding to the access request and obtain a second URL in the configuration data sent by the server; compare the first URL with the second URL, and determine whether the page corresponding to the access request needs to be remotely printed based on a comparison result obtained by the comparison; if it is determined that the page needs to be remotely printed based on the comparison result, obtain the print data of the remote printing, and based on the print data, call the rendering server to print the page.

[0054] In addition, to achieve the above-mentioned purpose, the present invention also provides a page printing device, which includes a memory, a processor, and a page printing program stored in the memory and executable on the processor, and when the page printing program is executed by the processor, the steps of the page printing method corresponding to the federated learning server are implemented.

[0055] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a page printing program is stored, and when the page printing program is executed by a processor, the steps of the page printing method described above are implemented.

[0056] The present invention detects an access request to a client website and the remote rendering of the page corresponding to the access request succeeds. Then, the first URL corresponding to the access request and the second URL in the pre-stored configuration data are obtained. If the comparison result obtained by comparing the first URL with the second URL determines that the page corresponding to the access request needs to be remotely printed, the print data of the remote printing is obtained, and based on the print data, the rendering server is called to print the page. In the process of printing a page, the remote page printing is realized by calling the rendering server, so that the failure of printing the page locally is avoided, thereby improving the success rate of printing the page, that is, improving the success rate of printing the page by the browser based on the non-Trident kernel. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 It is a flow chart of a first embodiment of a method for printing a page of the present invention;

[0058] Figure 2 is a flow chart of a third embodiment of a method for printing a page of the present invention;

[0059] Figure 3 It is a functional schematic diagram module diagram of a preferred embodiment of a printing device for a page of the present invention;

[0060] Figure 4 It is a structural diagram of the hardware operating environment involved in the embodiment of the present invention.

[0061] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0062] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0063] According to a page printing method provided by the present invention, referring to Figure 1 , Figure 1 FIG. 4 is a flow chart of a first embodiment of a method for printing a page of the present invention.

[0064] According to the page printing method provided by the present invention, it should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0065] The page printing method is applied to the client, which may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, and fixed terminals such as digital TVs and desktop computers. The page printing method includes:

[0066] Step S11, when an access request to access a client website is detected and the page corresponding to the access request is successfully remotely rendered, a first URL corresponding to the access request is obtained, and a second URL in the pre-stored configuration data is obtained.

[0067] When the client detects an access request to the client website and determines that the page corresponding to the access request is successfully rendered remotely, the client obtains the URL (Uniform Resource Locator) corresponding to the access request and records the URL corresponding to the access request as the first URL. It can be understood that the URL is the URL of the website that the access request needs to access, and each website has a corresponding page. It should be noted that the client in this embodiment is installed with a browser, and the website is the website of the business system corresponding to the browser. The access request can be triggered by the client user in the client, or the client can receive an access request sent by other terminal devices. The client obtains the pre-stored configuration data, and after obtaining the pre-stored configuration data, obtains the URL in the configuration data, and records the URL obtained from the configuration data as the second URL.

[0068] Step S13: compare the first URL with the second URL, and determine whether the page corresponding to the access request needs to be remotely printed according to a comparison result.

[0069] After the client obtains the first URL and the second URL, the client compares the first URL and the second URL, and determines whether the page corresponding to the access request needs to be remotely printed according to the comparison result. Remote printing is an operation to print a page when a non-trident kernel-based browser accesses a trident kernel-based web page, and a local non-trident kernel browser cannot obtain a print intermediate file or a bitmap image file, so remote printing is required.

[0070] In this embodiment, there are two comparison results. One is that the first URL and the second URL are the same, and the second URL has a corresponding requirement identifier that requires a printing function, that is, the configuration data includes "requires a printing function", then the comparison result is that the page corresponding to the access request needs to be remotely printed; the other is that the first URL and the second URL are not the same, and / or the first URL does not have a corresponding requirement identifier that requires a printing function, in which case the comparison result is that the page corresponding to the access request does not need to be remotely printed. When the client determines that the first URL is the same as the second URL according to the comparison result, and the second URL has a corresponding requirement identifier that requires a printing function, the client determines that the page corresponding to the access request needs to be remotely printed; when the client determines that the first URL is different from the second URL according to the comparison result, and / or the second URL does not have a corresponding requirement identifier that requires a printing function, the client determines that the page corresponding to the access request does not need to be remotely printed. In this embodiment, the client can determine the comparison result according to the result identifier. In this embodiment, the form of expression of the result identifier is not limited.

[0071] Step S15: If it is determined according to the comparison result that the page needs to be remotely printed, the print data of the remote printing is obtained, and based on the print data, a rendering server is called to print the page.

[0072] When the client determines that the page needs to be remotely printed based on the comparison result, the client obtains the print data of the remote printing, and based on the print data, calls the rendering server to print the page. Specifically, printing the page includes printing the entire page, printing a part of the page, or printing a file of the page. The print data includes but is not limited to the name, print time, and print method corresponding to the print page.

[0073] Further, step S15 includes:

[0074] Step a: if it is determined according to the comparison result that the page needs to be remotely printed, then the print data of the remote printing is obtained, and the printing method is determined according to the print data.

[0075] If the client determines that the page needs to be printed remotely based on the comparison result, the client obtains the print data of the remote printing and determines the printing method based on the print data. Specifically, the client determines the printing method based on the clarity and resolution of the printed page. In this embodiment, there are three printing methods, namely local printing, intermediate file printing and intermediate bitmap printing, among which the clarity and resolution of the page printed by the intermediate file printing method are the best, the clarity and resolution of the page printed by the intermediate bitmap printing method are lower than the clarity and resolution of the page printed by the intermediate file printing method, and the clarity and resolution of the page printed by the local printing method are the lowest, that is, the clarity and resolution of the page printed by the local printing method are lower than the clarity and resolution of the page printed by the intermediate file printing method and the intermediate bitmap printing method. It should be noted that in this embodiment, each printing method has a corresponding method identifier, and the printing method can be determined by the method identifier. This embodiment does not limit the expression form of the method identifier. The specific selection of the printing method can be pre-set by the client user.

[0076] Step b: if it is determined that the printing method is intermediate file printing, triggering a first printing instruction, sending the first printing instruction to a rendering server, so that the rendering server generates a printing language file after receiving the first printing instruction.

[0077] Step c: after acquiring the printing language file, determining the printing language file as a printing file source for printing, so as to print the page.

[0078] If the client determines that the printing method is intermediate file printing, the client automatically triggers the first printing instruction and sends the first printing instruction to the rendering server. When the rendering server receives the first printing instruction, the rendering server generates a printing language file according to the first printing instruction. The first printing instruction may carry printing data, so that the rendering server can determine the specific page to be printed according to the printing data. The printing language file includes a PS (PostScript) language file and a PCL (Printer Command Language) language file. Specifically, the rendering server can generate the printing language file through the Trident kernel, that is, the rendering server can call the target website of the Trident kernel to generate the printing language file. After the rendering server generates the printing language file, the rendering server sends the printing language file to the client. When the client receives the printing language file, that is, after obtaining the printing language file, the client refreshes the print preview effect, and when detecting the third printing instruction, prints the printing language file as the printing file source to print the page. The third printing instruction can be triggered by the client user by clicking the print button in the client as needed, or it can be a printing language file automatically triggered by the client after obtaining the printing language file. The print button can be a virtual button or a physical button.

[0079] Further, after the rendering server generates the print language file, the rendering server sends the print language file to the file server. After the file server receives the print language file, the file server stores the print language file, generates a storage path for the print language file, and sends the storage path for the print language file to the rendering server. After the rendering server receives the storage path, the rendering server sends the storage path to the client. The client receives the storage path sent by the rendering server, and then obtains the print language file from the file server according to the storage path.

[0080] Furthermore, the page printing method further includes:

[0081] Step d: if it is determined that the printing mode is intermediate bitmap printing, a second printing instruction is triggered, and the second printing instruction is sent to a rendering server, so that the rendering server generates a bitmap image file after receiving the second printing instruction.

[0082] Step e: after acquiring the bitmap image file, determining the bitmap image file as a print file source for printing to print the page.

[0083] If the client determines that the printing method is intermediate bitmap printing, the client automatically triggers the second printing instruction and sends the second printing instruction to the rendering server. When the rendering server receives the second printing instruction, the rendering server generates a bitmap image file of the required printing page through the Trident kernel. The second printing instruction may carry printing data, so that the rendering server can determine the specific page to be printed according to the printing data. Specifically, the rendering server can call the target website of the Trident kernel to generate a bitmap image file. After the rendering server generates the bitmap image file, the rendering server sends the bitmap image file to the client. When the client receives the bitmap image file, that is, after obtaining the bitmap image file, the client refreshes the print preview effect, and when the third printing instruction is detected, the bitmap image file is used as the print file source to print the page.

[0084] Further, after the rendering server generates the bitmap image file, the rendering server sends the bitmap image file to the file server. After the file server receives the bitmap image file, the file server stores the bitmap image file, generates a storage path for the bitmap image file, and sends the storage path for the bitmap image file to the rendering server. After the rendering server receives the storage path, the rendering server sends the storage path to the client. The client receives the storage path sent by the rendering server, and then obtains the bitmap image file from the file server according to the storage path.

[0085] It can be seen that this embodiment achieves that during the page printing process, the print file source is obtained from the browser of the real Trident kernel through the rendering server, thereby avoiding the browser of the non-Trident kernel from being unable to complete the business interaction, successfully obtaining the print file source, and improving the success rate of page printing based on the browser of the non-Trident kernel.

[0086] Furthermore, if the client determines that the printing method is local printing, that is, it determines that the page corresponding to the access request does not need to be printed remotely, the client prints the page to be printed through its browser. It should be noted that the local printing will have a relatively poor printing effect because the page remote rendering is redrawn locally with Canvas, that is, the clarity and resolution of the printing will be lower than that of intermediate bitmap printing and intermediate file printing. It should be noted that the local browser of the client is a non-Trident kernel browser, while the browser of the target website is a Trident kernel browser.

[0087] This embodiment, when an access request to a client website is detected and the page corresponding to the access request is remotely rendered successfully, obtains the first URL corresponding to the access request and the second URL in the pre-stored configuration data. If it is determined that the page corresponding to the access request needs to be remotely printed based on the comparison result obtained by comparing the first URL with the second URL, the print data of the remote printing is obtained, and based on the print data, the rendering server is called to print the page. In the process of printing a page, remote page printing is achieved by calling the rendering server, avoiding the failure of printing the page locally, thereby improving the success rate of printing the page, that is, improving the success rate of printing the page by the browser based on the non-Trident kernel.

[0088] It should be noted that when the client needs to access a business system based on the IE kernel, the page rendering method in this embodiment can solve the problem of being unable to access the page normally, thereby improving the operational integrity of the business system; individual users do not need to select a Wintel architecture operating system environment to normally access business application websites with IE kernel features.

[0089] Furthermore, a second embodiment of a method for printing a page is proposed. The difference between the second embodiment of the method for printing a page and the first embodiment of the method for printing a page is that when an access request to access a client website is detected and the remote rendering of the page corresponding to the access request is successful, the step of obtaining the first URL corresponding to the access request includes:

[0090] Step f, when an access request to access the client website is detected, obtaining pre-stored configuration data, and determining whether the page corresponding to the access request needs remote rendering according to the configuration data.

[0091] When the client detects an access request to the client website, the client obtains the pre-stored configuration data and determines whether the page corresponding to the client website needs remote rendering based on the configuration data. The configuration data includes but is not limited to URL, kernel version, JS (JavaScript) engine version, rendering scheduling service configuration data, whether ActiveX plug-in is included, whether to upload and download files, whether printing function is required, and rendering scheduling service. Among them, the kernel version is the version of the browser in the client, and the rendering scheduling service configuration data includes the rendering server IP (Internet Protocol) address, rendering server port and connectionless release rendering server time, etc. In this embodiment, the kernel can be a Trident kernel or other kernels. The kernel version and the JS engine version have corresponding version numbers, and the ActiveX plug-in and the printing function have corresponding requirement identifiers. For example, when the requirement identifier corresponding to the ActiveX plug-in is "1", it indicates that the ActiveX plug-in is contained; when the requirement identifier corresponding to the ActiveX plug-in is "0", it indicates that the ActiveX plug-in is not contained. When the requirement identifier corresponding to the printing function is "11", it indicates that the printing function is required; when the requirement identifier corresponding to the printing function is "00", it indicates that the printing function is not required. In this embodiment, the expression form of the requirement identifier is not limited, and the requirement identifiers corresponding to different configuration data can be the same or different.

[0092] It should be noted that each webpage corresponding to the website has a corresponding URL, and in this embodiment, the URL of the webpage is recorded as the first URL. The client obtains the URL in the configuration data, and records the URL obtained from the configuration data as the second URL.

[0093] After the client obtains the first URL and the second URL, if the client determines that the first URL and the second URL are the same, and there is a corresponding rendering scheduling service for the second URL, that is, there is a rendering scheduling service in the configuration data, the client determines that the page corresponding to the website needs to be remotely rendered; if the client determines that the first URL and the second URL are not the same, and / or there is no corresponding rendering scheduling service for the first URL, the client determines that there is no need to remotely render the page corresponding to the website.

[0094] Step g: if it is determined that the page needs remote rendering, calling a rendering server to remotely render the page, and after the remote rendering of the page is successful, obtaining a first URL corresponding to the access request.

[0095] If the client determines that the page needs to be rendered remotely, the client calls the rendering server to remotely render the page through the rendering server, and after the remote rendering of the page is successful, the client obtains the first URL corresponding to the access request. Further, if the client determines that the page does not need to be rendered remotely, the client renders the page locally. It should be noted that the rendering process is actually to go to the corresponding web page through a customized browser and the set Trident kernel version, JS engine version and other configurations, and then encapsulate the process data of the web page rendering, return it to the client through a persistent connection, and then perform the image processing process so that the response data corresponding to the access request received by the client is displayed in the client. After the page is rendered successfully, the client establishes the corresponding data interaction and data display channel to achieve the effect of normal access, that is, the access request can be executed normally.

[0096] It should be noted that when the page is successfully rendered remotely, the client can start to actually access the target website based on the Trident kernel of the IE browser, and return relevant page data, and return real-time images in the form of Mpeg (Moving Picture Experts Group) video streams (i.e., return page data in the form of video streams) through long connection communication with the browser client, and then draw it into the display interface of the browser client using Canvas technology. Furthermore, the page data can also be in Mpeg-1 format, which is implemented by using JS-Mpeg transformation. Mpeg uses key frame and differential frame compression technology. At this time, after the rendering server obtains the first full image transmission, the subsequent interface changes are displayed using differential frames to overlay, so as to greatly reduce the transmission data and improve the transmission efficiency of data transmission between the client and the rendering server.

[0097] Furthermore, if it is determined that the page needs remote rendering, the step of calling a rendering server to remotely render the page includes:

[0098] Step g2: if it is determined that the page needs remote rendering, then detect whether the page is remotely rendered for the first time.

[0099] Step g4: if it is detected that the page is remotely rendered for the first time, the URL of the page is obtained.

[0100] If the client determines that the page needs to be remotely rendered, the client detects whether the page is remotely rendered for the first time. Specifically, the client can detect whether there is a corresponding rendering server for the page. If it is determined that there is a corresponding rendering server for the page, the client determines that this is not the first time the page is remotely rendered; if it is determined that there is no corresponding rendering server for the page, the client determines that this is the first time the page is remotely rendered. If the client detects that this is the first time the page is remotely rendered, the client obtains the URL of the page. It can be understood that the URL of the page is the first URL. When the correspondence between the URL of the page and the rendering server connection information is stored in the client, it indicates that there is a corresponding rendering server for the page.

[0101] Step g6, sending the URL of the page to the rendering scheduling server, so that the rendering scheduling server returns the connection information of the rendering server.

[0102] Step g8: establishing a communication connection between the client and the rendering server according to the connection information, so as to call the rendering server to remotely render the page.

[0103] After the client obtains the URL of the page, the client sends the URL of the page to the rendering scheduling server. It should be noted that the rendering scheduling server corresponds to at least one rendering server. The rendering server in this embodiment is a cluster and is managed by the rendering scheduling server. The rendering scheduling server can determine which page needs remote rendering through the URL of the page. After the rendering scheduling server receives the URL of the page, the rendering scheduling server determines the rendering server that performs remote rendering on the page, obtains the connection information of the rendering server, and sends the connection information to the client. Among them, the connection information includes but is not limited to the connection address of the rendering server and the connection method for connecting to the rendering server. In this embodiment, the user can set the communication protocol corresponding to the connection method according to specific needs, such as a public or private communication protocol. After the client obtains the connection information, the client determines the connection address of the rendering server and the connection method for connecting to the rendering server according to the connection information, and determines the specific rendering server to be connected according to the connection address, and then connects to the rendering server determined according to the connection address in the determined connection method, establishes a communication connection with the rendering server, and calls the rendering server to perform remote rendering on the page. The connection method in this embodiment is a long connection, preferably a Websocket long connection.

[0104] Specifically, when the rendering scheduling server receives the URL of the page, the rendering scheduling server determines a rendering server that is in an idle state, and determines the rendering server that is in an idle state as the rendering server that renders the page. Specifically, the rendering scheduling server can determine, based on the load balancing strategy, a rendering server whose resource utilization is less than a preset value as the rendering server that renders the page. In this embodiment, the size of the preset value is not limited. When the rendering scheduling server determines that there are at least two rendering servers whose resource utilization is less than the preset value, the rendering scheduling server can randomly select a rendering server whose resource utilization is less than the preset value according to the load balancing strategy to determine it as the rendering server that renders the page, or select a rendering server with the smallest resource utilization to determine it as the rendering server that renders the page.

[0105] Furthermore, if the client detects that this is not the first time that the page is remotely rendered, that is, the client has remotely rendered the page before, the client stores the connection information of the corresponding rendering server when the page is remotely rendered. In the client, the connection information of the rendering server is stored in association with the URL of the page, so the client can obtain the corresponding connection information through the URL of the page and establish a communication connection with the rendering server according to the connection information.

[0106] During the page rendering process, this embodiment calls the rendering server to remotely render the web page, so that the web page of the non-Trident kernel browser can be remotely rendered, avoiding the non-Trident kernel browser from being unable to complete business interaction due to page rendering failure, thereby improving the success rate of business interaction of the non-Trident kernel browser, that is, improving the success rate of business data interaction.

[0107] Furthermore, the page printing method further includes:

[0108] Step h: when a request for acquiring configuration data is detected, a protocol package name corresponding to the request is acquired.

[0109] Step i, determining the domain name corresponding to the server according to the protocol package name, and sending the acquisition request to the server through the domain name, so that the server returns the configuration data corresponding to the acquisition request.

[0110] When the client detects the acquisition request for obtaining configuration data, the client obtains the protocol package name corresponding to the acquisition request. It should be noted that the communication protocol between the client and the server can be determined through the protocol package. The acquisition request can be triggered by the client user as needed, or triggered by the client at a fixed time. After the client obtains the protocol package name, the client obtains the domain name in the protocol package name, and determines the acquired domain name as the domain name corresponding to the server, and establishes a connection relationship with the server through the domain name. After the client establishes a connection relationship with the server, the client sends the acquisition request to the server to obtain the configuration data in the server through the acquisition request. It can be understood that the domain name is part of the protocol package name. After the server receives the acquisition request, the server will return the configuration data corresponding to the acquisition request to the client according to the acquisition request. In the acquisition request, the URL corresponding to the configuration data to be obtained is carried, and the server can determine the configuration data to be returned to the client through the URL.

[0111] Step j, receiving the configuration data returned by the server, and storing the configuration data.

[0112] After the client receives the configuration data sent by the server, the client stores the configuration data. Specifically, the client may store the configuration data in JSON (JavaScript Object Notation) format.

[0113] Furthermore, the page printing method further includes:

[0114] Step m: detecting whether the current time is the acquisition time for acquiring configuration data.

[0115] Step n: If it is detected that the current time is the acquisition time for acquiring configuration data, an acquisition request is triggered.

[0116] The client detects whether the current time is the acquisition time corresponding to the configuration data at a fixed time or in real time. In this embodiment, the client will obtain the configuration data from the server at a fixed time. The duration corresponding to the fixed time can be set according to specific needs. This embodiment does not impose specific restrictions on the duration corresponding to the fixed time. Specifically, the client records the historical acquisition time of the configuration data obtained from the server last time, and calculates the time difference between the historical acquisition time and the current time. If the time difference is equal to or greater than the duration corresponding to the fixed time, the client can determine that the current time is the acquisition time corresponding to the configuration data; if the time difference is less than the duration corresponding to the fixed time, the client determines that the current time is not the acquisition time corresponding to the configuration data. If the client detects that the current time is the acquisition time corresponding to the configuration data, the client automatically triggers the acquisition request for obtaining the configuration data; if the client detects that the current time is not the acquisition time corresponding to the configuration data, the client continues to detect whether the current time is the acquisition time corresponding to the configuration data. It can be understood that in this embodiment, the client will periodically poll the interface of the server to obtain the latest configuration data.

[0117] The client in this embodiment periodically obtains configuration data from the server to determine whether the page needs remote rendering according to the periodically obtained configuration data, thereby improving the success rate of page rendering in the client.

[0118] Furthermore, a third embodiment of a method for printing a page is proposed. Figure 2 , the page printing method further includes:

[0119] Step S31, after receiving the acquisition request for acquiring configuration data sent by the client, the server sends the configuration data to the client according to the acquisition request.

[0120] Step S33, when the client detects an access request to access the client website and remotely renders the page corresponding to the access request according to the configuration data, obtains the first URL corresponding to the access request and obtains the second URL in the configuration data sent by the server.

[0121] Step S35: compare the first URL with the second URL, and determine whether the page corresponding to the access request needs to be remotely printed according to a comparison result.

[0122] Step S37: If it is determined according to the comparison result that the page needs to be remotely printed, the print data of the remote printing is obtained, and based on the print data, a rendering server is called to print the page.

[0123] When the server receives the acquisition request for obtaining configuration data sent by the client, the server determines the configuration data that needs to be sent to the client based on the acquisition request, and sends the determined configuration data to the client. Specifically, the server can determine which configuration data needs to be sent to the client based on the information such as the URL carried in the acquisition request. When the client detects an access request to access the client's website, and remotely renders the page corresponding to the access request according to the configuration data, it obtains the first URL corresponding to the access request, and obtains the second URL in the configuration data sent by the server, compares the first URL with the second URL, and determines whether the page corresponding to the access request needs to be remotely printed based on the comparison result obtained by the comparison. If it is determined that the page needs to be remotely printed based on the comparison result, the print data of the remote printing is obtained, and based on the print data, the rendering server is called to print the page. It should be noted that the specific implementation process of step S33, step S35 and step S37 has been described in detail in the first embodiment, and will not be repeated here.

[0124] In this embodiment, after the server receives the acquisition request for acquiring configuration data sent by the client, the server sends the configuration data to the client according to the acquisition request. When an access request to access the client's website is detected and the remote rendering of the page corresponding to the access request is successful, the server acquires the first URL corresponding to the access request and the second URL in the pre-stored configuration data. If the comparison result obtained by comparing the first URL with the second URL determines that the page corresponding to the access request needs to be remotely printed, the print data for remote printing is acquired, and based on the print data, the rendering server is called to print the page. In the process of printing a page, the server can be called to print the page remotely, thereby avoiding the failure of printing the page locally, thereby improving the success rate of printing the page, that is, improving the success rate of printing the page by the browser based on the non-Trident kernel.

[0125] Furthermore, the page printing method further includes:

[0126] Step o: when the server detects a setting instruction for setting configuration data, the server sets the configuration data according to the setting instruction.

[0127] Step p: obtaining a second URL in the configuration data, determining the second URL as an index value of the configuration data, and determining other data in the configuration data except the second URL as key values.

[0128] Step q: establishing a mapping relationship corresponding to the configuration data according to the index value and the key value, and storing the mapping relationship in a preset database and a redis cache to store the configuration data.

[0129] Further, when the server detects the setting instruction for setting the configuration data, the server sets the configuration data according to the setting instruction, wherein the setting instruction is triggered by the server user according to specific needs. After the server sets the configuration data according to the setting instruction, the server obtains the second URL in the configuration data, determines the second URL as the index value of the configuration data, and determines other data in the configuration data except the second URL as key values, such as determining the kernel version, JS engine version, rendering scheduling service configuration data, whether ActiveX plug-in is included, whether to upload and download files, whether printing function is required, and rendering scheduling service as key values. After the server determines the index value and key value, the server establishes a mapping relationship corresponding to the configuration data according to the index value and key value, and stores the mapping relationship in a pre-set database and redis cache to store the configuration data. It can be understood that the configuration data in this embodiment is stored in the form of a mapping relationship. In this embodiment, the preset database can be a mysql database or other databases. Further, after the server obtains the configuration data, the server stores the configuration data in the redis cache in the format of a JSON array.

[0130] Further, step S31 includes:

[0131] Step w: after receiving the acquisition request for acquiring configuration data sent by the client, the server acquires the mapping relationship corresponding to the configuration data in the redis cache according to the acquisition request.

[0132] Step y: sending the mapping relationship to the client to send the configuration data to the client.

[0133] Furthermore, when the server receives the acquisition request sent by the client to obtain configuration data, the server obtains the mapping relationship corresponding to the configuration data in the redis cache according to the acquisition request, and sends the mapping relationship to the client, that is, sends the configuration data to the client. It should be noted that when the client needs to obtain configuration data, the server obtains the configuration data from the redis cache and sends it to the client, and does not need to obtain the configuration data from the preset database and send it to the client. Since the efficiency of obtaining configuration data in the redis cache is higher than that of obtaining configuration data in the preset database, the efficiency of sending configuration data by the server is improved, and the efficiency of obtaining configuration data by the client is improved.

[0134] Furthermore, the page printing method further includes:

[0135] Step r: if the server detects a change instruction for changing the configuration data, the server changes the configuration data according to the change instruction, wherein the change instruction includes at least one of the following instructions: an add instruction, a modify instruction, and a delete instruction.

[0136] When the server detects a change instruction to change the configuration data, the server changes the configuration data according to the update instruction, wherein the change instruction includes at least one of the following instructions: an add instruction, a modify instruction, and a delete instruction. The add instruction can be to add new configuration data to the configuration data. If there is no printing function in the configuration data, the server can add the printing function to the configuration data according to the add instruction. The modify instruction is to modify the original configuration data of the server, such as the server modifies the rendering scheduling service configuration data in the configuration data according to the modify instruction. The delete instruction is to delete the data in the configuration data, such as the server deletes the printing function in the configuration data according to the delete instruction. When there is no update range in the configuration data, it indicates that the web page does not have a printing function. Further, when the server changes the configuration data, the server will store the changed configuration data in the preset database and redis cache. Further, when the server obtains the changed configuration data, the server can also directly send the changed configuration data to the client.

[0137] This embodiment updates the configuration data by changing the instruction, thereby avoiding the configuration data from being unchanged, and can update the configuration data regularly to ensure that the client can obtain the latest configuration data, thereby further improving the success rate of client web page rendering.

[0138] In addition, a page printing device is provided, referring to Figure 3 , the printing device of the page includes:

[0139] The acquisition module 10 is used to acquire the first URL corresponding to the access request and the second URL in the pre-stored configuration data when an access request to access the client website is detected and the remote rendering of the page corresponding to the access request is successful;

[0140] A comparison module 20, configured to compare the first URL with the second URL;

[0141] A determination module 30, configured to determine whether the page corresponding to the access request needs to be remotely printed according to the comparison result obtained by the comparison;

[0142] The acquisition module 10 is further configured to acquire print data for remote printing if it is determined according to the comparison result that the page needs to be remotely printed;

[0143] The printing module 70 is used to call the rendering server to print the page based on the printing data.

[0144] Furthermore, the printing module 70 includes:

[0145] A first determining unit, configured to determine a printing mode according to the printing data;

[0146] A trigger unit, configured to trigger a first printing instruction if it is determined that the printing mode is intermediate file printing;

[0147] a sending unit, configured to send the first printing instruction to a rendering server, so that the rendering server generates a printing language file after receiving the first printing instruction;

[0148] The first determining unit is further configured to determine the printing language file as a printing file source for printing after acquiring the printing language file, so as to print the page.

[0149] Furthermore, the trigger unit is further configured to trigger a second printing instruction if it is determined that the printing mode is intermediate bitmap printing;

[0150] The sending unit is further used to send the second printing instruction to the rendering server, so that the rendering server generates a bitmap image file after receiving the second printing instruction;

[0151] The first determining unit is further configured to determine the bitmap image file as a print file source for printing after acquiring the bitmap image file, so as to print the page.

[0152] Furthermore, the acquisition module 10 includes:

[0153] An acquisition unit, used to acquire pre-stored configuration data after detecting an access request to access a client website;

[0154] A second determining unit, configured to determine whether a page corresponding to the access request needs remote rendering according to the configuration data;

[0155] A calling unit, configured to call a rendering server to remotely render the page if it is determined that the page needs remote rendering;

[0156] The acquisition unit is further configured to acquire a first URL corresponding to the access request after the page is remotely rendered successfully.

[0157] Furthermore, the acquisition module 10 is also used to acquire the protocol package name corresponding to the acquisition request after detecting the acquisition request for acquiring configuration data;

[0158] The determination module 30 is also used to determine the domain name corresponding to the server according to the protocol package name;

[0159] The printing device of the page also includes:

[0160] A sending module, used to send the acquisition request to the server through the domain name, so that the server returns configuration data corresponding to the acquisition request;

[0161] The receiving module is used to receive the configuration data returned by the server and store the configuration data.

[0162] Furthermore, the page printing device also includes:

[0163] A detection module, used to detect whether the current time is the acquisition time for acquiring configuration data;

[0164] The trigger module is used to trigger an acquisition request if it is detected that the current time is an acquisition time for acquiring configuration data.

[0165] Furthermore, the calling unit includes:

[0166] A detection subunit, configured to detect whether the page is remotely rendered for the first time if it is determined that the page needs remote rendering;

[0167] An acquisition subunit, configured to acquire the URL of the page if it is detected that the page is remotely rendered for the first time;

[0168] A sending subunit, used for sending the URL of the page to a rendering scheduling server, so that the rendering scheduling server returns connection information of the rendering server;

[0169] An establishing subunit is used to establish a communication connection between the client and the rendering server according to the connection information, so as to call the rendering server to remotely render the page.

[0170] The specific implementation of the page printing device according to the present invention is basically the same as the steps in the first and second embodiments of the page printing method described above, and will not be described in detail herein.

[0171] In addition, a page printing system is provided, the page printing system comprising a client and a server;

[0172] The server is configured to, upon receiving a request from a client to obtain configuration data, send the configuration data to the client according to the request;

[0173] The client is used to, when an access request to access a client website is detected and the page corresponding to the access request is remotely rendered according to the configuration data, obtain a first URL corresponding to the access request and obtain a second URL in the configuration data sent by the server; compare the first URL with the second URL, and determine whether the page corresponding to the access request needs to be remotely printed based on a comparison result obtained by the comparison; if it is determined that the page needs to be remotely printed based on the comparison result, obtain the print data of the remote printing, and based on the print data, call the rendering server to print the page.

[0174] Furthermore, the server is also used to set the configuration data according to the setting instruction after detecting a setting instruction for setting the configuration data; obtain a second URL in the configuration data, determine the second URL as an index value of the configuration data, and determine other data in the configuration data except the second URL as a key value; establish a mapping relationship corresponding to the configuration data according to the index value and the key value, and store the mapping relationship in a preset database and redis cache to store the configuration data.

[0175] Furthermore, the server is also used to, after receiving an acquisition request for obtaining configuration data sent by the client, obtain a mapping relationship corresponding to the configuration data in the redis cache according to the acquisition request; and send the mapping relationship to the client to send the configuration data to the client.

[0176] Furthermore, the server is also used to change the configuration data according to the change instruction if the server detects a change instruction for changing the configuration data, wherein the change instruction includes at least one of the following instructions: an add instruction, a modify instruction, and a delete instruction.

[0177] The specific implementation of the page printing system according to the present invention is basically the same as the steps in the third embodiment of the page printing method described above, and will not be described in detail herein.

[0178] In addition, a page printing device is also provided. Figure 4 As shown, Figure 4 It is a structural diagram of the hardware operating environment involved in the embodiment of the present invention.

[0179] It should be noted that Figure 4 That is, it can be a schematic diagram of the structure of the hardware operating environment of the printing device of the page. According to the embodiment of the present invention, the printing device of the page can be a terminal device such as a PC, a portable computer, etc.

[0180] like Figure 4As shown, the printing device of the page may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0181] Those skilled in the art will understand that Figure 4 The structure of the page printing device shown in the figure does not constitute a limitation on the page printing device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0182] like Figure 4 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a page printing program. The operating system is a program that manages and controls the hardware and software resources of the page printing device, and supports the operation of the page printing program and other software or programs.

[0183] exist Figure 4 In the printing device of the page shown, the user interface 1003 is mainly used to connect to the server and communicate data with the server and the rendering server, such as obtaining configuration data from the server; the network interface 1004 is mainly used for the background server and communicates data with the background server; the processor 1001 can be used to call the page printing program stored in the memory 1005, and execute the steps of the page printing method as described above.

[0184] The specific implementation of the page printing device according to the present invention is basically the same as the above-mentioned embodiments of the page printing method, and will not be repeated here.

[0185] In addition, according to an embodiment of the present invention, a computer-readable storage medium is also provided, on which a page printing program is stored. When the page printing program is executed by a processor, the steps of the page printing method described above are implemented.

[0186] The specific implementation of the computer-readable storage medium according to the present invention is basically the same as the embodiments of the above-mentioned page printing method, and will not be repeated here.

[0187] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0188] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0189] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0190] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for printing a page, characterized in that: The page printing method comprises the following steps: When an access request to access a client website is detected and the page corresponding to the access request is remotely rendered successfully, a first URL corresponding to the access request is obtained, and a second URL in the pre-stored configuration data is obtained; Compare the first URL with the second URL, and determine whether the page corresponding to the access request needs to be remotely printed according to the comparison result, wherein the remote printing is an operation of printing the page when a non-trident kernel-based browser accesses a trident kernel-based page; If it is determined according to the comparison result that the page needs to be remotely printed, obtaining the print data of the remote printing, and based on the print data, calling the rendering server to print the page; The step of calling the rendering server to print the page includes: obtaining a print file source from a browser of the Trident kernel through the rendering server to print the page.

2. The method for printing a page according to claim 1, wherein: If it is determined according to the comparison result that the page needs to be remotely printed, the step of obtaining the print data of the remote printing, and based on the print data, calling the rendering server to print the page includes: If it is determined according to the comparison result that the page needs to be remotely printed, then obtaining print data for the remote printing, and determining a printing method according to the print data; If it is determined that the printing method is intermediate file printing, triggering a first printing instruction, and sending the first printing instruction to a rendering server, so that the rendering server generates a printing language file after receiving the first printing instruction; After the printing language file is acquired, the printing language file is determined as a printing file source for printing, so as to print the page.

3. The method for printing a page according to claim 2, wherein: Before the step of determining that the page needs to be remotely printed according to the comparison result, the method for printing the page includes: When the client determines, based on the comparison result, that the first URL is the same as the second URL, and the second URL has a corresponding requirement identifier requiring a printing function, the client determines that the page corresponding to the access request needs to be remotely printed; When the client determines according to the comparison result that the first URL is different from the second URL and / or the second URL does not have a corresponding requirement identifier requiring a printing function, the client determines that the page corresponding to the access request does not require remote printing.

4. The method for printing a page according to claim 2, wherein: After the step of obtaining the print data of the remote printing if it is determined according to the comparison result that the page needs to be remotely printed, and determining the printing method according to the print data, the method further includes: If it is determined that the printing mode is intermediate bitmap printing, triggering a second printing instruction, and sending the second printing instruction to a rendering server, so that the rendering server generates a bitmap image file after receiving the second printing instruction; After the bitmap image file is acquired, the bitmap image file is determined as a print file source for printing, so as to print the page.

5. The method for printing a page according to any one of claims 1 to 3, characterized in that: When an access request to access a client website is detected and the remote rendering of a page corresponding to the access request is successful, the step of obtaining a first URL corresponding to the access request includes: When an access request to a client website is detected, pre-stored configuration data is obtained, and according to the configuration data, whether a page corresponding to the access request needs to be remotely rendered is determined; If it is determined that the page needs remote rendering, a rendering server is called to remotely render the page, and after the remote rendering of the page is successful, a first URL corresponding to the access request is obtained.

6. The method for printing a page according to claim 5, characterized in that: Before the step of invoking a rendering server to remotely render the page if it is determined that the page needs remote rendering, the method for printing the page further includes: After the client obtains the first URL and the second URL, if it is determined that the first URL and the second URL are the same, and a corresponding rendering scheduling service exists for the second URL, that is, a rendering scheduling service exists in the configuration data, it is determined that the page corresponding to the website needs to be remotely rendered; If it is determined that the first URL and the second URL are not the same, and / or there is no corresponding rendering scheduling service for the first URL, it is determined that there is no need to remotely render the page corresponding to the website.

7. The method for printing a page according to claim 5, characterized in that: After detecting an access request to a client website, before the step of obtaining pre-stored configuration data, the page printing method further includes: When a request for obtaining configuration data is detected, a protocol package name corresponding to the request is obtained; Determine a domain name corresponding to the server according to the protocol package name, and send the acquisition request to the server through the domain name, so that the server returns configuration data corresponding to the acquisition request; Receive the configuration data returned by the server and store the configuration data.

8. The method for printing a page according to claim 7, characterized in that: After detecting a request for obtaining configuration data, before obtaining a protocol package name corresponding to the request, the page printing method further includes: Check whether the current time is the time to obtain the configuration data; If it is detected that the current time is the acquisition time for acquiring configuration data, an acquisition request is triggered.

9. The method for printing a page according to claim 8, characterized in that: The step of detecting whether the current time is the acquisition time for acquiring configuration data comprises: Record the historical acquisition time of the last configuration data obtained from the server, and calculate the time difference between the historical acquisition time and the current time; If the time difference is equal to or greater than the duration corresponding to the timing, determining the current time as the acquisition time corresponding to the configuration data; If the time difference is less than the duration corresponding to the timing, it is determined that the current time is not the acquisition time corresponding to the configuration data; If it is detected that the current time is the acquisition time corresponding to the configuration data, a request to acquire the configuration data is automatically triggered; If it is detected that the current time is not the acquisition time corresponding to the configuration data, continue to detect whether the current time is the acquisition time corresponding to the configuration data.

10. The method for printing a page according to claim 5, characterized in that: If it is determined that the page needs remote rendering, the step of calling the rendering server to remotely render the page includes: If it is determined that the page needs remote rendering, detecting whether the page is remotely rendered for the first time; If it is detected that the page is remotely rendered for the first time, obtaining the URL of the page; Sending the URL of the page to a rendering scheduling server, so that the rendering scheduling server returns connection information of the rendering server; A communication connection is established between the client and the rendering server according to the connection information, so as to call the rendering server to remotely render the page.

11. The method for printing a page according to claim 10, characterized in that: If it is determined that the page needs remote rendering, the step of detecting whether the page is remotely rendered for the first time includes: If it is determined that there is a corresponding rendering server for the page, it is determined that this is not the first time that the page is remotely rendered; If it is determined that there is no corresponding rendering server for the page, it is determined that the page is remotely rendered for the first time.

12. The method for printing a page according to claim 10, characterized in that: The step of establishing a communication connection between the client and the rendering server according to the connection information to call the rendering server to remotely render the page includes: Determine the connection address of the rendering server and the connection method of connecting to the rendering server according to the connection information, and determine the specific rendering server to be connected according to the connection address; The rendering server determined according to the connection address is connected according to the determined connection mode, and a communication connection with the rendering server is established to call the rendering server to remotely render the page.

13. A method for printing a page, characterized in that: The page printing method includes: When the server receives the acquisition request sent by the client for acquiring configuration data, the server sends the configuration data to the client according to the acquisition request; When the client detects an access request to access the client website and remotely renders the page corresponding to the access request according to the configuration data, obtains the first URL corresponding to the access request and obtains the second URL in the configuration data sent by the server; Compare the first URL with the second URL, and determine whether the page corresponding to the access request needs to be remotely printed according to the comparison result, wherein the remote printing is an operation of printing the page when a non-trident kernel-based browser accesses a trident kernel-based page; If it is determined according to the comparison result that the page needs to be remotely printed, obtaining the print data of the remote printing, and based on the print data, calling the rendering server to print the page; The step of calling the rendering server to print the page includes: obtaining a print file source from a browser of the Trident kernel through the rendering server to print the page.

14. The method for printing a page according to claim 13, characterized in that: After the server receives the acquisition request for acquiring configuration data sent by the client, before the step of sending the configuration data to the client according to the acquisition request, the step further includes: When the server detects a setting instruction for setting configuration data, the server sets the configuration data according to the setting instruction; Acquire a second URL in the configuration data, determine the second URL as an index value of the configuration data, and determine other data in the configuration data except the second URL as key values; A mapping relationship corresponding to the configuration data is established according to the index value and the key value, and the mapping relationship is stored in a preset database and a redis cache to store the configuration data.

15. The method for printing a page according to claim 14, characterized in that: When the server receives the acquisition request for acquiring configuration data sent by the client, the step of sending the configuration data to the client according to the acquisition request includes: When the server receives the acquisition request for acquiring configuration data sent by the client, the server acquires the mapping relationship corresponding to the configuration data in the redis cache according to the acquisition request; The mapping relationship is sent to the client, so as to send the configuration data to the client.

16. The method for printing a page according to any one of claims 13 to 15, characterized in that: The page printing method also includes: If the server detects a change instruction for changing the configuration data, the server changes the configuration data according to the change instruction, wherein the change instruction includes at least one of the following instructions: an add instruction, a modify instruction, and a delete instruction.

17. A page printing device, characterized in that: The printing device of the page comprises: An acquisition module, for acquiring a first URL corresponding to the access request and a second URL in pre-stored configuration data when an access request to access a client website is detected and the remote rendering of a page corresponding to the access request is successful; A comparison module, used for comparing the first URL with the second URL; A determination module, used to determine whether the page corresponding to the access request needs to be remotely printed according to the comparison result obtained by comparison, wherein the remote printing is an operation of printing the page when a non-trident kernel-based browser accesses a trident kernel-based page; The acquisition module is further used for acquiring the print data of the remote printing if it is determined according to the comparison result that the page needs to be remotely printed; A printing module, used for calling a rendering server to print the page based on the printing data; The printing module is also used to obtain the printing file source from the browser of the Trident kernel through the rendering server to print the page.

18. A page printing system, characterized in that: The page printing system includes a client and a server; The server is configured to, upon receiving a request from a client to obtain configuration data, send the configuration data to the client according to the request; The client is used to, when an access request to access a client website is detected and a page corresponding to the access request is remotely rendered according to the configuration data, obtain a first URL corresponding to the access request and obtain a second URL in the configuration data sent by the server; Comparing the first URL with the second URL, and determining whether the page corresponding to the access request needs to be remotely printed according to a comparison result obtained by the comparison; If it is determined according to the comparison result that the page needs to be remotely printed, obtaining the print data of the remote printing, and based on the print data, calling the rendering server to print the page; The remote printing is an operation of printing a page when a non-trident kernel-based browser accesses a trident kernel-based page; The step of calling the rendering server to print the page includes: obtaining a print file source from a browser of the Trident kernel through the rendering server to print the page.

19. A page printing device, characterized in that: The page printing device includes a memory, a processor, and a page printing program stored in the memory and executable on the processor. When the page printing program is executed by the processor, the steps of the page printing method as described in any one of claims 1 to 12 are implemented.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a page printing program, and when the page printing program is executed by a processor, the steps of the page printing method according to any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Method for printing webpage of cloud network-based mobile terminal

    CN102520893A

  • Implementation method and device of browse program double-kernel assembly

    CN104516885A