Document calling method, device, equipment and storage medium

By receiving and parsing document request requests, a webpage display file that meets the expectations of the document requester is generated, solving the problem of the inability to personalize the display in existing technologies and realizing personalized document display.

CN114048399BActive Publication Date: 2025-11-25BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111255318.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-27
Publication Date
2025-11-25
Estimated Expiration
2041-10-27

AI Technical Summary

Technical Problem

In existing technologies, document requesters cannot meet personalized document display needs, and service providers can only return the original webpage display file, unable to provide personalized display according to the requester's expectations.

Method used

By receiving document access requests, parsing the access method of the target document, generating a web page display file that meets the requester's expectations, and sending it to a preset device for display.

Benefits of technology

It enables personalized document display based on the document requester's expectations, thus meeting the personalized display needs of the document requester.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114048399B_ABST
    Figure CN114048399B_ABST
Patent Text Reader

Abstract

The present disclosure provides a document calling method and device, equipment and storage medium, and relates to the technical field of artificial intelligence, specifically to the technical field of knowledge graph application, and can be applied to information search and other scenarios. The specific implementation scheme is: receiving a document calling request, and obtaining a target document corresponding to the document calling request; parsing a target document access mode from the document calling request, the target document access mode being pre-configured; obtaining a web page display file of the target document according to the target document access mode, and sending the web page display file to a preset device. The above method allows the document requester to configure the target document access mode based on the desired display form, and the service provider of the document can obtain the web page display file of the target document according to the target document access mode, so that the preset device renders the document content in the desired display form based on the web page display file, and meets the personalized document display requirements.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of artificial intelligence, in particular to the technical field of knowledge graph application, and can be applied to information search and the like. BACKGROUND

[0002] In the related art, when a document requester requests a document from a service provider capable of providing the document, the service provider can only return the original web page display file of the document requested by the document requester. The document requester renders the document content in the web page based on the original display form of the document indicated by the web page display file, which cannot meet the personalized document display needs of the document requester. SUMMARY

[0003] The present disclosure provides a document calling method, device, equipment and storage medium.

[0004] According to a first aspect of the present disclosure, a document calling method is provided, comprising:

[0005] receiving a document calling request and obtaining a target document corresponding to the document calling request;

[0006] parsing a target document access mode from the document calling request, the target document access mode being pre-configured;

[0007] obtaining a web page display file of the target document according to the target document access mode, and sending the web page display file to a preset device, so that the preset device displays the target document based on the web page display file.

[0008] According to a second aspect of the present disclosure, a document calling device is provided, comprising:

[0009] a document obtaining module configured to receive a document calling request and obtain a target document corresponding to the document calling request;

[0010] a request parsing module configured to parse a target document access mode from the document calling request, the target document access mode being pre-configured;

[0011] a display information returning module configured to obtain a web page display file of the target document according to the target document access mode, and send the web page display file to a preset device, so that the preset device displays the target document based on the web page display file.

[0012] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0013] at least one processor; and

[0014] The memory is in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the document calling method described above.

[0015] According to a fourth aspect of the present disclosure, a non-transitory computer readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to perform the document calling method described above.

[0016] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the document calling method described above.

[0017] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present disclosure, nor to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.

[0018] The technical solutions provided by the present disclosure have the beneficial effects that:

[0019] In the technical solutions of the present disclosure, the document requester is allowed to configure the target document access mode based on the desired display form, and the service provider of the document can obtain the web page display file of the target document according to the target document access mode, so that the preset device of the document requester renders the document content based on the web page display file web page in the desired display form, and meets the personalized document display needs of the document requester. BRIEF DESCRIPTION OF DRAWINGS

[0020] The accompanying drawings serve to better understand the present solutions and do not constitute limitations on the present disclosure. Among them:

[0021] Figure 1 Fig. 1 shows a flow diagram of a document calling method provided by an embodiment of the present disclosure;

