CN113778680A - Document online preview method and system - Google Patents

Document online preview method and system Download PDF

Info

Publication number
CN113778680A
CN113778680A CN202111060311.3A CN202111060311A CN113778680A CN 113778680 A CN113778680 A CN 113778680A CN 202111060311 A CN202111060311 A CN 202111060311A CN 113778680 A CN113778680 A CN 113778680A
Authority
CN
China
Prior art keywords
document
client
preview
server
previewing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111060311.3A
Other languages
Chinese (zh)
Inventor
林飞达
邱小荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Yuexin Information Technology Co ltd
Original Assignee
Xiamen Yuexin Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Yuexin Information Technology Co ltd filed Critical Xiamen Yuexin Information Technology Co ltd
Priority to CN202111060311.3A priority Critical patent/CN113778680A/en
Publication of CN113778680A publication Critical patent/CN113778680A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a document online previewing method, which is realized based on a client and a server and comprises the following steps: s1, the client receives a document preview instruction of a user; s2, the client judges whether the document is in a supported document format, if so, the client loads a corresponding preview device, otherwise, the client terminates the program and prompts the user; s3, the client communicates to access the server to request to preview the document; s4, the server searches whether the converted preview document with the specified format corresponding to the document exists, if so, the document is directly transmitted to the client, otherwise, the server converts the document into the preview document with the specified format and then transmits the preview document to the client; and S5, the client analyzes the preview document and renders a display.

Description

