WO2017041587A1 - 文件展示方法和系统 - Google Patents
文件展示方法和系统 Download PDFInfo
- Publication number
- WO2017041587A1 WO2017041587A1 PCT/CN2016/090730 CN2016090730W WO2017041587A1 WO 2017041587 A1 WO2017041587 A1 WO 2017041587A1 CN 2016090730 W CN2016090730 W CN 2016090730W WO 2017041587 A1 WO2017041587 A1 WO 2017041587A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- server
- webpage
- target file
- parsing
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
Definitions
- the present invention relates to the field of network technologies, and in particular, to a file display method and system.
- a mobile device such as a mobile phone to display a file content
- a mobile device such as a mobile phone
- the file types are various and different types. Files may need to be installed with different readers, and storage files and installation file readers will take up too much memory of the mobile device, and because of the need to store files and install file readers, the operation is cumbersome and time consuming, making the display Less efficient.
- a file display method includes the following steps:
- a file display method includes the following steps:
- a file display system includes a terminal, and the terminal includes:
- a first parsing unit configured to locally parse the target file to obtain a file image
- a transceiver unit configured to send the file image to a server, and receive a webpage link corresponding to the webpage page returned by the server after generating a webpage page according to the file image, or send the target file to the
- the server performs parsing to obtain the file picture, and receives a webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image;
- a display unit configured to obtain a webpage display instruction, and display the webpage page according to the webpage link.
- a file display system includes a server, the server comprising:
- a receiving unit configured to receive a file picture obtained by locally analyzing the target file sent by the terminal, or receive the target file sent by the terminal;
- a generating unit configured to generate a webpage page according to the file image and a webpage link corresponding to the webpage page
- a sending unit configured to return the webpage link to the terminal, where the webpage is displayed when the terminal obtains a webpage display instruction for the webpage link;
- a second parsing unit configured to parse the target file to obtain the file image when the receiving unit receives the target file.
- the terminal after the terminal locally parses the file file obtained by the target file, the file image is sent to the server, or the target file is directly sent to the server, and the target file is parsed by the server.
- the terminal Since the target file is converted into a webpage page and a webpage link corresponding to the webpage page is generated, the terminal only needs to be loaded with a browser to browse the webpage page corresponding to the target file, without storing the target file, You do not need to install a reader that corresponds to the target file type to improve display efficiency.
- Embodiment 1 is a schematic flow chart of Embodiment 1 of a file display method according to the present invention.
- Embodiment 2 is a schematic flowchart of Embodiment 2 of a file display method according to the present invention
- Embodiment 3 is a schematic flowchart of Embodiment 3 of a file display method according to the present invention.
- Embodiment 4 is a schematic flowchart of Embodiment 4 of a file display method according to the present invention.
- FIG. 5 is a schematic flowchart of Embodiment 5 of a file display method according to the present invention.
- FIG. 6 is a schematic flowchart diagram of Embodiment 6 of a file display method according to the present invention.
- FIG. 7 is a schematic flowchart diagram of Embodiment 7 of a file display method according to the present invention.
- Embodiment 8 is a schematic flowchart of Embodiment 8 of a file display method according to the present invention.
- Embodiment 9 is a schematic flowchart of Embodiment 9 of a file display method according to the present invention.
- FIG. 10 is a schematic flowchart diagram of Embodiment 10 of a file display method according to the present invention.
- FIG. 11 is a schematic structural diagram of an embodiment of a file display system of the present invention.
- FIG. 12 is a schematic structural view of another embodiment of a document display system of the present invention.
- Figure 13 is a schematic structural view of a third embodiment of the document display system of the present invention.
- Figure 14 is a schematic structural view of a fourth embodiment of the document display system of the present invention.
- Figure 15 is a schematic structural view of a fifth embodiment of the document display system of the present invention.
- Figure 16 is a schematic structural view of a sixth embodiment of the document display system of the present invention.
- Figure 17 is a schematic structural view of a seventh embodiment of the document display system of the present invention.
- Figure 18 is a schematic structural view of an eighth embodiment of the document display system of the present invention.
- FIG. 19 is a schematic structural diagram of a ninth embodiment of a document display system of the present invention.
- Figure 20 is a block diagram showing the structure of a tenth embodiment of the document display system of the present invention.
- the first embodiment to the sixth embodiment are described by taking the processing procedure of the terminal as an example.
- FIG. 1 is a schematic flow chart of Embodiment 1 of a file display method of the present invention.
- the file display method of the first embodiment includes the following steps:
- Step S101 Perform local analysis on the target file to obtain a file picture, send the file picture to the server, or send the target file to the server for parsing to obtain the file picture;
- the target file may be a file of various formats such as word, PDF, PPT;
- the file image here refers to a picture converted into a file page in the target file by parsing
- the process of locally parsing the target file in the embodiment to obtain the file image may be: converting the file page in the target file into a file image according to a preset unit, where the preset unit may refer to one page or multiple pages, When the preset unit is one page, each page of the file is converted into a file image. When the preset unit is multiple pages, for example, two pages, each two-page file page is converted into a file image;
- the method for obtaining the file image by locally parsing the target file may be: parsing the target file to obtain a file page of the target file, and taking a screenshot or a snapshot of the file page to obtain the The picture corresponding to the file page is obtained according to the picture corresponding to the file page; if the file page of the target file is multiple pages, in order to improve the analysis efficiency, the file page may be taken in a screenshot or snapshot in parallel to obtain a picture corresponding to each file page;
- the manner of obtaining the file image by locally parsing the target file may be: acquiring the file type of the target file, and determining an analysis manner corresponding to the file type according to the preset association relationship, according to the The parsing method parses the target file to obtain the file image;
- the file type here may be equivalent to the file format, or may be attributed to a plurality of file formats to a file type.
- the solution in this embodiment is a method of converting to a picture in consideration of different file types (in this case).
- the file type of the target file is obtained first, and then the parsing method corresponding to the file type is determined according to the preset association relationship, and finally The determined parsing method parses the target file to obtain the file image, wherein the association relationship refers to a correspondence between the file type and the parsing manner, and the parsing manner corresponding to the various file types may be an existing file parsing manner;
- the file picture may be packaged and compressed, and the compressed package after the compression process is sent to the server;
- the target file may not be parsed locally, but the target file may be sent to the target file. Determining, by the server, the target file to obtain the file image, wherein parsing the target file by the server may be performed in the same manner as parsing the target file locally, This will not be repeated;
- Step S102 Receive a webpage link corresponding to the webpage page returned by the server after generating a webpage page according to the file image;
- the webpage is a waterfall webpage
- the specific process of the webpage link corresponding to the webpage page returned after the webpage is generated according to the file image may be: adding the file image to the webpage container, and the webpage container is The document image is displayed in a waterfall manner to obtain the webpage page;
- the method may further include the step of: sending a user agent to the server.
- (User Agent) information wherein the webpage page is generated by the server according to the user agent information and the file image; specifically, the server may acquire browser identifier information of the terminal by using the user agent information,
- the browser identification information may be identified by a browser mobile phone browser identifier, a tablet browser identifier, or a PC (Personal Computer) browser identifier, and the server may display the file image according to the browser identification information.
- the purpose of generating the webpage adaptively according to the browser identifier information of the terminal can be realized;
- the webpage link may be a two-dimensional code, or may be a URL (Uniform Resource Locator, a uniform resource locator, which is an address of a webpage page);
- URL Uniform Resource Locator, a uniform resource locator, which is an address of a webpage page
- Step S103 Acquire a webpage display instruction, and display the webpage page according to the webpage link;
- the webpage link is a URL
- the webpage display instruction may be triggered by a user's click operation on the webpage link
- the webpage link is a two-dimensional code
- the webpage display instruction may enable the user to start the terminal's scan code function
- the scan code can be triggered by a function implemented in a social networking application
- the webpage link When the webpage link is received, the webpage link may be displayed on the screen of the terminal, and the user may display the webpage display instruction of the webpage link, and when the user displays the webpage link instruction of the webpage link, The web page is displayed. Since the web page is generated by the image file obtained by parsing the target file, displaying the web page is equivalent to presenting the target file to the user, and the user can view the target file. Browsing;
- steps S101, S102, and S103 may be performed on the same terminal, or steps S101 and S102 may be performed on one terminal (for example, the first terminal), and step S103 is performed on another terminal (for example, Executed on the second terminal).
- steps S101 and S102 may be performed on one terminal (for example, the first terminal), and step S103 is performed on another terminal (for example, Executed on the second terminal).
- steps S101 and S102 may be performed on one terminal (for example, the first terminal), and step S103 is performed on another terminal (for example, Executed on the second terminal).
- steps S101 and S102 may be performed on one terminal (for example, the first terminal), and step S103 is performed on another terminal (for example, Executed on the second terminal).
- steps S101 and S102 may be performed on one terminal (for example, the first terminal), and step S103 is performed on another terminal (for example, Executed on the second terminal).
- steps S101 and S102 may be performed on one terminal (for example, the first terminal),
- the file image is sent to the server, or the target file is directly sent to the server, and the server is The target file is parsed to obtain the file picture, and the server returns a webpage link corresponding to the webpage page after the webpage is generated according to the file image, and the terminal displays the webpage page when the webpage display instruction is obtained. Since the target file is converted into a webpage page and a webpage link corresponding to the webpage page is generated, the terminal only needs to be loaded with a browser to browse the webpage page corresponding to the target file, without storing the target file, nor You need to install a reader that corresponds to the target file type to improve display efficiency.
- FIG. 2 it is a schematic flowchart of the second embodiment of the file display method of the present invention.
- the difference from the first embodiment is mainly that it is considered that there are more target files in the target file. Text, and the user may need to browse the content of these texts.
- the screen generated by the above method may be smaller due to the smaller screen of the mobile terminal such as a mobile phone.
- the step of parsing the target file to obtain the text content of the target file, the step of displaying the text content, and the like are added, so that the user needs to browse.
- the text content is displayed, the text content can be displayed to enhance the user experience.
- the method in this embodiment includes the following steps:
- Step S201 Perform local analysis on the target file to obtain a file image, send the file image to the server, or send the target file to the server for parsing to obtain the file image;
- Step S202 Perform local analysis on the target file to obtain text content of the target file, send the text content to the server, or send the target file to the server for parsing to obtain the text content;
- step S201 and step S202 may be performed in the above-mentioned sequence, or may be performed at the same time.
- step S202 may be performed first, step S201 may be performed, and step S201 and step S202 may be performed simultaneously. That is to say, whether the target file is parsed locally or the target file is parsed by the server, the other two methods may be used.
- One way is: parsing the target file After the text content is described, the target file is parsed to obtain the file image, and another method is: parsing the target file to obtain the file and parsing the target file to obtain the text content;
- the process of obtaining a document picture and the process of obtaining the text content can be performed by performing local analysis.
- one of the processes may be implemented by locally parsing the target file to implement another process by the server to parse the target file;
- Step S203 Receive a webpage link corresponding to the webpage page returned by the server after generating a webpage page according to the file image;
- association relationship between the webpage page and the text content may also be established by the server
- Step S204 Acquire a webpage display instruction, and display the webpage page according to the webpage link;
- Step S205 Acquire a text display instruction, and send text display request information to the server according to the text display instruction;
- Detecting a text display instruction when the text display instruction is detected, sending text display request information to the server according to the text display instruction, where the text display instruction may be displayed by the user on the webpage page The triggering action is triggered;
- the text presentation request information may include user agent information, and the text content is formatted by the server according to the user agent information.
- the user agent information is browser identifier information that can be used to obtain the terminal,
- the browser identification information may reflect the terminal type, and adopts a manner of formatting the text content according to the user agent information, so as to avoid a situation in which the font size is not suitable for the terminal (for example, a mobile phone) due to the screen size;
- Step S206 Receive the text content returned by the server according to the text display request information, and display the text content
- the text content after the typesetting is returned.
- FIG. 3 it is a schematic flowchart of the third embodiment of the file display method of the present invention.
- the difference from the first embodiment is mainly that the target file can be locally parsed to obtain a file image.
- the server sends the file picture, and the target file may be sent to the server for parsing to obtain the file picture.
- the method in this embodiment includes the steps of:
- Step S301 determining whether the file image can be obtained by locally parsing the target file, if yes, proceeding to step S302, if not, proceeding to step S303;
- the file picture can be obtained by locally parsing the target file according to a file format or a file type of the target file;
- Step S302 Perform local analysis on the target file to obtain a file picture, send the file picture to the server, and proceed to step S304;
- Step S303 Send the target file to the server for parsing to obtain the file picture, and proceed to step S304;
- the target file when the target file cannot be interpreted locally, the target file is sent to the server and parsed by the server;
- Step S304 receiving the webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image, and proceeding to step S305;
- Step S305 Display the webpage link or display the webpage link.
- the server parses the target file only when the target file cannot be parsed locally.
- the way of the target file, rather than all the object files parsed by the server, can also alleviate the pressure on the server and improve the display efficiency.
- FIG. 4 it is a schematic flowchart of the fourth embodiment of the file display method of the present invention.
- the difference from the first embodiment is mainly because the case where the target file itself is a picture is considered.
- the step of determining whether the file format of the target file is a picture format is added to improve the display efficiency.
- the method in this embodiment includes the steps of:
- Step S401 determining whether the file format of the target file is a picture format, if not, proceeding to step S402, and if yes, proceeding to step S403;
- Step S402 Perform local analysis on the target file to obtain a file picture, send the file picture to the server, or send the target file to the server for parsing to obtain the file picture, and proceed to step S404;
- Step S403 Send the target file to the server, and proceed to step S404;
- the target file is directly sent to the server;
- Step S404 receiving a webpage link corresponding to the webpage page returned by the server according to the file image or the target file, and proceeding to step S505;
- the web page is generated according to the file image, and the web page corresponding to the web page is linked. If the target file is sent to the server and the target file is Whether the file format is an image format, the received webpage is generated according to the target file and a webpage link corresponding to the webpage page;
- Step S405 Display the webpage link or display the webpage link.
- FIG. 5 it is a schematic flowchart of the fifth embodiment of the file display method of the present invention.
- the difference from the first embodiment is mainly because, in one case, the target file can be locally parsed. a file picture, the file picture is sent to the server, and the object file may be sent to the server for parsing to obtain the file picture, and it is determined when the target file is locally parsed and when the target file is sent to The server performs parsing.
- the target file may be a picture itself. In this case, the target file does not need to be parsed. For this reason, in this embodiment, it is added whether the judgment can be obtained by locally parsing the target file.
- the step of the document picture and the step of determining whether the file format of the target file is a picture format, so as to ensure smooth display and improve display efficiency.
- the method in this embodiment includes the following steps:
- Step S501 determining whether the file format of the target file is a picture format, and if so, proceeding to step S502, and if not, proceeding to step S503;
- Step S502 Send the target file to the server, and proceed to step S506;
- the target file is directly sent to the server;
- Step S503 determining whether the file image can be obtained by locally parsing the target file, if yes, proceeding to step S504, and if not, proceeding to step S505;
- Step S504 Perform local analysis on the target file to obtain a file picture, send the file picture to the server, and proceed to step S506;
- Step S505 Send the target file to the server for parsing to obtain the file picture, and proceed to step S506;
- the target file when the target file cannot be interpreted locally, the target file is sent to the server and parsed by the server;
- Step S506 receiving a webpage link corresponding to the webpage page returned by the server according to the file image or the target file, and proceeding to step S507;
- the web page is generated according to the file image, and the web page corresponding to the web page is linked. If the target file is sent to the server and the target file is Whether the file format is an image format, the received webpage is generated according to the target file and a webpage link corresponding to the webpage page;
- Step S507 Display the webpage link or display the webpage link.
- FIG. 6 it is a schematic flowchart of the sixth embodiment of the file display method of the present invention.
- the difference from the second embodiment is mainly that the text content can be obtained by locally parsing the target file. Sending the text content to the server, and sending the target file to the server for parsing to obtain the text content, in order to determine when to perform local parsing of the target file, and when to send the target file to the server for parsing
- the step of judging whether the text content can be obtained by parsing the object file locally is added.
- the method in this embodiment includes the following steps:
- Step S601 Perform local analysis on the target file to obtain a file picture, send the file picture to the server, or send the target file to the server for parsing to obtain the file picture, and proceed to step S602;
- Step S602 determining whether the text content can be obtained by locally parsing the target file, if yes, proceeding to step S602, and if not, proceeding to step S604;
- the text content can be obtained by parsing the target file locally according to a file format or a file type of the target file;
- Step S603 Perform local analysis on the target file to obtain the text content of the target file, send the text content to the server, and proceed to step S605;
- Step S604 The target file is sent to the server for parsing to obtain the text content, and the process proceeds to step S605;
- Step S605 receiving the webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image, and proceeding to step S606;
- Step S606 Acquire a webpage display instruction, display the webpage page according to the webpage link, and proceed to step S607;
- Step S607 Acquire a text display instruction, send text display request information to the server according to the text display instruction, and proceed to step S608;
- Step S608 Receive the text content returned by the server according to the text display request information, and display the text content.
- the method may further include the step of: linking the webpage. Save it locally, in this way, you can call up the webpage link as needed.
- the method may further include the step of: acquiring the webpage of the webpage.
- the operation instruction sends the operation instruction to the server to perform an operation corresponding to the webpage page and the operation instruction.
- the operation instruction may include a deletion instruction, a modification instruction, an encryption instruction, or an encryption instruction.
- the server For modifying the instruction, before the server performs the operation corresponding to the modification instruction on the webpage page, the server further needs to receive the modified target file, and convert the modified target file into a new webpage page, and use the new webpage page. Update the original web page.
- the server needs to acquire the encryption password before performing the operation corresponding to the encryption instruction on the webpage page.
- the processing process of the server includes:
- Step S701 receiving a file picture obtained by locally analyzing the target file sent by the terminal, or receiving the target file sent by the terminal, and parsing the target file to obtain the file picture;
- the file picture obtained by the terminal to be locally parsed by the target file can be received, but in consideration of the fact that the terminal may not be able to parse the file of a certain format, the terminal directly sends the target file to the server, in this case, In order to still display the target file, the target file sent by the terminal may be received, and the target file may be parsed to obtain the file image.
- Step S702 Generate a webpage page and a webpage link corresponding to the webpage page according to the file image
- the webpage is a waterfall webpage
- the specific process of the webpage link corresponding to the webpage page returned after the webpage is generated according to the file image may be: adding the file image to the webpage container, and the webpage container is The document image is displayed in a waterfall manner to obtain the webpage page;
- the method may further include the step of: receiving the user sent by the terminal.
- the agent information wherein the webpage page is generated according to the user agent information and the file image; specifically, the server may obtain browser identifier information of the terminal by using the user agent information, the browser identifier information
- the mobile phone browser identifier, the tablet browser identifier, or the PC (Personal Computer) identifier the server may arrange the file images in order according to the browser identification information, and generate and identify the browser identifier.
- the webpage corresponding to the browser is adapted to generate the webpage according to the browser identifier information of the terminal by using the solution in the embodiment;
- Step S703 Return the webpage link to the terminal, where the webpage display instruction is obtained by the terminal, and the webpage page is displayed according to the webpage link.
- the file image obtained by locally receiving the target file sent by the receiving terminal is received, or the target file sent by the terminal is received, and the target file is parsed to obtain the file image. And generating, according to the file image, a webpage page and a webpage link corresponding to the webpage, returning the webpage link to the terminal, obtaining, by the terminal, a webpage display instruction, and displaying the webpage page according to the webpage link.
- the webpage can be According to the user agent information and the file image generated, it is possible to adaptively generate a webpage page corresponding to the browser of the terminal.
- FIG. 8 it is a schematic flowchart of the eighth embodiment of the file display method of the present invention.
- the difference from the seventh embodiment is mainly that it is considered that there are many target files. Text, and the user may need to browse the content of these texts.
- the screen generated by the above method may be smaller due to the smaller screen of the mobile terminal such as a mobile phone.
- the step of parsing the target file to obtain the text content of the target file is added, and the text content is returned according to the text display request information.
- the terminal performs the step of displaying, etc., so that when the user needs to browse the text content, the text content can be displayed to enhance the user experience.
- Step S801 Receive a file picture obtained by locally analyzing the target file sent by the terminal, or receive the target file sent by the terminal, and parse the target file to obtain the file picture.
- Step S802 Receive text content of the target file obtained by locally parsing the target file sent by the terminal, or parse the target file to obtain the text content.
- the text content obtained by the terminal for local parsing of the target file may be received, but considering that the terminal may not be able to parse the file in a certain format, the terminal directly sends the terminal to the server, in this case, The display of the target file can still be implemented, and the target file sent by the terminal can be received, and the target file can be parsed to obtain the text content.
- step S802 it may be determined whether the text content sent by the terminal is acquired, and if not, the step of parsing the target file to obtain the text content;
- Step S803 Generate a webpage page and a webpage link corresponding to the webpage page according to the file image
- Step S804 Returning the webpage link to the terminal, where the webpage display instruction is obtained by the terminal, and the webpage page is displayed according to the webpage link;
- Step S805 Receive text display request information sent by the terminal to the server according to a text display instruction, where the text display instruction is acquired by the terminal;
- the text display request information includes user agent information, and the text content is typeset according to the user agent information;
- Step S806 Return the text content to the terminal for presentation according to the text display request information.
- FIG. 9 it is a schematic flowchart of the ninth embodiment of the file display method of the present invention.
- the difference from the seventh embodiment is mainly that the target file may be a picture itself.
- the target file is sent to the server by the terminal, but the target file does not need to be parsed; therefore, in this embodiment, the receiving the target file sent by the terminal is added, according to the target file.
- the file display method in the ninth embodiment includes the following steps:
- Step S901 receiving the file picture obtained by the terminal to locally parse the target file, and proceeding to step S904;
- Step 902 Receive the target file sent by the terminal, determine whether the file format of the target file is a picture format, if not, proceed to step S903, and if yes, proceed to step S904;
- step S901 and step 902 are performed in a file presentation;
- Step S903 parsing the target file to obtain the file picture, and proceeding to step S904;
- Step S904 generating a webpage page and a webpage link corresponding to the webpage page according to the file image or the target file, and proceeding to step S905;
- the webpage is generated according to the file image and the webpage corresponding to the webpage, and if the target file is received and the file format of the target file is a picture format, Generating a webpage page and a webpage link corresponding to the webpage page according to the target file;
- Step S905 Return the webpage link to the terminal, where the webpage display instruction is obtained by the terminal, and the webpage page is displayed according to the webpage link.
- the method in this embodiment includes the following steps:
- Step S1001 The terminal locally parses the target file to obtain a file picture, and sends the file picture to the server, or the terminal sends the target file to the server;
- Step S1002 The server receives the file picture, or receives the target file sent by the terminal, and parses the target file to obtain the file picture.
- Step S1003 The server generates a webpage page and a webpage link corresponding to the webpage page according to the file image;
- Step S1004 The server returns the webpage link to the terminal
- Step S1005 The terminal acquires a webpage display instruction, and displays the webpage page according to the webpage link.
- the file picture is sent to the server, or the target file is directly sent to the server, and the server
- the target file is parsed to obtain the file image
- the server generates a webpage page according to the file image and generates a webpage link corresponding to the webpage page, and returns the webpage link to the terminal, and displays the webpage display instruction when the terminal obtains the webpage display instruction.
- the webpage page converts the target file into a webpage page and generates a webpage link corresponding to the webpage page, so that the terminal only needs to be loaded with the browser to realize browsing of the webpage page corresponding to the target file, without storing
- the target file does not need to install a reader corresponding to the target file type, which can improve the display efficiency.
- the solutions in the first embodiment and the seventh embodiment are combined, but the two-way interaction process between the server and the terminal during file presentation is not limited thereto, and for example, it may be implemented.
- the second embodiment is combined with the solution of the eighth embodiment, or the sixth embodiment is combined with the solution of the ninth embodiment, and will not be explained here.
- the document display method of the present invention can be applied to many scenarios, and several of the application scenarios are briefly described below.
- Scene 1 When the user is in normal use, the PC (Personal Computer) file can be converted into a smaller and more suitable form for mobile phone reading.
- the document font is too small, the text content is re-typed by the server. Can improve the reading experience of small-sized text on the mobile phone.
- Scenario 2 In an office environment, a user can quickly send a working file to another user in a form suitable for reading the mobile phone, improve the mobility and reading efficiency of the working file, and remotely update the sent file content. , no need to resend to others.
- Scenario 3 In the teaching environment, a user (such as a teacher) can send the courseware or the board book to other users (such as students) in a very simple manner through the solution of the present invention, and improve the courseware in the classroom. Learning effects in and after class.
- the present invention also provides a document display system, which will be described in detail below with reference to an embodiment of the document display system of the present invention.
- the file display system of the present invention may include only one of a terminal and a server, and may also include a terminal and a server.
- a schematic structural diagram of a file display embodiment of the present invention is shown in FIG. 11 in combination with a terminal and a server, and may include one or two of the first parsing unit 11011 and the second parsing unit 11024. .
- the terminal 1101 in the file display system in this embodiment includes:
- the first parsing unit 11011 is configured to perform local parsing of the target file to obtain a file image.
- the transceiver unit 11012 is configured to send the file picture to the server 1102, and receive a webpage link corresponding to the webpage page returned by the server 1102 after generating the webpage page according to the file image, or send the target file to the server. 1102: Performing parsing to obtain the file picture, and receiving a webpage link corresponding to the webpage page returned by the server 1102 after generating the webpage page according to the file image;
- the display unit 11013 is configured to display the webpage link or display the webpage link.
- the first parsing unit 11011 is further configured to perform local parsing of the target file to obtain text content of the target file.
- the transceiver unit 11012 may be further configured to send the text content to a server, or send the target file to the server for parsing to obtain the text content;
- the display unit 11013 is further configured to obtain a text display instruction, and display the text content when the transceiving unit 11012 receives the text content;
- the display unit 11013 is further configured to send text display request information to the server according to the text display instruction, and receive the text content returned by the server according to the text display request information.
- the text presentation request information includes user agent information, and the text content is typeset by the server according to the user agent information.
- the terminal 1101 may further include a first determining unit 11014, which in:
- the first determining unit 11014 is configured to determine whether the file picture can be obtained by parsing the target file locally;
- the first parsing unit 11011 is configured to perform local parsing of the target file to obtain a file image when the determination result of the first judging unit 11014 is YES;
- the transceiver unit 11012 is configured to send the target file to the server for parsing to obtain the file picture when the determination result of the first determining unit 11014 is NO.
- the terminal 1101 may further include a second determining unit 11015, where:
- the second determining unit 11015 is configured to determine whether the file format of the target file is a picture format
- the first parsing unit 11011 is configured to perform local parsing of the target file to obtain a file image when the determination result of the second judging unit is no;
- the transceiver unit 11012 transmits the target file to the server when the determination result of the second determination unit is YES.
- the terminal 1101 may include a first determining unit 11014 and a second determining unit 11015, where:
- the second determining unit 11015 is configured to determine whether the file format of the target file is a picture format
- the transceiver unit 11012 is configured to send the target file to the server when the determination result of the second determining unit 11015 is YES;
- the first determining unit 11014 is configured to determine, when the determination result of the second determining unit 11015 is NO, whether the file picture can be obtained by parsing the target file locally;
- the first parsing unit 11011 is configured to perform local parsing of the target file to obtain a file image when the determination result of the first judging unit 11014 is YES;
- the transceiver unit 11012 is configured to: when the determination result of the first determining unit 11014 is negative, send the target file to the server, and parse the target file by the server to obtain the file picture.
- the terminal 1101 may include a third determining unit 11016, where:
- the third determining unit 11016 is configured to determine whether the text content can be obtained by parsing the target file locally;
- the first parsing unit 11011 performs localization on the target file when the determination result of the third judging unit 11016 is YES. Parsing to obtain text content;
- the transceiver unit 11012 is configured to send the target file to the server for parsing to obtain the text content when the determination result of the third determining unit 11016 is NO.
- the terminal 1101 may further include an instruction acquiring unit 11017;
- the instruction obtaining unit 11017 is configured to acquire an operation instruction for the webpage page
- the transceiver unit 11012 is further configured to send the operation instruction to the server to perform an operation corresponding to the operation instruction on the webpage page.
- the web page link is a two-dimensional code or a URL.
- the server 1102 in the file display system in this embodiment includes:
- the receiving unit 11021 is configured to receive a file picture obtained by locally analyzing the target file sent by the terminal, or receive the target file sent by the terminal;
- the generating unit 11022 is configured to generate a webpage page and a webpage link corresponding to the webpage page according to the file image;
- the sending unit 11023 is configured to return the webpage link to the terminal, where the webpage display instruction is obtained by the terminal, and the webpage page is displayed according to the webpage link;
- the second parsing unit 11024 is configured to parse the target file to obtain the file image when the receiving unit 11021 receives the target file.
- the receiving unit 11021 is further configured to receive, by the terminal, text content of the target file obtained by locally parsing the target file;
- the second parsing unit 11024 is further configured to: when the receiving unit receives the target file, parse the target file to obtain the text content;
- the receiving unit 11021 is further configured to receive text display request information sent by the terminal to the server according to a text display instruction, where the text display instruction is acquired by the terminal;
- the sending unit 11023 is further configured to return the text content to the terminal for display according to the text display request information.
- the server 1102 may further include a typesetting unit 11025, wherein the text display request information may include user agent information, and the typesetting unit 11025 pairs the text content according to the user agent information. Make a typesetting.
- the server 1102 may further include a fourth determining unit 11026, where:
- the fourth determining unit 11026 is configured to determine whether the file format of the target file is a picture format
- the second parsing unit 11024 is further configured to: when the determination result of the fourth judging unit 11026 is negative, parse the target file to obtain the file picture;
- the generating unit 11022 is configured to generate a webpage page and a webpage link corresponding to the webpage page according to the target file when the determination result of the fourth judging unit 11026 is YES.
- the server 1102 may further include a fifth determining unit 11027, wherein:
- the fifth determining unit 11027 is configured to determine whether the text content sent by the terminal is acquired
- the second parsing unit 11024 is configured to parse the target file to obtain the text content when the determination result of the fifth judging unit 11027 is NO.
- the server 1102 may further include an operation unit 11028, wherein:
- the receiving unit 11021 is further configured to receive an operation instruction of the terminal on the webpage page;
- the operation unit 11028 is configured to perform an operation corresponding to the operation instruction on the webpage page.
- the webpage link may be a two-dimensional code or a URL.
- the document presentation system of the present invention corresponds to the file presentation method of the present invention.
- the technical features and advantages of the embodiments of the above document presentation method are applicable to the embodiment of the file presentation system, and are hereby declared.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明提供一种文件展示方法和系统,其方法包括步骤:在终端对目标文件进行本地解析获得的文件图片后,将文件图片发送到服务器,或者直接将所述目标文件发送给所述服务器,由所述服务器对所述目标文件进行解析获得所述文件图片,并由服务器根据所述文件图片生成网页页面并生成与该网页页面对应的网页链接,将该网页链接返回给终端,在终端获取到网页展示指令时,展示所述网页页面,由于将目标文件转换成了网页页面,并生成了网页页面对应的网页链接,这样终端只需要装载有浏览器就可以实现对目标文件对应的网页页面的浏览,而不需要存储目标文件,也不需要安装与目标文件类型相对应的阅读器,可以提高展示效率。
Description
本发明涉及网络技术领域,特别是涉及一种文件展示方法和系统。
随着网络技术的发展,各种文件越来越多,内容也越来越丰富。特别是随着iPhone、Android、WindowsPhone等移动电子设备的流行,越来越多的用户喜欢利用手机等移动设备进行文件内容的阅读,也就是说,需要利用手机等移动设备进行文件内容的展示。
一般地,利用手机等移动设备进行文件内容的展示,需要用户将文件内容存储到相应的移动设备上,还需要移动设备上安装有相应文件的阅读器,文件的类型多种多样,不同类型的文件可能需要安装不同的阅读器,而存储文件以及安装文件阅读器都会过多的占用移动设备的内存,且因为需要存储文件以及安装文件阅读器,操作较为繁琐,耗费的时间较多,使得展示效率较低。
发明内容
本发明的目的在于提供一种文件展示方法和系统,可以提高展示效率。
本发明的目的通过如下技术方案实现:
一种文件展示方法,包括如下步骤:
对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者将所述目标文件发送给所述服务器进行解析获得所述文件图片;
接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;
获取网页展示指令,根据所述网页链接展示所述网页页面。
一种文件展示方法,包括如下步骤:
接收终端发送的对目标文件进行本地解析获得的文件图片,或者接收所述终端发送的所述目标文件,并对所述目标文件进行解析获得所述文件图片;
根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;
将所述网页链接返回给终端,其中,由所述终端获取网页展示指令,并根据所述网页
链接展示所述网页页面。
一种文件展示系统,包括终端,所述终端包括:
第一解析单元,用于对目标文件进行本地解析获得文件图片;
收发单元,用于向服务器发送所述文件图片,并接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接,或者用于将所述目标文件发送给所述服务器进行解析获得所述文件图片,并接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;
展示单元,用于获取网页展示指令,根据所述网页链接展示所述网页页面。
一种文件展示系统,包括服务器,所述服务器包括:
接收单元,用于接收终端发送的对目标文件进行本地解析获得的文件图片,或者接收所述终端发送的所述目标文件;
生成单元,用于根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;
发送单元,用于将所述网页链接返回给所述终端,其中,在所述终端获取到对所述网页链接的网页展示指令时,展示所述网页页面;
第二解析单元,用于在所述接收单元接收到的是所述目标文件时,对所述目标文件进行解析获得所述文件图片。
根据上述本发明的方案,其是在终端对目标文件进行本地解析获得的文件图片后,将文件图片发送到服务器,或者直接将所述目标文件发送给服务器,由服务器对所述目标文件进行解析获得所述文件图片,并由服务器根据所述文件图片生成网页页面并生成与该网页页面对应的网页链接,将该网页链接返回给终端,在终端获取到网页展示指令时,展示所述网页页面,由于将目标文件转换成了网页页面,并生成了网页页面对应的网页链接,这样终端只需要装载有浏览器就可以实现对目标文件对应的网页页面的浏览,而不需要存储目标文件,也不需要安装与目标文件类型相对应的阅读器,可以提高展示效率。
图1为本发明的文件展示方法实施例一的流程示意图;
图2为本发明的文件展示方法实施例二的流程示意图;
图3为本发明的文件展示方法实施例三的流程示意图;
图4为本发明的文件展示方法实施例四的流程示意图;
图5为本发明的文件展示方法实施例五的流程示意图;
图6为本发明的文件展示方法实施例六的流程示意图
图7为本发明的文件展示方法实施例七的流程示意图;
图8为本发明的文件展示方法实施例八的流程示意图;
图9为本发明的文件展示方法实施例九的流程示意图;
图10为本发明的文件展示方法实施例十的流程示意图;
图11为本发明的文件展示系统的一个实施例的结构示意图;
图12为本发明的文件展示系统的另一个实施例的结构示意图;
图13为本发明的文件展示系统的第三个实施例的结构示意图;
图14为本发明的文件展示系统的第四个实施例的结构示意图;
图15为本发明的文件展示系统的第五个实施例的结构示意图;
图16为本发明的文件展示系统的第六个实施例的结构示意图;
图17为本发明的文件展示系统的第七个实施例的结构示意图;
图18为本发明的文件展示系统的第八个实施例的结构示意图;
图19为本发明的文件展示系统的第九个实施例的结构示意图;
图20为本发明的文件展示系统的第十个实施例的结构示意图。
为使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步的详细说明。应当理解,此处所描述的具体实施方式仅仅用以解释本发明,并不限定本发明的保护范围。
在下述说明中,首先针对本发明的文件展示方法的实施例进行说明,再对本发明的文件展示系统的实施例进行说明。
如下的实施例一~实施例六是以终端的处理过程为例进行说明。
实施例一
图1中示出了本发明的文件展示方法实施例一的流程示意图。参见图1所示,本实施例一的文件展示方法包括如下步骤:
步骤S101:对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者将所述目标文件发送给所述服务器进行解析获得所述文件图片;
这里,目标文件可以是word、PDF、PPT等各种格式的文件;
这里的文件图片是指通过解析将目标文件中的文件页面转换成的图片;
本实施例中的对目标文件进行本地解析获得文件图片的过程可以是:按照预设单位将目标文件中文件页面转换成文件图片,这里的预设单位可以指一页也可以是多页,在预设单位为一页时,每一页文件页面转换成一张文件图片,在预设单元是多页时,例如两页,则每两页文件页面转换成一张文件图片;
在其中一个实施例中,对目标文件进行本地解析获得文件图片的方式可以是:解析所述目标文件获得该所述目标文件的文件页面,对所述文件页面进行截图或者快照,得到与所述文件页面对应的图片,根据与所述文件页面对应的图片获得所述文件图片;如果目标文件的文件页面是多页,为了提高解析效率,可以并行的对所述文件页面进行截图或者快照,得到与各文件页面分别对应的图片;
在其中一个实施例中,对目标文件进行本地解析获得文件图片的方式也可以是:获取所述目标文件的文件类型,根据预设的关联关系确定与所述文件类型对应的解析方式,根据所述解析方式对目标文件进行解析获得所述文件图片;
这里的文件类型可以等同于文件格式,也可以是将多种文件格式归于一种文件类型,采用本实施例中的方案,是考虑到不同的文件类型,对应的转换成图片的方式(在本实施例中称为解析方式)也是不同的,因此,在本实施例中是先获取所述目标文件的文件类型,再根据预设的关联关系确定与所述文件类型对应的解析方式,最后根据所确定的解析方式对目标文件进行解析获得所述文件图片,其中,关联关系是指文件类型与解析方式的对应关系,各种文件类型对应的解析方式可以是现有的文件解析方式;
在实际应用中,可以将上述两个实施例中的对目标文件进行本地解析获得文件图片的方式进行结合,在此不予赘述;
为了提高发送效率,在将所述文件图片发送给服务器之前,还可以对所述文件图片进行打包与压缩处理,将压缩处理之后的压缩包发送到服务器;
此外,考虑到终端可能无法实现对某种格式的文件的解析,这种时候,为了仍能实现对目标文件的展示,还可以不对目标文件进行本地解析,而是将所述目标文件发送给所述服务器,由所述服务器对所述目标文件进行解析获得所述文件图片,其中,在所述服务器对所述目标文件进行解析可以与在本地对所述目标文件进行解析采用相同的方式,在此不予赘述;
步骤S102:接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;
为了便于用户对网页页面的浏览,提高浏览效率,在其中一个实施例中,该网页页面为瀑布式网页页面;
在其中一个实施例中,根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接的具体过程可以是:将所述文件图片添加到网页容器中,由所述网页容器对所述文件图片进行瀑布式显示,得到所述网页页面;
考虑到终端的类型不同,屏幕大小也会有所不同,而与不同大小的屏幕适应的网页也会不同,为此,在其中一个实施例中,还可以包括步骤:向所述服务器发送用户代理(User Agent)信息,其中,所述网页页面由所述服务器根据所述用户代理信息以及所述文件图片生成;具体地,所述服务器可通过所述用户代理信息获取终端的浏览器标识信息,该浏览器标识信息可以用或者浏览器手机浏览器标识、平板浏览器标识、或者PC(浏览器个人电脑,Personal Computer)浏览器标识,所述服务器可以根据该浏览器标识信息将所述文件图片按顺序进行排列,生成与浏览器标识信息对应的浏览器相适应的网页页面,采用本实施例中的方案,可实现根据终端的浏览器标识信息自适应的生成网页的目的;
其中,所述网页链接可以为二维码,或者也可以为URL(Uniform Resource Locator,统一资源定位符,是网页页面的地址);
步骤S103:获取网页展示指令,根据所述网页链接展示所述网页页面;
这里,在所述网页链接为URL,所述网页展示指令可以通过用户对网页链接的点击操作触发;在所述网页链接为二维码,所述网页展示指令可以用户启动终端的扫码功能(该扫码可以是社交网络应用软件中实现的功能)触发;
在接收到该网页链接时,可以将该网页链接显示在终端的屏幕上,监测用户对所述网页链接的网页展示指令,在监测到用户对所述网页链接的网页展示指令时,对所述网页页面进行展示,由于该网页页面是由对目标文件进行解析获得的图片文件生成,因此,对所述网页页面进行的展示,相当于向用户展示了目标文件,用户就可以对所述目标文件进行浏览了;
需要说明的是,上述步骤S101、步骤S102和步骤S103可以在同一终端上执行,也可以是步骤S101、步骤S102在一个终端(例如第一终端)上执行,而步骤S103在另一个终端(例如第二终端)上执行,同时,在实际应用中,多个终端可以根据在不同时刻所进行
的不同操作可以充当第一终端或第二终端;
根据上述本实施例的方案,其是终端对目标文件进行本地解析获得的文件图片后,并将文件图片发送到服务器,或者直接将所述目标文件发送给所述服务器,由所述服务器对所述目标文件进行解析获得所述文件图片,并所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接,终端在获取到网页展示指令时,展示所述网页页面,由于将目标文件转换成了网页页面,并生成了网页页面对应的网页链接,这样终端只需要装载有浏览器就可以实现对目标文件对应的网页页面的浏览,而不需要存储目标文件,也不需要安装与目标文件类型相对应的阅读器,可以提高展示效率。
实施例二
如图2所示,是本发明的文件展示方法实施例二的流程示意图,在本实施例中,与上述实施例一的不同之处主要在于,考虑到有的目标文件中会存在较多的文本,而用户可能较为需要浏览的也是这些文本的内容,而在手机等移动终端上进行展示时,由于手机等移动终端的屏幕较小,按照上述方式生成的网页页面可能会出现因字体较小而影响用户浏览文件效率的问题,为此,在本实施例中,增加了对目标文件进行解析获得所述目标文件的文本内容的步骤、展示所述文本内容的步骤等,以便在用户需要浏览文本内容时,可以进行所述文本内容的展示,提升用户体验。
如图2所示,本实施例中的方法包括步骤:
步骤S201:对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者将所述目标文件发送给所述服务器进行解析获得所述文件图片;
步骤S202:对目标文件进行本地解析获得所述目标文件的文本内容,向服务器发送所述文本内容,或者将所述目标文件发送给所述服务器进行解析获得所述文本内容;
需要说明的是,步骤S201、步骤S202可以不采用上述的先后顺序执行,也可以同时执行,例如,还可以是先执行步骤S202、再执行步骤S201,还可以同时执行步骤S201和步骤S202,也就是说,无论是对所述目标文件进行本地解析,还是由所述服务器对所述目标文件进行解析,都还可以采用另外两种方式执行,一种方式是:在对目标文件进行解析获得所述文本内容后,再对目标文件进行解析获得所述文件图片,另一种方式是:在对目标文件进行解析获得所述文件图片的同时还对目标文件进行解析获得所述文本内容;
此外,获得文件图片的过程以及获得所述文本内容的过程可以均通过进行本地解析实
现,也可以其中一个过程通过对所述目标文件进行本地解析实现另一个过程由所述服务器对所述目标文件进行解析实现;
步骤S203:接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;
此外,还可以由服务器建立所述网页页面与所述文本内容的关联关系;
步骤S204:获取网页展示指令,根据所述网页链接展示所述网页页面;
步骤S205:获取文本展示指令,根据所述文本展示指令向所述服务器发送文本展示请求信息;
检测文本展示指令,在检测到该文本展示指令时,根据所述文本展示指令向所述服务器发送文本展示请求信息,在文本展示指令可以是在展示所述网页页面时,由用户对该网页页面的触发操作进行触发;
考虑到不同的终端的屏幕大小也可能不同,有时候会出现由于屏幕大小导致字体大小不适合终端(例如手机)的情况,导致用户无法获得较好的阅读体验,为此,在其中一个实施例中,所述文本展示请求信息可以包括用户代理信息,由所述服务器根据所述用户代理信息对所述文本内容进行排版,这里,用户代理信息是可用于获取终端的浏览器标识信息,由于该浏览器标识信息可以反映终端类型,采用根据用户代理信息对所述文本内容进行排版的方式,可以避免由于屏幕大小导致字体大小不适合终端(例如手机)的情况;
步骤S206:接收所述服务器根据所述文本展示请求信息返回的所述文本内容,展示所述文本内容;
其中,在所述文本展示请求信息中包括有用户代理信息时,返回的是排版后的文本内容。
本实施例中的其他技术特征与上述实施例一中的相同,在此不予赘述。
实施例三
如图3所示,是本发明的文件展示方法实施例三的流程示意图,在本实施例中,与上述实施例一的不同之处主要在于,可以对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片,也可以将所述目标文件发送给所述服务器进行解析获得所述文件图片,为了确定什么时候对目标文件进行本地解析、什么时候将目标文件发送到服务器进行解析,在本实施例中,增加了判断是否可以通过在本地解析所述目标文件获得所述文件图
片的步骤。
如图3所示,本实施例中的方法包括步骤:
步骤S301:判断是否可以通过在本地解析所述目标文件获得所述文件图片,若是,进入步骤S302,若否,进入到步骤S303;
可以根据目标文件的文件格式或者文件类型判断是否可以通过在本地解析所述目标文件获得所述文件图片;
步骤S302:对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片,进入到步骤S304;
步骤S303:将所述目标文件发送给所述服务器进行解析获得所述文件图片,进入到步骤S304;
也就是说,在本地不能解释所述目标文件时,将该目标文件发送到服务器,由服务器进行解析;
步骤S304:接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接,进入到步骤S305;
步骤S305:显示所述网页链接,或者展示所述网页链接。
采用本实施例中的方案,即便在本地不能解释目标文件时,也能进行目标文件的展示,此外,采用本实施例中这种只有在本地无法解析所述目标文件时才由服务器解析所述目标文件的方式,而不是全部由服务器解析所述目标文件,也可以减轻服务器的压力,提高展示效率。
本实施例中的其他技术特征与上述实施例一中的相同,在此不予赘述。
实施例四
如图4所示,是本发明的文件展示方法实施例四的流程示意图,在本实施例中,与上述实施例一的不同之处主要在于,考虑到若目标文件本身就是图片,这种情况下,是不需要解析目标文件,为此,在本实施例中,增加了判断所述目标文件的文件格式是否是图片格式的步骤,以提高展示效率。
如图4所示,本实施例中的方法包括步骤:
步骤S401:判断所述目标文件的文件格式是否是图片格式,若否,进入步骤S402,若是,进入到步骤S403;
步骤S402:对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者将所述目标文件发送给所述服务器进行解析获得所述文件图片,进入到步骤S404;
步骤S403:向所述服务器发送所述目标文件,进入到步骤S404;
也就是说,在目标文件的文件格式是图片格式时,直接将目标文件发送给服务器;
步骤S404:接收所述服务器根据所述文件图片或者所述目标文件生成网页页面后返回的与该网页页面对应的网页链接,进入到步骤S505;
其中,若向服务器发送的是文件图片时,则接收到是根据所述文件图片生成网页页面以及与该网页页面对应的网页链接,若向服务器发送的是所述目标文件且所述目标文件的文件格式是否为图片格式,则接收到的是根据目标文件生成网页页面以及与该网页页面对应的网页链接;
步骤S405:显示所述网页链接,或者展示所述网页链接。
本实施例中的其他技术特征与上述实施例一中的相同,在此不予赘述。
实施例五
如图5所示,是本发明的文件展示方法实施例五的流程示意图,在本实施例中,与上述实施例一的不同之处主要在于,其一,考虑可以对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片,也可以将所述目标文件发送给所述服务器进行解析获得所述文件图片,就要确定什么时候对目标文件进行本地解析、什么时候将目标文件发送到服务器进行解析,其二,考虑目标文件可能本身就是图片,这种情况下,是不需要解析目标文件,为此,在本实施例中,增加了判断是否可以通过在本地解析所述目标文件获得所述文件图片的步骤以及判断所述目标文件的文件格式是否是图片格式的步骤,以保证展示的顺利进行提高展示效率。
如图5所示,本实施例中的方法包括步骤:
步骤S501:判断所述目标文件的文件格式是否是图片格式,若是,进入步骤S502,若否,进入到步骤S503;
步骤S502:向所述服务器发送所述目标文件,进入到步骤S506;
也就是说,在目标文件的文件格式是图片格式时,直接将目标文件发送给服务器;
步骤S503:判断是否可以通过在本地解析所述目标文件获得所述文件图片,若是,进入步骤S504,若否,进入到步骤S505;
步骤S504:对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片,进入到步骤S506;
步骤S505:将所述目标文件发送给所述服务器进行解析获得所述文件图片,进入到步骤S506;
也就是说,在本地不能解释所述目标文件时,将该目标文件发送到服务器,由服务器进行解析;
步骤S506:接收所述服务器根据所述文件图片或者所述目标文件生成网页页面后返回的与该网页页面对应的网页链接,进入到步骤S507;
其中,若向服务器发送的是文件图片时,则接收到是根据所述文件图片生成网页页面以及与该网页页面对应的网页链接,若向服务器发送的是所述目标文件且所述目标文件的文件格式是否为图片格式,则接收到的是根据目标文件生成网页页面以及与该网页页面对应的网页链接;
步骤S507:显示所述网页链接,或者展示所述网页链接。
本实施例中的其他技术特征与上述实施例一中的相同,在此不予赘述。
实施例六
如图6所示,是本发明的文件展示方法实施例六的流程示意图,在本实施例中,与上述实施例二的不同之处主要在于,考虑到可以对目标文件进行本地解析获得文本内容,向服务器发送所述文本内容,也可以将所述目标文件发送给所述服务器进行解析获得所述文本内容,为了确定什么时候对目标文件进行本地解析、什么时候将目标文件发送到服务器进行解析,在本实施例中,增加了判断是否可以通过在本地解析所述目标文件获得所述文本内容的步骤。
如图6所示,本实施例中的方法包括步骤:
步骤S601:对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者将所述目标文件发送给所述服务器进行解析获得所述文件图片,进入到步骤S602;
步骤S602:判断是否可以通过在本地解析所述目标文件获得所述文本内容若是,进入步骤S602,若否,进入到步骤S604;
可以根据目标文件的文件格式或者文件类型判断是否可以通过在本地解析所述目标文件获得所述文本内容;
步骤S603:对目标文件进行本地解析获得所述目标文件的文本内容,向服务器发送所述文本内容,进入到步骤S605;
步骤S604:将所述目标文件发送给所述服务器进行解析获得所述文本内容,进入到步骤S605;
步骤S605:接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接,进入到步骤S606;
步骤S606:获取网页展示指令,根据所述网页链接展示所述网页页面,进入到步骤S607;
步骤S607:获取文本展示指令,根据所述文本展示指令向所述服务器发送文本展示请求信息,进入到步骤S608;
步骤S608:接收所述服务器根据所述文本展示请求信息返回的所述文本内容,展示所述文本内容。
本实施例中的其他技术特征与上述实施例二中的相同,在此不予赘述。
此外,考虑到用户在获得网页链接后,可能并不是及时的对网页页面进行浏览,为了避免重复的进行文件展示的整个过程,在其中一个实施例中,还可以包括步骤:将所述网页链接保存在本地,采用这种方式,就可以随时根据需要调出所述网页链接。
另一方面,考虑到,用户可能需要对目标文件生成的网页页面进行管理,例如,修改、删除、加密等,因此,在其中一个实施例中,还可以包括步骤:获取对所述网页页面的操作指令,将所述操作指令发送给所述服务器对所述网页页面与该进行操作指令对应的操作。
其中,操作指令可以包括删除指令、修改指令、加密指令或解除加密指令等。
对于修改指令,服务器在对所述网页页面进行与该修改指令对应的操作之前,还需要接收修改后的目标文件,并将修改后的目标文件转化成新的网页页面,用该新的网页页面更新原来的网页页面。
对于加密指令,服务器在对所述网页页面进行与该加密指令对应的操作之前,还需要获取加密密码。
如下的实施例七~实施例九是以服务器的处理过程为例进行说明。
实施例七
如图7所示,本发明的文件展示方法,在该实施例七中,服务器的处理过程包括有:
步骤S701:接收终端发送的对目标文件进行本地解析获得的文件图片,或者接收所述终端发送的所述目标文件,并对所述目标文件进行解析获得所述文件图片;
也就是说,可以接收终端发送的对目标文件进行本地解析获得的文件图片,但考虑到终端可能无法实现对某种格式的文件的解析,终端会直接将目标文件发送到服务器,这种时候,为了仍能实现对目标文件的展示,也可以接收所述终端发送的所述目标文件,并对所述目标文件进行解析获得所述文件图片;
步骤S702:根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;
为了便于用户对网页页面的浏览,提高浏览效率,在其中一个实施例中,该网页页面为瀑布式网页页面;
在其中一个实施例中,根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接的具体过程可以是:将所述文件图片添加到网页容器中,由所述网页容器对所述文件图片进行瀑布式显示,得到所述网页页面;
考虑到终端的类型不同,屏幕大小也会有所不同,而与不同大小的屏幕适应的网页也会不同,为此,在其中一个实施例中,还可以包括步骤:接收所述终端发送的用户代理信息,其中,所述网页页面根据所述用户代理信息以及所述文件图片生成;具体地,所述服务器可通过所述用户代理信息获取所述终端的浏览器标识信息,该浏览器标识信息包括手机浏览器标识、平板浏览器标识、或者PC(浏览器个人电脑,Personal Computer)标识,所述服务器可以根据该浏览器标识信息将所述文件图片按顺序进行排列,生成与浏览器标识信息对应的浏览器相适应的网页页面,采用本实施例中的方案,可实现根据终端的浏览器标识信息自适应的生成网页的目的;
步骤S703:将所述网页链接返回给终端,其中,由所述终端获取网页展示指令,并根据所述网页链接展示所述网页页面。
根据上述本实施例的方案,其是接收终端发送的对目标文件进行本地解析获得的文件图片,或者接收所述终端发送的所述目标文件,并对所述目标文件进行解析获得所述文件图片,根据所述文件图片生成网页页面以及与该网页页面对应的网页链接,将所述网页链接返回给所述终端,由所述终端获取网页展示指令,并根据所述网页链接展示所述网页页面,由于将目标文件转换成了网页页面,并生成了网页页面对应的网页链接,这样终端只
需要装载有浏览器就可以实现对目标文件对应的网页页面的浏览,而不需要存储目标文件,也不需要安装与目标文件类型相对应的阅读器,可以提高展示效率,同时,网页页面可以是根据所述用户代理信息以及所述文件图片生成的,可以实现自适应的生成与终端的浏览器相对应的网页页面。
本实施例中的各技术特征与上述实施例一中的相同,在此不予赘述。
实施例八
如图8所示,是本发明的文件展示方法实施例八的流程示意图,在本实施例中,与上述实施例七的不同之处主要在于,考虑到有的目标文件中会存在较多的文本,而用户可能较为需要浏览的也是这些文本的内容,而在手机等移动终端上进行展示时,由于手机等移动终端的屏幕较小,按照上述方式生成的网页页面可能会出现因字体较小而影响用户浏览文件效率的问题,为此,在本实施例中,增加了对目标文件进行解析获得所述目标文件的文本内容的步骤、根据所述文本展示请求信息将所述文本内容返回给所述终端进行展示的步骤等,以便在用户需要浏览文本内容时,可以进行所述文本内容的展示,提升用户体验。
步骤S801:接收终端发送的对目标文件进行本地解析获得的文件图片,或者接收所述终端发送的所述目标文件,并对所述目标文件进行解析获得所述文件图片;
步骤S802:接收所述终端发送的对目标文件进行本地解析获得的所述目标文件的文本内容,或者对所述目标文件进行解析获得所述文本内容;
也就是说,可以接收终端发送的对目标文件进行本地解析获得的文本内容,但考虑到终端可能无法实现对某种格式的文件的解析,终端会直接将终端发送到服务器,这种时候,为了仍能实现对目标文件的展示,也可以接收所述终端发送的所述目标文件,并对所述目标文件进行解析获得所述文本内容;
此外,也可以在步骤S802之前,先判断是否获取到所述终端发送的所述文本内容,若否,则进入所述对所述目标文件进行解析获得所述文本内容的步骤;
步骤S803:根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;
步骤S804:将所述网页链接返回给终端,其中,由所述终端获取网页展示指令,并根据所述网页链接展示所述网页页面;
步骤S805:接收所述终端根据文本展示指令向所述服务器发送的文本展示请求信息,其中,所述文本展示指令由所述终端获取;
在其中一个实施例中,所述文本展示请求信息包括用户代理信息,根据所述用户代理信息对所述文本内容进行排版;
步骤S806:根据所述文本展示请求信息将所述文本内容返回给所述终端进行展示。
本实施例中的各技术特征与上述实施例二中的相同,在此不予赘述。
实施例九
如图9所示,是本发明的文件展示方法实施例九的流程示意图,在本实施例中,与上述实施例七的不同之处主要在于,考虑到目标文件可能本身就是图片,这种情况下,由终端发送到服务器的是目标文件,但是这种目标文件是不需要解析的;为此,在本实施例中,增加了接收所述终端发送的所述目标文件、根据所述目标文件生成网页页面以及与该网页页面对应的网页链接的步骤。
如图9所示,该实施例九中的文件展示方法包括如下步骤:
步骤S901:接收终端发送的对目标文件进行本地解析获得的文件图片,进入步骤S904;
步骤902:接收所述终端发送的所述目标文件,判断所述目标文件的文件格式是否是图片格式,若否,进入步骤S903,若是,则进入步骤S904;
其中,在某一次文件展示中,只执行步骤S901、步骤902中的一个步骤;
步骤S903:解析所述目标文件获得所述文件图片,进入步骤S904;
步骤S904:根据所述文件图片或者所述目标文件生成网页页面以及与该网页页面对应的网页链接,进入步骤S905;
其中,在接收到的是文件图片时,根据所述文件图片生成网页页面以及与该网页页面对应的网页链接,若接收到的是所述目标文件且所述目标文件的文件格式为图片格式,则根据目标文件生成网页页面以及与该网页页面对应的网页链接;
步骤S905:将所述网页链接返回给终端,其中,由所述终端获取网页展示指令,并根据所述网页链接展示所述网页页面。
本实施例中的各技术特征与上述实施例一中的相同,在此不予赘述。
以下结合上述实施例一、实施例七中的方案,图10中示出了本发明的文件展示方法实施例十的流程示意图。在本实施例中,是以文件展示时服务器与终端之间的双向交互过程为例进行说明,这种说明并不用以对本发明方案构成限定。
如图10所示,在该实施例十中,本实施例中的方法包括步骤:
步骤S1001:终端对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者终端将所述目标文件发送给所述服务器;
步骤S1002:所述服务器接收所述文件图片,或者接收所述终端发送的所述目标文件,并对所述目标文件进行解析获得所述文件图片;
步骤S1003:所述服务器根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;
步骤S1004:所述服务器将所述网页链接返回给所述终端;
步骤S1005:所述终端获取网页展示指令,根据所述网页链接展示所述网页页面。
根据上述本发明的方案,其是在终端对目标文件进行本地解析获得的文件图片后,将文件图片发送到服务器,或者直接将所述目标文件发送给所述服务器,由所述服务器对所述目标文件进行解析获得所述文件图片,并由服务器根据所述文件图片生成网页页面并生成与该网页页面对应的网页链接,将该网页链接返回给终端,在终端获取到网页展示指令时,展示所述网页页面,由于将目标文件转换成了网页页面,并生成了网页页面对应的网页链接,这样终端只需要装载有浏览器就可以实现对目标文件对应的网页页面的浏览,而不需要存储目标文件,也不需要安装与目标文件类型相对应的阅读器,可以提高展示效率。
本实施例中的各技术特征与上述实施例一中的相同,在此不予赘述。
需要说明的是,在该实施例十中是将实施例一、实施例七中的方案进行结合,但文件展示时服务器与终端之间的双向交互过程并不限于此,例如还可以是将实施例二与实施例八的方案进行结合,或者将实施例六与实施例九的方案进行结合,在此不一一阐述。
本发明的文件展示方法可以应用到很多场景中,以下对其中几种应用场景进行简单说明。
场景一:用户正常使用的时候,可以通过本发明的方案把PC(Personal Computer,个人电脑)文件转化成更小更合适手机阅读的形式,当文档字体过小时,通过服务器对文本内容重新进行排版,可以提升小字号文本在手机端的阅读体验。
场景二:在办公环境中,一个用户快速将工作文件以将工作文档以更合适手机阅读的形式发给另外的用户,提高工作文件的流动性与阅读效率,同时可以远程更新已发送的文件内容,不需要重新发送给其他人。
场景三:在教学环境中,一个用户(例如老师)可以通过本发明的方案以非常简单的方式将课件或者板书更合适手机阅读的形式发送给其他用户(例如学生),提高课堂的课件在课中与课后的学习效果。
根据上述本发明的文件展示方法,本发明还提供一种文件展示系统,以下就本发明的文件展示系统的实施例进行详细说明。
本发明的文件展示系统,可以只包括终端、服务器中的一个,也可以同时包括终端和服务器。为方便说明,图11中以结合终端和服务器为例,示出了本发明的文件展示实施例的结构示意图,其中,可以包括第一解析单元11011、第二解析单元11024中的一个或者两个。
如图11所示,本实施例中的文件展示系统中的终端1101包括有:
第一解析单元11011,用于对目标文件进行本地解析获得文件图片;
收发单元11012,用于向服务器1102发送所述文件图片,并接收服务器1102根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接,或者用于将所述目标文件发送给服务器1102进行解析获得所述文件图片,并接收服务器1102根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;
展示单元11013,用于显示所述网页链接,或者展示所述网页链接。
在其中一个实施例中:
第一解析单元11011还可以用于对目标文件进行本地解析获得所述目标文件的文本内容;
收发单元11012还可以用于向服务器发送所述文本内容,或者将所述目标文件发送给所述服务器进行解析获得所述文本内容;
展示单元11013还可以用于获取文本展示指令,并在收发单元11012接收到所述文本内容时,展示所述文本内容;
展示单元11013还可以用于根据所述文本展示指令向所述服务器发送文本展示请求信息,并接收所述服务器根据所述文本展示请求信息返回的所述文本内容。
在其中一个实施例中,所述文本展示请求信息包括用户代理信息,由所述服务器根据所述用户代理信息对所述文本内容进行排版。
在其中一个实施例中,如图12所示,终端1101还可以包括第一判断单元11014,其
中:
第一判断单元11014用于判断是否可以通过在本地解析所述目标文件获得所述文件图片;
第一解析单元11011用于在第一判断单元11014的判定结果为是时,对目标文件进行本地解析获得文件图片;
收发单元11012用于在第一判断单元11014的判定结果为否时,将所述目标文件发送给所述服务器进行解析获得所述文件图片。
在其中一个实施例中,如图13所示,终端1101还可以包括第二判断单元11015,其中:
第二判断单元11015用于判断所述目标文件的文件格式是否是图片格式;
第一解析单元11011用于在所述第二判断单元的判定结果为否时,对目标文件进行本地解析获得文件图片;
收发单元11012在所述第二判断单元的判定结果为是时,向所述服务器发送所述目标文件。
在其中一个实施例中,如图14所示,终端1101可以包括第一判断单元11014、第二判断单元11015,其中:
第二判断单元11015用于判断所述目标文件的文件格式是否是图片格式;
收发单元11012用于在第二判断单元11015的判定结果为是时,向所述服务器发送所述目标文件;
第一判断单元11014用于在第二判断单元11015的判定结果为否时,判断是否可以通过在本地解析所述目标文件获得所述文件图片;
第一解析单元11011用于在第一判断单元11014的判定结果为是时,对目标文件进行本地解析获得文件图片;
收发单元11012用于在第一判断单元11014的判定结果为否时,向所述服务器发送所述目标文件,在所述服务器解析所述目标文件获得所述文件图片。
在其中一个实施例中,如图15所示,终端1101可以包括第三判断单元11016,其中:
第三判断单元11016用于判断是否可以通过在本地解析所述目标文件获得所述文本内容;
第一解析单元11011在第三判断单元11016的判定结果为是时,对目标文件进行本地
解析获得文本内容;
收发单元11012用于在第三判断单元11016的判定结果为否时,将所述目标文件发送给所述服务器进行解析获得所述文本内容。
在其中一个实施例中,如图16所示,终端1101还可以包括指令获取单元11017;
指令获取单元11017用于获取对所述网页页面的操作指令;
收发单元11012还可以用于将所述操作指令发送给所述服务器对所述网页页面进行与该操作指令对应的操作。
在其中一个实施例中,所述网页链接为二维码或者URL。
如图11所示,本实施例中的文件展示系统中的服务器1102包括有:
接收单元11021,用于接收终端发送的对目标文件进行本地解析获得的文件图片,或者接收所述终端发送的所述目标文件;
生成单元11022,用于根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;
发送单元11023,用于将所述网页链接返回给终端,其中,由所述终端获取网页展示指令,并根据所述网页链接展示所述网页页面;
第二解析单元11024,用于在接收单元11021接收到的是所述目标文件时,对所述目标文件进行解析获得所述文件图片。
在其中一个实施例中,接收单元11021还可以用于接收所述终端发送的对目标文件进行本地解析获得的所述目标文件的文本内容;
第二解析单元11024还可以用于在所述接收单元接收到的是所述目标文件时,对所述目标文件进行解析获得所述文本内容;
接收单元11021还可以用于接收所述终端根据文本展示指令向所述服务器发送的文本展示请求信息,其中,所述文本展示指令由所述终端获取;
发送单元11023还可以用于根据所述文本展示请求信息将所述文本内容返回给所述终端进行展示。
在其中一个实施例中,如图17所示,服务器1102还可以包括排版单元11025,其中,所述文本展示请求信息可以包括用户代理信息,排版单元11025根据所述用户代理信息对所述文本内容进行排版。
在其中一个实施例中,如图18所示,服务器1102还可以包括第四判断单元11026,其中:
第四判断单元11026用于判断所述目标文件的文件格式是否是图片格式;
第二解析单元11024还可以用于在第四判断单元11026的判定结果为否时,解析所述目标文件获得所述文件图片;
生成单元11022用于在第四判断单元11026的判定结果为是时,根据所述目标文件生成网页页面以及与该网页页面对应的网页链接。
在其中一个实施例中,如图19所示,服务器1102还可以包括第五判断单元11027,其中:
第五判断单元11027用于判断是否获取到所述终端发送的所述文本内容;
第二解析单元11024用于在第五判断单元11027的判定结果为否时,对所述目标文件进行解析获得所述文本内容。
在其中一个实施例中,如图20所示,服务器1102还可以包括操作单元11028,其中:
接收单元11021还用于接收终端对所述网页页面的操作指令;
操作单元11028用于对所述网页页面进行与所述操作指令对应的操作。
在其中一个实施例中,上述网页链接可以为二维码或者URL。
本发明的文件展示系统与本发明的文件展示方法一一对应,在上述文件展示方法的实施例阐述的技术特征及其有益效果均适用于文件展示系统的实施例中,特此声明。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。
Claims (23)
- 一种文件展示方法,其特征在于,包括如下步骤:对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者将所述目标文件发送给所述服务器进行解析获得所述文件图片;接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;获取网页展示指令,根据所述网页链接展示所述网页页面。
- 根据权利要求1所述的文件展示方法,其特征在于,还包括步骤:对目标文件进行本地解析获得所述目标文件的文本内容,向服务器发送所述文本内容,或者将所述目标文件发送给所述服务器进行解析获得所述文本内容;获取文本展示指令,根据所述文本展示指令向所述服务器发送文本展示请求信息;接收所述服务器根据所述文本展示请求信息返回的所述文本内容,展示所述文本内容。
- 根据权利要求1所述的文件展示方法,其特征在于,还包括步骤:向所述服务器发送用户代理信息,其中,所述网页页面由所述服务器根据所述用户代理信息以及所述文件图片生成。
- 根据权利要求2所述的文件展示方法,其特征在于,其特征在于,所述文本展示请求信息包括用户代理信息,由所述服务器根据所述用户代理信息对所述文本内容进行排版。
- 根据权利要求1所述的文件展示方法,其特征在于,还包括步骤:判断是否可以通过在本地解析所述目标文件获得所述文件图片;若是,进入所述对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片的步骤;若否,则进入所述将所述目标文件发送给所述服务器进行解析获得所述文件图片的步骤。
- 根据权利要求1所述的文件展示方法,其特征在于,还包括步骤:判断所述目标文件的文件格式是否是图片格式;若否,进入所述对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片的步骤;若是,则向所述服务器发送所述目标文件。
- 根据权利要求1所述的文件展示方法,其特征在于,还包括步骤:判断所述目标文件的文件格式是否是图片格式;若是图片格式,则向所述服务器发送所述目标文件;若不是图片格式,则判断是否可以通过在本地解析所述目标文件获得所述文件图片;若可以,则进入所述对目标文件进行本地解析获得文件图片,向服务器发送所述文件图片的步骤;若不可以,则向所述服务器发送所述目标文件,在所述服务器解析所述目标文件获得所述文件图片。
- 根据权利要求2所述的文件展示方法,其特征在于,还包括步骤:判断是否可以通过在本地解析所述目标文件获得所述文本内容;若是,进入对目标文件进行本地解析获得所述目标文件的文本内容,向服务器发送所述文本内容的步骤;若否,则进入所述将所述目标文件发送给所述服务器进行解析获得所述文本内容的步骤。
- 根据权利要求1所述的文件展示方法,其特征在于,还包括步骤:获取对所述网页页面的操作指令,将所述操作指令发送给所述服务器对所述网页页面进行与该操作指令对应的操作。
- 根据权利要求1-8任意一项所述的文件展示方法,其特征在于,所述网页链接为二维码或者URL。
- 一种文件展示方法,其特征在于,包括如下步骤:接收终端发送的对目标文件进行本地解析获得的文件图片,或者接收所述终端发送的所述目标文件,并对所述目标文件进行解析获得所述文件图片;根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;将所述网页链接返回给终端,其中,由所述终端获取网页展示指令,并根据所述网页链接展示所述网页页面。
- 根据权利要求11所述的文件展示方法,其特征在于,还包括步骤:接收所述终端发送的对目标文件进行本地解析获得的所述目标文件的文本内容,或者对所述目标文件进行解析获得所述文本内容;接收所述终端根据文本展示指令向所述服务器发送的文本展示请求信息,其中,所述文本展示指令由所述终端获取;根据所述文本展示请求信息将所述文本内容返回给所述终端进行展示。
- 根据权利要求11所述的文件展示方法,其特征在于,还包括步骤:接收所述终端发送的用户代理信息,其中,所述网页页面根据所述用户代理信息以及所述文件图片生成。
- 根据权利要求11所述的文件展示方法,其特征在于:所述文本展示请求信息包括用户代理信息,根据所述用户代理信息对所述文本内容进行排版。
- 根据权利要求12或13所述的文件展示方法,其特征在于,还包括步骤:判断是否获取到所述终端发送的所述文本内容;若否,则进入所述对所述目标文件进行解析获得所述文本内容的步骤。
- 根据权利要求11所述的文件展示方法,其特征在于,还包括步骤:判断所述目标文件的文件格式是否是图片格式;若否,则解析所述目标文件获得所述文件图片;若是,则根据所述目标文件生成网页页面以及与该网页页面对应的网页链接。
- 根据权利要求11所述的文件展示方法,其特征在于,还包括步骤:接收终端发送的对所述网页页面的操作指令,对所述网页页面进行与所述操作指令对应的操作。
- 一种文件展示系统,其特征在于,包括终端,所述终端包括:第一解析单元,用于对目标文件进行本地解析获得文件图片;收发单元,用于向服务器发送所述文件图片,并接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接,或者用于将所述目标文件发送给所述服务器进行解析获得所述文件图片,并接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;展示单元,用于获取网页展示指令,根据所述网页链接展示所述网页页面。
- 根据权利要求18所述的文件展示系统,其特征在于:所述第一解析单元还用于对目标文件进行本地解析获得所述目标文件的文本内容;所述收发单元还用于向服务器发送所述文本内容,或者将所述目标文件发送给所述服务器进行解析获得所述文本内容;所述展示单元还用于获取文本展示指令,并在所述收发单元接收到所述文本内容时,展示所述文本内容;所述收发单元还用于根据所述文本展示指令向所述服务器发送文本展示请求信息,并接收所述服务器根据所述文本展示请求信息返回的所述文本内容。
- 根据权利要求18所述的文件展示系统,其特征在于:所述收发单元还用于向所述服务器发送用户代理信息,其中,所述网页页面由所述服务器根据所述用户代理信息以及所述文件图片生成。
- 一种文件展示系统,其特征在于,包括服务器,所述服务器包括:接收单元,用于接收终端发送的对目标文件进行本地解析获得的文件图片,或者接收所述终端发送的所述目标文件;生成单元,用于根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;发送单元,用于将所述网页链接返回给所述终端,其中,在所述终端获取到对所述网页链接的网页展示指令时,展示所述网页页面;第二解析单元,用于在所述接收单元接收到的是所述目标文件时,对所述目标文件进行解析获得所述文件图片。
- 根据权利要求21所述的文件展示系统,其特征在于:所述接收单元还用于接收所述终端发送的对目标文件进行本地解析获得的所述目标文件的文本内容;第二解析单元还用于在所述接收单元接收到的是所述目标文件时,对所述目标文件进行解析获得所述文本内容;所述接收单元还用于接收所述终端根据文本展示指令向所述服务器发送的文本展示请求信息,其中,所述文本展示指令由所述终端获取;所述发送单元还用于根据所述文本展示请求信息将所述文本内容返回给所述终端进行展示。
- 根据权利要求22所述的文件展示系统,其特征在于:所述接收单元还用于接收所述终端发送的用户代理信息;所述生成单元根据所述用户代理信息以及所述文件图片生成所述网页页面。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510580265.8A CN105120109A (zh) | 2015-09-11 | 2015-09-11 | 文件展示方法和系统 |
| CN201510580265.8 | 2015-09-11 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017041587A1 true WO2017041587A1 (zh) | 2017-03-16 |
Family
ID=54667988
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/090730 Ceased WO2017041587A1 (zh) | 2015-09-11 | 2016-07-20 | 文件展示方法和系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105120109A (zh) |
| WO (1) | WO2017041587A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109213968A (zh) * | 2018-08-01 | 2019-01-15 | 山东浪潮通软信息科技有限公司 | 一种在线预览网盘文件的方法 |
| CN109766315A (zh) * | 2017-08-23 | 2019-05-17 | 腾讯科技(深圳)有限公司 | 文件展示方法及终端、计算机存储介质、计算机设备 |
| CN112506868A (zh) * | 2020-12-03 | 2021-03-16 | 北京达佳互联信息技术有限公司 | 一种文件展示方法、装置、电子设备及存储介质 |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105120109A (zh) * | 2015-09-11 | 2015-12-02 | 广州视睿电子科技有限公司 | 文件展示方法和系统 |
| CN107203536A (zh) * | 2016-03-16 | 2017-09-26 | 阿里巴巴集团控股有限公司 | 内容的在线浏览方法、装置及设备 |
| CN108268579B (zh) * | 2017-01-19 | 2021-06-08 | 阿里巴巴(中国)有限公司 | 落地页显示内容的显示方法、装置 |
| CN108282486B (zh) * | 2018-01-31 | 2021-02-12 | 西安万像电子科技有限公司 | 一种文件系统和文件展示方法 |
| CN108763416A (zh) * | 2018-05-23 | 2018-11-06 | 广州视源电子科技股份有限公司 | 多媒体文件展示方法、装置、计算机设备及存储介质 |
| CN109325205A (zh) * | 2018-09-25 | 2019-02-12 | 中国建设银行股份有限公司 | 一种页面生成方法和装置 |
| CN111291005B (zh) * | 2020-01-19 | 2023-05-02 | Oppo(重庆)智能科技有限公司 | 文件查看方法、装置、终端设备、系统以及存储介质 |
| CN111581550A (zh) * | 2020-05-11 | 2020-08-25 | 广东小天才科技有限公司 | 一种文档下载的方法、装置、系统、服务器及存储介质 |
| CN113687884B (zh) * | 2020-05-18 | 2024-04-26 | 北京字节跳动网络技术有限公司 | 一种文件交付方法、装置、系统、设备及存储介质 |
| CN112419114A (zh) * | 2020-12-02 | 2021-02-26 | 杭州桥度科技有限公司 | 一种利用图片实现对软件系统操作的简易仿真方法 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130091026A1 (en) * | 2011-10-10 | 2013-04-11 | Arcsoft, Inc. | Photo Sharing with Digital Album |
| CN103353878A (zh) * | 2013-06-14 | 2013-10-16 | 陆昀 | 将多种格式的文档显示在网页中的方法 |
| CN104239426A (zh) * | 2014-08-25 | 2014-12-24 | 武汉天喻信息产业股份有限公司 | 一种实现跨平台文档阅读的系统及方法 |
| CN105120109A (zh) * | 2015-09-11 | 2015-12-02 | 广州视睿电子科技有限公司 | 文件展示方法和系统 |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102104853A (zh) * | 2010-12-30 | 2011-06-22 | 重庆新媒农信科技有限公司 | 基于移动终端网页数据业务的服务器系统及其业务通信方法 |
| CN102780717A (zh) * | 2011-05-10 | 2012-11-14 | 北京磊友信息科技有限公司 | 自适应文件格式匹配的方法及服务器 |
| CN103092941B (zh) * | 2013-01-10 | 2016-06-29 | 北京奇虎科技有限公司 | 在电子设备上呈现内容的方法和装置 |
| CN103399842A (zh) * | 2013-07-03 | 2013-11-20 | 惠州Tcl移动通信有限公司 | 一种无线通讯设备中文档处理的方法及系统 |
| CN103853806A (zh) * | 2013-09-26 | 2014-06-11 | 深圳海联讯科技股份有限公司 | 一种表格转换方法及装置 |
| CN103716760A (zh) * | 2013-12-23 | 2014-04-09 | 广州市久邦数码科技有限公司 | 一种收发短信方法及系统 |
| CN104615391A (zh) * | 2015-02-03 | 2015-05-13 | 九玉(北京)科技有限公司 | 一种文件预览方法、装置及系统 |
-
2015
- 2015-09-11 CN CN201510580265.8A patent/CN105120109A/zh active Pending
-
2016
- 2016-07-20 WO PCT/CN2016/090730 patent/WO2017041587A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130091026A1 (en) * | 2011-10-10 | 2013-04-11 | Arcsoft, Inc. | Photo Sharing with Digital Album |
| CN103353878A (zh) * | 2013-06-14 | 2013-10-16 | 陆昀 | 将多种格式的文档显示在网页中的方法 |
| CN104239426A (zh) * | 2014-08-25 | 2014-12-24 | 武汉天喻信息产业股份有限公司 | 一种实现跨平台文档阅读的系统及方法 |
| CN105120109A (zh) * | 2015-09-11 | 2015-12-02 | 广州视睿电子科技有限公司 | 文件展示方法和系统 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109766315A (zh) * | 2017-08-23 | 2019-05-17 | 腾讯科技(深圳)有限公司 | 文件展示方法及终端、计算机存储介质、计算机设备 |
| CN109213968A (zh) * | 2018-08-01 | 2019-01-15 | 山东浪潮通软信息科技有限公司 | 一种在线预览网盘文件的方法 |
| CN112506868A (zh) * | 2020-12-03 | 2021-03-16 | 北京达佳互联信息技术有限公司 | 一种文件展示方法、装置、电子设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105120109A (zh) | 2015-12-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017041587A1 (zh) | 文件展示方法和系统 | |
| WO2016202236A1 (zh) | 文件分享方法和系统 | |
| CN110362372A (zh) | 页面转译方法、装置、介质及电子设备 | |
| CN104508689B (zh) | 一种二维码处理方法和终端 | |
| WO2013178053A1 (en) | Methods and apparatuses for sharing information | |
| CN113382083B (zh) | 一种网页截图方法和装置 | |
| WO2016025756A1 (en) | Form filling method and related terminal | |
| WO2022099871A1 (zh) | 笔迹数据处理方法、装置及电子设备 | |
| US8718374B2 (en) | Method and apparatus for accessing an electronic resource based upon a hand-drawn indicator | |
| CN109145242B (zh) | 办公文档在线共享方法、系统以及计算机可读存储介质 | |
| CN112612964A (zh) | 一种图片展示方法、装置、计算机设备和存储介质 | |
| JP2016540333A (ja) | 端末標記方法、端末標記装置、プログラム及び記録媒体 | |
| CN103440295A (zh) | 一种多媒体文件上传方法及电子终端 | |
| CN106294480A (zh) | 一种文件格式转换方法、装置及试题导入系统 | |
| CN104156421B (zh) | 页面的展现方法、装置及系统 | |
| US10063738B2 (en) | Digital content access using a machine-readable link | |
| CN104572816B (zh) | 信息处理方法及电子设备 | |
| JP5632733B2 (ja) | 表示装置、画面画像転送方法、及びプログラム | |
| CN106294441A (zh) | 一种文档转换方法及装置 | |
| CN105991683A (zh) | 数据传输方法及装置 | |
| US20140072223A1 (en) | Embedding Media Content Within Image Files And Presenting Embedded Media In Conjunction With An Associated Image | |
| CN113703699A (zh) | 电子文件的实时输出方法和装置 | |
| US9992528B2 (en) | System and methods thereof for displaying video content | |
| CN113590564A (zh) | 数据存储方法、装置、电子设备及存储介质 | |
| CN104899024B (zh) | 一种截图方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16843525 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16843525 Country of ref document: EP Kind code of ref document: A1 |