[0022] Figure 2 Fig. 2 shows a flow diagram of another document calling method provided by an embodiment of the present disclosure;

[0023] Figure 3 Fig. 3 shows a schematic diagram of a document calling device provided by an embodiment of the present disclosure;

[0024] Figure 4 Fig. 4 shows a schematic block diagram of an example electronic device that can be used to implement the document calling method provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] Exemplary embodiments of the present disclosure are described herein with reference to the accompanying drawings, which are cited as illustrative examples. Various details of the embodiments of the present disclosure are described herein in order to provide a thorough understanding of the embodiments. It will be understood by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Also, the descriptions of known functions and constructions are omitted herein for clarity and conciseness.

[0026] In the related art, when a document requester requests a document from a service provider capable of providing the document, the service provider can only return the original web page display file of the document requested by the document requester. The document requester renders the document content in a web page based on the original display form of the document indicated by the web page display file. For example, the document requester can only display the content of the document in the original layout, watermark, page display form, and page scaling form of the document, which cannot meet the personalized document display needs of the document requester.

[0027] The document calling method, device, equipment, and storage medium provided by the embodiments of the present disclosure aim to solve at least one of the above technical problems in the prior art.

[0028] Figure 1 A flowchart of a document calling method provided by an embodiment of the present disclosure is shown, as shown in Figure 1 The method can mainly include the following steps:

[0029] S110: receiving a document calling request and obtaining a target document corresponding to the document calling request.

[0030] In the embodiments of the present disclosure, the document requester can send a document calling request to the execution subject of the method of the embodiments of the present disclosure, so as to receive the information related to the document returned by the execution subject for the document calling request, and display the corresponding document on the specified device based on the information.

[0031] Here, the document requester can be an operator of an application, and the document calling request sent by the document requester can be issued by a user of the application by operating a certain device. Specifically, the user can send a document calling request to the execution subject of the method of the embodiments of the present disclosure in different ways, for example, the user can directly send a document calling request to the execution subject of the method of the embodiments of the present disclosure based on the user terminal where the application is located; or the user can send a document display request to the server corresponding to the application based on the user terminal where the application is located, and the server sends a document calling request to the execution subject of the method of the embodiments of the present disclosure based on the document display request.

[0032] The embodiment of the present disclosure can preconfigure a document library, and the document library can include at least one document. Specifically, the embodiment of the present disclosure can provide a uniform resource locator (URL) of a document in the document library to a document requester, and the document requester can send a document calling request for a target document by accessing the uniform resource locator of the target document. When the document calling request is received, the target document indicated by the document calling request can be determined, and then the target document is obtained from the document library.

[0033] S120: A target document access mode is parsed from the document calling request.

[0034] The target document access mode is preconfigured. Specifically, the embodiment of the present disclosure can provide a plurality of document access modes for the document requester, and the document requester can preselect one of the plurality of document access modes according to its own needs, and configure the selected document access mode as its target document access mode. The document calling request sent by the document requester includes information related to the document access mode, and the embodiment of the present disclosure can parse the target document access mode based on the information. Alternatively, in the embodiment of the present disclosure, the document access mode is related to the source of the document calling request and the display form required by the target document, and the information related to the source of the document calling request and the information related to the display form can be parsed from the document calling request, which can represent the target document access mode.

[0035] Alternatively, the embodiment of the present disclosure can parse the request source information and the document parameter information from the document calling request when the target document access mode is parsed from the document calling request, wherein the request source information is used to indicate the source of the document calling request, and the document parameter information is used to indicate the display form required by the target document.

[0036] S130: A web page display file of the target document is obtained according to the target document access mode, and the web page display file is sent to a preset device.

[0037] In the embodiment of the present disclosure, the web page display file can describe the target document to be displayed on the web page. In a word editor, the required content can be obtained according to a preset format based on the content of the target document and the display form required by the target document. The web page display file is sent to the preset device, and the preset device can execute the code in the web page display file by interpretation using a browser, so as to display the content of the target document in the required display form.