Document online preview method and system
Technical Field
The invention relates to the technical field of design information, in particular to a document online preview method and a document online preview system.
Background
Due to the development of internet technology, users want to open and preview documents (including but not limited to Word, spreadsheet, slide file, web page file, TXT text file) conveniently at various device terminals, and there are two main types of existing technical implementation manners:
1. the method for calling the third-party special program from the existing application program to open the document has the following problems:
(1) a user needs to download and install a special third-party special program on the equipment, the downloading and installation time is needed, and the additional storage space of the equipment is also occupied;
(2) after the third-party program is opened, the access authority of the document is exposed to the third-party program, and the user can perform additional storage and modification to cause uncontrollable document management authority;
(3) often, one special program can only open one or more documents, so that a user can preview a plurality of documents only by installing a plurality of third-party programs;
(4) when a user uses document preview on different devices (such as a mobile phone terminal and a computer terminal) and different operating systems (such as Mac, Windows, Android and iOS), different third-party application programs need to be installed according to the environment of a client, and troubles are caused to the user.
2. The method for previewing after converting the document into the bitmap file has the following problems:
(1) after the document is converted into the bitmap file, the character format is converted into the pixel format, and the occupied storage space is much larger than that of the original document;
(2) the time delay of network transmission is long due to the fact that the converted bitmap file is large, and the waiting time of a user is prolonged;
(3) the resolution of the bitmap file is fixed if the font and detail appear blurred under magnification;
(4) the characters in the bitmap file cannot be copied;
(5) the converted bitmap file is blurred when printed.
Disclosure of Invention
Aiming at the problem of the complaint, the invention provides a document online preview method and a document online preview system.
In order to achieve the purpose, the invention adopts the following technical scheme:
a document online preview method is realized on the basis of a client and a server and comprises the following steps:
s1, the client receives a document preview instruction of a user;
s2, the client judges whether the document is in a supported document format, if so, the client loads a corresponding preview device, otherwise, the client terminates the program and prompts the user;
s3, the client communicates to access the server to request to preview the document;
s4, the server searches whether the converted preview document with the specified format corresponding to the document exists, if so, the document is directly transmitted to the client, otherwise, the server converts the document into the preview document with the specified format and then transmits the preview document to the client;
and S5, the client analyzes the preview document and renders a display.
Preferably, step S2 is specifically: and the client reads the format of the document which needs to be previewed currently through the suffix name of the document, compares the format with a document support format list stored by the client, judges whether the document is in a supported document format, if so, the client loads a corresponding previewing device, and otherwise, the client terminates the program and prompts a user.
Preferably, step S3 specifically includes:
s31, detecting the running environment of the current application by the client running environment detection instruction, and calling a document preview device corresponding to the running environment;
s32, the document previewing apparatus accesses the server through the network communication interface, and sends a request for previewing the document to the server.
Preferably, the runtime environment includes, but is not limited to, a web browser, an android operating system, an iOS operating system, a wechat H5 application environment, and a wechat applet environment.
Preferably, step S4 is specifically: the server receives a preview request, searches whether a preview document corresponding to the converted document exists in a memory according to main parameters of the request, if so, directly transmits the preview document to the client, otherwise, the server calls a document conversion device to convert the document into the preview document and store the preview document in the memory, and then transmits the preview document to the client.
Preferably, the main parameters of the preview request are a document resource address and a unique identifier of the document.
Preferably, step S5 is specifically: the client calls the document previewing device of the current application environment to render the previewed document and display the previewed document to a user, and according to the configuration parameters of the client, a semi-transparent character watermark can be dynamically loaded in a previewing page, wherein the content of the watermark is a dynamically-set character string parameter.
A document online preview system comprises a client and a server which are in communication connection, wherein the client comprises a user interaction interface, a client processor, a document preview device and a client communication interface, and the server comprises a server communication interface, a server processor and a memory;
the user interaction interface is used for realizing user interaction, and providing functions of opening and closing a window, operating a prompt, displaying a document content preview interface and the like;
the client processor is used for responding to user interaction, judging the application environment of the client and controlling the user interaction interface, the document preview device and the client communication interface;
the document previewing device can be used for processing document previewing requests in different application environments;
the client communication interface is used for sending a request to the server and receiving data transmitted back by the server;
the server communication interface is used for receiving the access request of the client and returning data;
the server processor is used for processing a document preview request of the client, controlling the logic of document conversion, and controlling the server communication interface and the memory;
the memory is used for storing data, original documents and preview documents after format conversion.
After adopting the technical scheme, compared with the background technology, the invention has the following advantages:
1. the invention provides a document online preview method and a document online preview system, and for various supported document formats, a user does not need to install a third-party special application program, so that the storage space of equipment and the running memory are reduced.
2. The invention provides a document online preview method and a document online preview system, wherein the document online preview is operated in an autonomous controllable environment, so that the exposure of the document reading and writing authority after a third-party application program opens a document can be avoided, and the watermarking and better authority control can be realized.
3. The invention provides a document online preview method and a document online preview system, which support various devices, including a mobile phone end, a tablet personal computer and a PC; the system can be operated under various common application environments, including an android client, an iOS client, a WeChat applet, a web browser and the like; the method can support various common document formats and is convenient for users to use.
4. Compared with a bitmap preview mode, the PDF file has smaller converted file capacity, higher transmission speed and clearer viewing and printing.
Drawings
FIG. 1 is a flow chart of the method steps of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the present invention, it should be noted that the terms "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are all based on the orientation or positional relationship shown in the drawings, and are only for convenience of describing the present invention and simplifying the description, but do not indicate or imply that the apparatus or element of the present invention must have a specific orientation, and thus, should not be construed as limiting the present invention.
Examples
Referring to fig. 1, the present invention discloses a document online preview method, which is implemented based on a client and a server, and includes the following steps:
s1, opening a link resource of a document by a user through a user interactive interface of the client, and receiving a preview instruction of the user by the client;
s2, the client reads the format of the current document to be previewed through the suffix name of the document, compares the format with the document support format list stored by the client, judges whether the document is in the supported document format, if so, the client loads the corresponding previewing device, otherwise, the client terminates the program and prompts the user through the user interaction interface;
and the latest document support format list is automatically downloaded from the server dynamically when the client is started.
S3, the client side communicates to access the server to request the preview document;
s31, detecting a running environment of the current application by a client running environment detection instruction, and calling a document preview device corresponding to the running environment;
the runtime environments include, but are not limited to, a web browser, an android operating system, an iOS operating system, a wechat H5 application environment, and a wechat applet environment.
S32, the document previewing device accesses the server through the network communication interface and sends a document previewing request to the server;
s4, the server receives the preview request, and searches whether the PDF document corresponding to the converted document exists in the memory according to the document resource address or the unique identification code, if so, the document is directly transmitted to the client, otherwise, the server calls the document conversion device to convert the document into the specified PDF document and then transmits the document to the client; if the previewed document is in the PDF file format, the document does not need to be converted again.
The document conversion device can output PDF documents of a single file or generate one PDF document per page according to configurable conversion parameters.
The PDF document transmitted by the server to the client via the communication interface may be a whole document or may be a PDF document sent per page.
And S5, the client calls a document preview device of the current application environment to analyze the PDF document, the PDF document is rendered and displayed to a user, and according to the configuration parameters of the client, the preview page can be dynamically loaded with the semitransparent character watermark, wherein the content of the watermark is the character string parameter which can be dynamically set.
A document online preview system comprises a client and a server which are in communication connection, wherein the client comprises a user interaction interface, a client processor, a document preview device and a client communication interface, and the server comprises a server communication interface, a server processor and a memory;
the user interaction interface is used for realizing user interaction, and providing functions of opening and closing a window, operating a prompt, displaying a document content preview interface and the like;
the client processor is used for responding to user interaction, judging the application environment of the client, and controlling a user interaction interface, a document preview device and a client communication interface;
the document previewing device can be used for processing document previewing requests under different application environments;
the client communication interface is used for sending a request to the server and receiving data transmitted back by the server;
the server communication interface is used for receiving an access request of the client and returning data;
the server processor is used for processing a document preview request of the client, controlling the logic of document conversion, controlling the communication interface of the server and the memory;
and the memory is used for storing the data, the original document and the preview document after the format conversion.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A document online preview method is realized on the basis of a client and a server and is characterized by comprising the following steps:
s1, the client receives a document preview instruction of a user;
s2, the client judges whether the document is in a supported document format, if so, the client loads a corresponding preview device, otherwise, the client terminates the program and prompts the user;
s3, the client communicates to access the server to request to preview the document;
s4, the server searches whether the converted preview document with the specified format corresponding to the document exists, if so, the document is directly transmitted to the client, otherwise, the server converts the document into the preview document with the specified format and then transmits the preview document to the client;
and S5, the client analyzes the preview document and renders a display.
2. The method for previewing the document on line according to claim 1, wherein the step S2 is specifically as follows: and the client reads the format of the document which needs to be previewed currently through the suffix name of the document, compares the format with a document support format list stored by the client, judges whether the document is in a supported document format, if so, the client loads a corresponding previewing device, and otherwise, the client terminates the program and prompts a user.
3. The method for previewing the document on line according to claim 1, wherein the step S3 specifically comprises:
s31, detecting the running environment of the current application by the client running environment detection instruction, and calling a document preview device corresponding to the running environment;
s32, the document previewing apparatus accesses the server through the network communication interface, and sends a request for previewing the document to the server.
4. A method for on-line previewing of a document according to claim 3, wherein: the runtime environments include, but are not limited to, a web browser, an android operating system, an iOS operating system, a wechat H5 application environment, and a wechat applet environment.
5. The method for previewing the document on line according to claim 1, wherein the step S4 is specifically as follows: the server receives a preview request, searches whether a preview document corresponding to the converted document exists in a memory according to main parameters of the request, if so, directly transmits the preview document to the client, otherwise, the server calls a document conversion device to convert the document into the preview document and store the preview document in the memory, and then transmits the preview document to the client.
6. The method for previewing the document on line according to claim 5, wherein: the main parameters of the preview request are a document resource address and a unique identifier of a document.
7. The method for previewing the document on line according to claim 3, wherein the step S5 is specifically as follows: the client calls the document previewing device of the current application environment to render the previewed document and display the previewed document to a user, and according to the configuration parameters of the client, a semi-transparent character watermark can be dynamically loaded in a previewing page, wherein the content of the watermark is a dynamically-set character string parameter.
8. A document online preview system according to any of claims 1 to 7, wherein: the system comprises a client and a server which are in communication connection, wherein the client comprises a user interaction interface, a client processor, a document previewing device and a client communication interface, and the server comprises a server communication interface, a server processor and a memory;
the user interaction interface is used for realizing user interaction, and providing functions of opening and closing a window, operating a prompt, displaying a document content preview interface and the like;
the client processor is used for responding to user interaction, judging the application environment of the client and controlling the user interaction interface, the document preview device and the client communication interface;
the document previewing device can be used for processing document previewing requests in different application environments;
the client communication interface is used for sending a request to the server and receiving data transmitted back by the server;
the server communication interface is used for receiving the access request of the client and returning data;
the server processor is used for processing a document preview request of the client, controlling the logic of document conversion, and controlling the server communication interface and the memory;
the memory is used for storing data, original documents and preview documents after format conversion.
CN202111060311.3A 2021-09-10 2021-09-10 Document online preview method and system Pending CN113778680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111060311.3A CN113778680A (en) 2021-09-10 2021-09-10 Document online preview method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111060311.3A CN113778680A (en) 2021-09-10 2021-09-10 Document online preview method and system