[0038] In the embodiments of the present disclosure, the preset device can be a user terminal of the document requester. For example, the embodiments of the present disclosure can send the webpage display file to the user terminal through the document requester server, or can send the webpage display file directly to the user terminal. The user terminal can execute the code in the webpage display file by means of interpretation using a browser, so as to display the content of the target document in the required display form.

[0039] As described above, the document access manner is related to the source of the document calling request and the display form required by the target document. Optionally, when the webpage display file of the target document is acquired according to the target document access manner, the embodiments of the present disclosure can acquire the webpage display file of the target document based on the request source information and the document parameter information.

[0040] The document calling method provided by the embodiments of the present disclosure allows the document requester to configure the target document access manner based on the desired display form, and the service provider of the document can acquire the webpage display file of the target document according to the target document access manner, so that the preset device of the document requester can render the document content in the desired display form based on the webpage display file webpage, thereby meeting the personalized document display requirements of the document requester.

[0041] Figure 2 FIG. 8 shows a flow diagram of another document calling method provided by the embodiments of the present disclosure. As shown in FIG. 8, the method can mainly include the following steps: Figure 2

[0042] S210: receiving a document calling request and acquiring a target document corresponding to the document calling request.

[0043] In the embodiments of the present disclosure, the specific description of step S210 can refer to the description in step S110 described above, which will not be repeated here.

[0044] S220: parsing request source information and document parameter information from the document calling request.

[0045] In the embodiments of the present disclosure, the request source information is used to indicate the source of the document calling request, and the document parameter information is used to indicate the display form required by the target document.

[0046] ​As described above, the user can send the document calling request to the execution subject of the method of the embodiments of the present disclosure in different ways. For example, the user can send the document calling request to the execution subject of the method of the embodiments of the present disclosure directly based on the user terminal where the application is located; or the user can send the document display request to the server corresponding to the application based on the user terminal where the application is located, and the server sends the document calling request to the execution subject of the method of the embodiments of the present disclosure based on the document display request. Here, the request source information can indicate whether the document calling request comes from the user terminal of the document requester or the server.

[0047] Optionally, the document parameter information can include information for indicating the layout form of the target document, the watermark form, the page display form, and the page scaling form, etc. It can be understood that the document parameter information can also include other types of information, such as the font size information of the target document, the color information of the font, etc. Of course, the document parameter information can also be empty.

[0048] S230: Obtain the web page display file of the target document based on the request source information and the document parameter information.

[0049] In the embodiments of the present disclosure, the request source information can be used to determine the source of the document calling request; the document parameter information can be empty or can contain some substantial information that can indicate the display form required by the target document. In different cases, the embodiments of the present disclosure can obtain the web page display file of the target document in the following ways:

[0050] Optionally, in the case that the request source information indicates that the document calling request comes from the server of the document requester and the content of the document parameter information is empty, the original markup language file of the target document is obtained, and the markup language file is used as the web page display file of the target document.

[0051] In this case, the document requester accesses the target document in the form of iframe (inline frame), that is, the content of the target document is displayed in the inherent form of the target text in the page. Specifically, the user can send the document display request to the server corresponding to the application based on the user terminal where the application is located, and the server sends the document calling request to the execution subject of the method of the embodiments of the present disclosure based on the document display request. If the content of the document parameter information is empty, it means that the document requester expects to display the content of the target document in the inherent form of the target text.

[0052] Optionally, in the case that the request source information indicates that the document calling request comes from the server of the document requester and the content of the document parameter information is not empty, the markup language file of the target document is generated based on the document parameter information, and the markup language file is used as the web page display file of the target document.

[0053] In this case, the user sends a document display request to the server corresponding to the application based on the user terminal on which the application is used, the server sends a document call request to the execution subject of the method of the embodiment of the present disclosure based on the document display request, and the content of the document parameter information is not empty, which means that the requester expects to display the content of the target document in the display form indicated by the document parameter information set by it. At this time, the markup language file of the target document needs to be generated based on the document parameter information.

[0054] Optionally, in the case that the request source information indicates that the document call request originates from the user terminal of the document requester and the content of the document parameter information is not empty, the markup language file of the target document is generated based on the document parameter information; the webpage previously configured for the document requester is called, and the webpage and the markup language file are used as the webpage display file of the target document.

[0055] In this case, the user sends a document call request directly to the execution subject of the method of the embodiment of the present disclosure based on the user terminal on which the application is used, and the content of the document parameter information is not empty, which means that the requester expects to display the content of the target document in the display form indicated by the document parameter information set by it. At this time, the markup language file of the target document needs to be generated based on the document parameter information, and the webpage previously configured for the document requester needs to be called.

[0056] In the embodiment of the present disclosure, the document parameter information includes a typesetting type. When generating the markup language file of the target document based on the document parameter information, the typesetting parameters of the target document can be determined based on the typesetting type, and the markup language file containing the typesetting parameters of the target document is generated.

[0057] Here, the typesetting type can include flow typesetting and layout typesetting. The flow typesetting can further include rtcs typesetting and r2etype typesetting, and the layout typesetting can further include xreader typesetting, ppt typesetting, txt typesetting and html typesetting. Each typesetting type has a corresponding typesetting component, and the typesetting parameters of the target document can be determined through the typesetting component corresponding to the typesetting type.

[0058] Here, each typesetting component can be encapsulated into an independent NPM package. The full name of NPM is Node PackageManager, which is a NodeJS package management and distribution tool and has become a standard for unofficially publishing Node modules. By encapsulating the typesetting component into an independent NPM package, the management and deployment of the typesetting component can be facilitated, and different typesetting components can be deployed for the document requester, thereby providing customized document typesetting services for each document requester.

[0059] In the embodiments of the present disclosure, the document parameter information can comprise a watermark requirement. When generating the markup language file of the target document based on the document parameter information, the watermark display parameter of the target document can be determined based on the watermark requirement, and the markup language file containing the watermark display parameter is generated.

[0060] Here, the watermark requirement can be pre-configured by the document requester based on which the watermark content is expected to be displayed in the target document. The watermark display parameter can instruct the user terminal to render the corresponding watermark content when the user terminal displays the content of the target document.

[0061] In the embodiments of the present disclosure, the document parameter information can comprise a page display requirement. When generating the markup language file of the target document based on the document parameter information, the page display parameter of the target document can be determined based on the page display requirement, and the markup language file containing the page display parameter is generated. Here, the page display requirement can comprise a requirement for the default display page number of the document, a requirement for the folding page number of the document, and a requirement for folding and unfolding and jumping to the specified page number of the document. The watermark requirement can be pre-configured by the document requester based on which the page display form of the target document is expected.

[0062] In the embodiments of the present disclosure, the document parameter information can comprise a page scaling requirement. When generating the markup language file of the target document based on the document parameter information, the page scaling parameter of the target document can be determined based on the page scaling requirement, and the markup language file containing the page scaling parameter is generated. The page scaling requirement can be pre-configured by the document requester based on which the size of the target document when displayed is expected.

[0063] In the embodiments of the present disclosure, the markup language file can be an HTML (HyperText Markup Language) file. Here, the HyperText Markup Language is a general language for the network, which describes the document to be displayed on the web page through tags (Tag). Only the required content is written in a fixed format of HTML in a simple text editor, and the corresponding HTML file of the document can be obtained. The extension of the HTML file is html or htm.

[0064] S240: Send the web display file to the preset device.

[0065] In the case that the request source information indicates that the document calling request originates from the server of the document requester, the web page display file can only include the markup language file. The execution subject of the method of the embodiment of the present disclosure can send the markup language file to the server of the preset device, and the server returns the markup language file and the web page used for displaying the target document to the user terminal. The user terminal can load the web page, and execute the code in the markup language file by interpretation using the browser, so as to display the content of the target document in the web page in the required display form.