Publications (1)

Publication Number Publication Date
CN113778680A true CN113778680A (en) 2021-12-10

Family

ID=78842406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111060311.3A Pending CN113778680A (en) 2021-09-10 2021-09-10 Document online preview method and system

Country Status (1)

Country Link
CN (1) CN113778680A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160224517A1 (en) * 2015-01-29 2016-08-04 Dropbox, Inc. Modifying Native Documents with Formulas in a Preview
CN107515945A (en) * 2017-08-30 2017-12-26 四川长虹电器股份有限公司 A kind of method of the preview document in webpage
CN108804503A (en) * 2018-04-12 2018-11-13 北京明朝万达科技股份有限公司 A kind of online method for previewing of document and system
CN110232161A (en) * 2019-04-25 2019-09-13 天津市职业大学 A kind of online method for previewing of document based on browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160224517A1 (en) * 2015-01-29 2016-08-04 Dropbox, Inc. Modifying Native Documents with Formulas in a Preview
CN107515945A (en) * 2017-08-30 2017-12-26 四川长虹电器股份有限公司 A kind of method of the preview document in webpage
CN108804503A (en) * 2018-04-12 2018-11-13 北京明朝万达科技股份有限公司 A kind of online method for previewing of document and system
CN110232161A (en) * 2019-04-25 2019-09-13 天津市职业大学 A kind of online method for previewing of document based on browser