[0066] In the case that the request source information indicates that the document calling request originates from the user terminal of the document requester, the web page display file can include the markup language file and the web page pre-configured for the document requester. The execution subject of the method of the embodiment of the present disclosure can directly return the markup language file and the web page to the user terminal. The user terminal can load the web page, and execute the code in the markup language file by interpretation using the browser, so as to display the content of the target document in the web page in the required display form.

[0067] As described above, the markup language file includes at least one of the layout parameter, the watermark display parameter, the page number display parameter and the page scaling parameter. The embodiment of the present disclosure can display the content of the target document in the page based on the at least one layout parameter.

[0068] As described above, the markup language file can be an HTML file, which can be browsed by anyone on the Internet. The browser executes the code in the HTML file by interpretation, and displays the content of the target document in the web page to the browser.

[0069] Based on the same principle as the above document calling method, Figure 3 A schematic diagram of a document calling apparatus provided by the embodiment of the present disclosure is shown. As shown in the figure, Figure 3 The document calling apparatus 300 includes a document acquisition module 310, a request analysis module 320 and a display information return module 330.

[0070] The document acquisition module 310 is configured to receive a document calling request and acquire a target document corresponding to the document calling request.

[0071] The request analysis module 320 is configured to analyze a target document access mode from the document calling request, wherein the target document access mode is pre-configured.

[0072] The display information return module 330 is configured to acquire a web page display file of the target document according to the target document access mode, and send the web page display file to a preset device, so that the preset device displays the target document based on the web page display file.

[0073] The document calling apparatus provided by the embodiments of the present disclosure allows the document requester to configure the target document access mode based on the expected display form, and the service provider of the document can obtain the webpage display file of the target document according to the target document access mode, so that the preset device of the document requester renders the document content in the expected display form based on the webpage of the webpage display file, thereby meeting the personalized document display requirements of the document requester.

[0074] In the embodiments of the present disclosure, the document access mode is related to the source of the document calling request and the display form required by the target document.

[0075] In the embodiments of the present disclosure, when the request analysis module 320 is used to analyze the target document access mode from the document calling request, it is specifically used to analyze the request source information and the document parameter information from the document calling request, the request source information is used to indicate the source of the document calling request, and the document parameter information is used to indicate the display form required by the target document.

[0076] When the display information returning module 330 is used to obtain the webpage display file of the target document according to the target document access mode, it is specifically used to obtain the webpage display file of the target document based on the request source information and the document parameter information.

[0077] In the embodiments of the present disclosure, when the display information returning module 330 is used to obtain the webpage display file of the target document based on the request source information and the document parameter information, it is specifically used to:

[0078] In the case that the request source information indicates that the document calling request is from the server of the document requester and the content of the document parameter information is empty, the original markup language file of the target document is obtained.

[0079] The markup language file is used as the webpage display file of the target document.

[0080] In the embodiments of the present disclosure, when the display information returning module 330 is used to obtain the webpage display file of the target document based on the request source information and the document parameter information, it is specifically used to:

[0081] In the case that the request source information indicates that the document calling request is from the server of the document requester and the content of the document parameter information is not empty, the markup language file of the target document is generated based on the document parameter information.

[0082] The markup language file is used as the webpage display file of the target document.

[0083] In the embodiments of the present disclosure, when the display information returning module 330 is used to obtain the webpage display file of the target document based on the request source information and the document parameter information, it is specifically used to:

[0084] In a case where the request source information indicates that the document calling request originates from a user terminal of the document requester, and the content of the document parameter information is not empty, a markup language file of the target document is generated based on the document parameter information;

[0085] The webpage pre-configured for the document requester is invoked, and the webpage and the markup language file are used as webpage display files of the target document.

[0086] In the embodiment of the present disclosure, the document parameter information includes a typesetting type;

[0087] When generating the markup language file of the target document based on the document parameter information, the display information returning module 330 is specifically configured to determine the typesetting parameter of the target document based on the typesetting type, and generate the markup language file containing the typesetting parameter of the target document.

[0088] In the embodiment of the present disclosure, the document parameter information includes at least one of a watermark requirement, a page number display requirement, and a page scaling requirement;

[0089] When generating the markup language file of the target document based on the document parameter information, the display information returning module 330 is specifically configured to perform at least one of the following:

[0090] determining the watermark display parameter of the target document based on the watermark requirement, and generating the markup language file containing the watermark display parameter;

[0091] determining the page number display parameter of the target document based on the page number display requirement, and generating the markup language file containing the page number display parameter;

[0092] determining the page scaling parameter of the target document based on the page scaling requirement, and generating the markup language file containing the page scaling parameter.

[0093] It can be understood that the above modules of the document calling device in the embodiment of the present disclosure have the functions of realizing the corresponding steps of the above document calling method. The functions can be realized by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. The above modules can be software and / or hardware, and the above modules can be realized individually or integratedly. The function description of each module of the above document calling device can be referred to the corresponding description of the above document calling method, which will not be described here.

[0094] In the technical solution of the present disclosure, the acquisition, storage and application of user personal information comply with relevant laws and regulations and do not violate public order and good customs.

[0095] According to the embodiments of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium and a computer program product.

[0096] Figure 4 A schematic block diagram of an example electronic device that can be used to implement the document retrieval method provided in embodiments of this disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0097] like Figure 4 As shown, the electronic device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. The RAM 403 may also store various programs and data required for the operation of the electronic device 400. The computing unit 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0098] Multiple components in electronic device 400 are connected to I / O interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of displays, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows electronic device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0099] The computing unit 401 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 performs various methods and processes described above, such as the document invocation method. For example, in some embodiments, the document invocation method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded onto the RAM 403 and executed by the computing unit 401, one or more steps of the document invocation method described above can be performed. Alternatively, in other embodiments, the computing unit 401 can be configured to perform the document invocation method by any other appropriate means, such as by means of firmware.

[0100] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (PLD), a computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0101] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces the functions / operations specified in the flowcharts and / or the block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine or entirely on a remote machine or server.

[0102] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0103] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0104] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0105] The computer system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0106] It should be understood that the various forms of flow shown above can be used to reorder, add, or delete steps. For example, the steps described in the present disclosure can be performed in parallel, in series, or in a different order, as long as the desired results of the technology disclosed in the present disclosure can be achieved, which is not limited herein.

[0107] The above detailed description does not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A document calling method, comprising: receiving a document calling request and obtaining a target document corresponding to the document calling request; parsing a target document access mode from the document calling request, including parsing request source information and document parameter information from the document calling request; the request source information is used to indicate the source of the document calling request, and the document parameter information is used to indicate the display form required by the target document; the target document access mode is pre-configured; the target document access mode is related to the source of the document calling request and the display form required by the target document; based on the request source information and the document parameter information, obtaining a web page display file of the target document, and sending the web page display file to a preset device, so that the preset device executes the code in the web page display file by interpretation using a browser to display the target document. 2.The method of claim 1, wherein the obtaining the web page display file of the target document based on the request source information and the document parameter information comprises: in a case where the request source information indicates that the document calling request is from a server of a document requester and the content of the document parameter information is empty, obtaining a markup language file of the target document originally; taking the markup language file as the web page display file of the target document. 3.The method of claim 1, wherein the obtaining the web page display file of the target document based on the request source information and the document parameter information comprises: in a case where the request source information indicates that the document calling request is from a server of a document requester and the content of the document parameter information is not empty, generating a markup language file of the target document based on the document parameter information; taking the markup language file as the web page display file of the target document. 4.The method of claim 1, wherein the obtaining the web page display file of the target document based on the request source information and the document parameter information comprises: in a case where the request source information indicates that the document calling request is from a user terminal of a document requester and the content of the document parameter information is not empty, generating a markup language file of the target document based on the document parameter information; calling a web page pre-configured for the document requester, and taking the web page and the markup language file as the web page display file of the target document. 5.The method of claim 3 or 4, wherein the document parameter information comprises a layout type; The generating the markup language file of the target document based on the document parameter information comprises: determining layout parameters of the target document based on the layout type, and generating a markup language file containing the layout parameters of the target document. 6.The method of claim 3 or 4, wherein the document parameter information comprises at least one of a watermark requirement, a page number display requirement, and a page scaling requirement; and the generating the markup language file of the target document based on the document parameter information comprises at least one of: ​ determining a watermark display parameter of the target document based on the watermark requirement, and generating a markup language file containing the watermark display parameter; determining a page number display parameter of the target document based on the page number display requirement, and generating a markup language file containing the page number display parameter; determining a page zoom parameter of the target document based on the page zoom requirement, and generating a markup language file containing the page zoom parameter.