Similar Documents

Publication Publication Date Title
US20040261010A1 (en) Web page creation apparatus, Web page creation method, Web page creation program and recording method
US6950881B1 (en) System for converting wireless communications for a mobile device
CN101714094B (en) System including image forming device and server, and system control method
US9400699B2 (en) Data communication between modules
CN101754407B (en) Method, server and system for processing service access request
JP2015149568A (en) Image forming apparatus, control method of the same, and program
US20110225600A1 (en) Electronic apparatus, information processing method, and recording medium storing information processing program
JPH10171758A (en) Www file reading system using bar code
CN102196037A (en) Method and apparatus for accessing services of a device
US7079291B2 (en) Method for hard-copying web pages, method for printing display screens, system for hard-copying web pages, and internet connection device equipped with current-position detection capabilities
US20130185318A1 (en) Data providing apparatus, electronic apparatus, data processing system, and method of data processing
US20050015446A1 (en) Method and apparatus to remotely control electronic apparatuses over a network
US20090257085A1 (en) Generation of a web page including menu items for web pages
JP5530217B2 (en) Document browsing system and document conversion server
CN113778680A (en) Document online preview method and system
JP3782685B2 (en) Image server, client device, and control method thereof
JP2004227199A (en) Automatic discrimination system of browser display language, web server, and automatic discrimination method of browser display language used therefor
WO1998058335A2 (en) Storing electronically transmitted facsimiles on a web site
WO2017213454A1 (en) File control system and method using user server
EP2122479B1 (en) Enabling routing of data on a network based on a portion of data accessed from a non-network enabled device
US20030009462A1 (en) Computer-readable designators and methods and systems of using the same
US9049308B2 (en) Communication terminal device having registration determining unit
JP2006146932A (en) Image server and its operation control method
JP4159869B2 (en) Information providing apparatus, information providing method, information providing system, and information providing program
JP2001004394A (en) Map information system and method for delivering map

Legal Events

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