7. A document calling apparatus, comprising: a document obtaining module configured to receive a document calling request and obtain a target document corresponding to the document calling request; a request analyzing module configured to analyze a target document access mode from the document calling request, the target document access mode being preconfigured, and the target document access mode being related to a source of the document calling request and a display form required by the target document, and the request analyzing module being specifically configured to analyze request source information and document parameter information from the document calling request, the request source information being used to indicate the source of the document calling request, and the document parameter information being used to indicate the display form required by the target document; a display information returning module configured to obtain a web page display file of the target document based on the request source information and the document parameter information, and send the web page display file to a preset device, so that the preset device executes code in the web page display file by interpretation using a browser to display the target document.

8. The apparatus of claim 7, when the display information returning module is used to obtain the web page display file of the target document based on the request source information and the document parameter information, the display information returning module is specifically configured to: obtain a markup language file of the target document in a case where the request source information indicates that the document calling request is from a server of a document requester and content of the document parameter information is empty; and use the markup language file as the web page display file of the target document.

9. The apparatus of claim 7, when the display information returning module is used to obtain the web page display file of the target document based on the request source information and the document parameter information, the display information returning module is specifically configured to: generate a markup language file of the target document based on the document parameter information in a case where the request source information indicates that the document calling request is from a server of a document requester and content of the document parameter information is not empty; and use the markup language file as the web page display file of the target document.

10. The apparatus of claim 7, when the display information returning module is used to obtain the web page display file of the target document based on the request source information and the document parameter information, the display information returning module is specifically configured to: generate a markup language file of the target document based on the document parameter information in a case where the request source information indicates that the document calling request is from a user terminal of a document requester and content of the document parameter information is not empty. retrieve a webpage configured in advance for the document requester, and display the webpage and the markup language file as a webpage of the target document. 11.The apparatus of claim 9 or 10, wherein the document parameter information comprises a layout type. The display information returning module, when generating the markup language file of the target document based on the document parameter information, is specifically configured to: determine layout parameters of the target document based on the layout type, and generate the markup language file containing the layout parameters of the target document. 12.The apparatus of claim 9 or 10, wherein the document parameter information comprises at least one of a watermark requirement, a page number display requirement, and a page scaling requirement. The display information returning module, when generating the markup language file of the target document based on the document parameter information, is specifically configured to perform at least one of the following: determine watermark display parameters of the target document based on the watermark requirement, and generate the markup language file containing the watermark display parameters; determine page number display parameters of the target document based on the page number display requirement, and generate the markup language file containing the page number display parameters; determine page scaling parameters of the target document based on the page scaling requirement, and generate the markup language file containing the page scaling parameters. 13.An electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.

14. A non-transitory computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are used to enable the computer to perform the method of any one of claims 1-6. 15.A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-6.

Citation Information

Patent Citations

  • Method and device for processing spreadsheet data in web page

    CN112800371A