[go: up one dir, main page]

CN106294441A - A kind of document conversion method and device - Google Patents

A kind of document conversion method and device Download PDF

Info

Publication number
CN106294441A
CN106294441A CN201510279194.8A CN201510279194A CN106294441A CN 106294441 A CN106294441 A CN 106294441A CN 201510279194 A CN201510279194 A CN 201510279194A CN 106294441 A CN106294441 A CN 106294441A
Authority
CN
China
Prior art keywords
document
webpage
converted
file
submodule
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
CN201510279194.8A
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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201510279194.8A priority Critical patent/CN106294441A/en
Publication of CN106294441A publication Critical patent/CN106294441A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/93Document management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A kind of document conversion method of embodiment of the present invention offer and device, be applied to server, and described server is connected with client device communications, and the method includes: receives document and document conversion message that described client device sends;Change message according to described document, the document received is defined as document to be converted;Described document to be converted is converted to web page files;Described web page files is stored in primary importance;Generate the web page interlinkage being used for accessing the described web page files of described primary importance.The application embodiment of the present invention, can be converted to web page files by the document being used for information sharing between user, and can generate one for the web page interlinkage accessing this web page files, user can be by sending this web page interlinkage to carry out information sharing easily.It addition, this invention also solves the problem that the biggest document of data is time-consuming in transmitting procedure.

Description

Document conversion method and device
Technical Field
The present invention relates to the field of document conversion technologies, and in particular, to a document conversion method and apparatus.
Background
In daily work and life, documents are commonly used by users, and the users can more intuitively display contents to be shared to the users in the modes of animation, audio and video by using the documents, so that complicated problems can be changed into popular, easy to understand and vivid.
In the prior art, a user can directly send a document to other users so as to realize information sharing with the user.
When the method is adopted, a user needs to transmit the document to other users through a network or in a copy mode, and especially for the document with large data, a certain time is consumed in the transmission process.
Disclosure of Invention
The embodiment of the invention aims to provide a document conversion method and a document conversion device, so as to realize convenient information sharing among users.
In order to achieve the above object, an embodiment of the present invention discloses a document conversion method, which is applied to a server, where the server is in communication connection with a client device, and the method includes:
receiving a document and a document conversion message sent by the client equipment;
determining the received document as a document to be converted according to the document conversion message;
converting the document to be converted into a webpage file;
storing the web page file at a first location;
generating a web page link for accessing the web page file at the first location.
Preferably, the converting the document to be converted into a web page file includes:
obtaining images of all document pages in the document to be converted;
and generating a webpage file containing the image of each document page.
Preferably, the converting the document to be converted into a web page file includes:
analyzing the data of the document to be converted to obtain an analysis result;
obtaining the element type of the document element in the document to be converted from the analysis result;
converting each document element in the document to be converted into a webpage element with a corresponding type according to a preset corresponding relation between the webpage element type and the document element type;
and generating a webpage file containing each webpage element obtained by conversion.
Preferably, after performing data analysis on the document to be converted and obtaining an analysis result, the converting the document to be converted into a web page file further includes:
obtaining the coordinates of the document elements in the document to be converted from the analysis result;
determining the relative position of the document element in the document to be converted according to the obtained coordinate of the document element in the document to be converted;
the generating of the web page file containing the converted web page elements includes:
and each document element is processed as follows: determining the relative position of the document element in the document to be converted as the relative position of the webpage element converted by the document element in the webpage;
and generating a webpage file containing each webpage element obtained by conversion, wherein each webpage element and the webpage have the determined relative position relation corresponding to the webpage element.
Preferably, after performing data analysis on the document to be converted and obtaining an analysis result, the converting the document to be converted into a web page file further includes:
obtaining the animation effect corresponding to the document element in the document to be converted according to the analysis result;
determining the animation effect corresponding to the webpage element obtained by converting the document element according to the corresponding relation between the animation effect corresponding to the document element and the animation effect corresponding to the webpage element;
the generating of the web page file containing the converted web page elements includes:
and generating a webpage file containing each webpage element obtained by conversion, wherein the animation effect of the webpage element in the webpage file is the determined corresponding animation effect.
Preferably, after the generating the web page link for accessing the web page file, the method further includes:
sending the web page link to the client device;
receiving an animation modification instruction fed back by the client device, wherein the animation modification instruction carries a first animation effect corresponding to a first webpage element in the webpage file;
and modifying the original animation effect of the first webpage element into the first animation effect according to the animation modification instruction.
In order to achieve the above object, an embodiment of the present invention discloses a document conversion apparatus, which is applied to a server, wherein the server is in communication connection with a client device, and the document conversion apparatus includes:
the document receiving module is used for receiving the document and the document conversion message sent by the client equipment;
the document to be converted determining module is used for determining the received document as the document to be converted according to the document conversion message;
the conversion module of the document to be converted is used for converting the document to be converted into a webpage file;
the webpage file storage module is used for storing the webpage file at a first position;
and the webpage link generating module is used for generating a webpage link for accessing the webpage file at the first position.
Preferably, the to-be-converted document conversion module includes: the document page image acquisition sub-module and the first webpage file generation sub-module; wherein,
the document page image obtaining submodule is used for obtaining images of all document pages in the document to be converted;
and the first webpage file generating submodule is used for generating a webpage file containing the image of each document page.
Preferably, the to-be-converted document conversion module includes: the data analysis submodule, the document element type acquisition submodule, the webpage element conversion submodule and the second webpage file generation submodule are connected; wherein,
the data analysis submodule is used for carrying out data analysis on the document to be converted to obtain an analysis result;
the document element type obtaining submodule is used for obtaining the element type of the document element in the document to be converted from the analysis result;
the webpage element conversion submodule is used for converting each document element in the document to be converted into a webpage element with a corresponding type according to a preset corresponding relation between the webpage element type and the document element type;
and the second webpage file generating submodule is used for generating a webpage file containing each webpage element obtained through conversion.
Preferably, the to-be-converted document conversion module includes: a document element coordinate obtaining submodule and a relative position determining submodule; wherein,
the document element coordinate obtaining submodule is used for carrying out data analysis on the document to be converted in the data analysis submodule, and obtaining the coordinate of the document element in the document to be converted from the analysis result after the analysis result is obtained;
the relative position determining submodule is used for determining the relative position of the document element in the document to be converted according to the obtained coordinate of the document element in the document to be converted;
the second webpage file generating submodule comprises: the system comprises a webpage element position determining unit and a first webpage file generating unit; wherein,
the webpage element position determining unit is used for processing each document element as follows: determining the relative position of the document element in the document to be converted as the relative position of the webpage element converted by the document element in the webpage;
the first webpage file generating unit is used for generating a webpage file containing each webpage element obtained through conversion, and each webpage element and the webpage page have the determined relative position relation corresponding to the webpage element.
Preferably, the to-be-converted document conversion module includes: a document animation effect obtaining submodule, a webpage element animation effect determining submodule and a second webpage file generating submodule; wherein,
the document animation effect obtaining submodule is used for obtaining the animation effect corresponding to the document element in the document to be converted according to the analysis result;
the webpage element animation effect determining submodule is used for determining the animation effect corresponding to the webpage element obtained by converting the document element according to the corresponding relation between the animation effect corresponding to the document element and the animation effect corresponding to the webpage element;
and the second webpage file generating submodule is specifically used for generating a webpage file containing each webpage element obtained through conversion, wherein the animation effect of the webpage element in the webpage file is the determined corresponding animation effect.
Preferably, the apparatus further comprises: the system comprises a webpage link sending module, an animation instruction receiving module and an animation modification module; wherein,
the webpage link sending module is used for sending the webpage link to the client device;
the animation instruction receiving module is used for receiving an animation modification instruction fed back by the client device, wherein the animation modification instruction carries a first animation effect corresponding to a first webpage element in the webpage file;
and the animation modification module is used for modifying the original animation effect of the first webpage element into the first animation effect according to the animation modification instruction.
The document conversion method and the document conversion device provided by the embodiment of the invention can convert the document used for information sharing among users into the webpage file, can generate the webpage link used for accessing the webpage file, and can conveniently share the information by sending the webpage link. In addition, the invention also solves the problem that the document with large data consumes time in the transmission process. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a document conversion method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another document conversion method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another document conversion method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another document conversion method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating another document conversion method according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating another document conversion method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a document conversion apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flowchart of a document conversion method provided in an embodiment of the present invention, which is applied to a server, where the server is in communication connection with a client device, and the method may include the following steps:
step S101: and receiving the document and the document conversion message sent by the client equipment.
The user can send the document to be converted to the server by using client equipment such as a mobile phone, an Ipad, a notebook computer and the like; and the server establishes communication connection with the client device in advance through connection modes such as Bluetooth and Wifi. Of course, the present invention does not need to be limited to the specific implementation manner for establishing the communication connection, and any possible implementation manner can be applied to the present invention.
It should be noted that, the documents mentioned in the embodiments of the present invention may include: office-like documents such as text documents, spreadsheets, and presentation documents.
It should be noted that, the "document conversion message" mentioned herein may include: the scope of the document to be converted, the type of web page to which the document is to be converted, whether animation is to be retained, etc. In practical application, the user can make proper settings according to actual needs, and the document conversion message is not required to be limited by the invention.
Step S102: and determining the received document as a document to be converted according to the document conversion message.
It should be noted that, according to the document conversion message received in step S101 and sent by the user through the client device, the document range of the document that needs to be converted can be known, and the part of the content that needs to be converted is determined as the document to be converted.
For example, the document range to be converted may be the whole document, or a certain page or pages of the document in the document, or even a certain object or objects in the document.
The document page may be a page in a text document, a page in a spreadsheet, or a slide page in a presentation document, which is only an example, and the document page is not limited in the present invention.
Step S103: and converting the document to be converted into a webpage file.
It should be noted that WEB languages, such as CSS or HTML5, may be used to convert the document to be converted into HTML or HTML format WEB page files. The format of the generated webpage file can be determined by the technical personnel in the field according to the actual situation, and the format of the webpage file converted from the document to be converted is not required to be limited by the invention.
Step S104: and storing the webpage file at a first position.
The "first location" mentioned here may be a certain preset storage location in the server, and may also be a certain preset storage location in other network nodes in the network. Of course, the storage location for storing the web page file is not required to be limited in the present invention, and those skilled in the art can perform appropriate setting according to actual needs.
Step S105: generating a web page link for accessing the web page file at the first location.
It should be noted that the web page link is related to the path of the first location where the web page file is stored, and also related to the file name of the web page file; the web page file stored in the first location can be easily accessed by opening the web page link using a browser.
By applying the embodiment of the invention, the document used for information sharing among users can be converted into the webpage file, the webpage link used for accessing the webpage file can be generated, and the user can conveniently share the information by sending the webpage link. In addition, the invention also solves the problem that the document with large data consumes time in the transmission process.
Fig. 2 is a schematic flowchart of another document conversion method provided in an embodiment of the present invention, which is applied to a server, where the server is in communication with a client device, and the method may include the following steps:
step S201: and receiving the document and the document conversion message sent by the client equipment.
Step S202: and determining the received document as a document to be converted according to the document conversion message.
It should be noted that steps S201 to S202 are similar to steps S101 to S102 in the method embodiment shown in fig. 1, and are not repeated herein.
Step S203: and obtaining the image of each document page in the document to be converted.
It should be noted that, the server or the client device processes the document to be converted to obtain information of the position, type, layout, etc. of the document elements in the document to be converted, and converts each document page in the document to be converted into a complete image corresponding to the document page.
The number of the generated images is consistent with the number of the pages of the document in the document to be converted.
Step S204: and generating a webpage file containing the image of each document page.
Note that, the web page file including the image of each document page is generated by using the images of the plurality of document pages obtained in step S203 as picture elements in the web page.
Step S205: and storing the webpage file at a first position.
Step S206: generating a web page link for accessing the web page file at the first location.
It should be noted that steps S205 to S206 are similar to steps S104 to S105 in the method embodiment shown in fig. 1, and are not repeated herein.
By applying the embodiment of the invention, the document used for information sharing among users can be converted into the webpage file, the webpage link used for accessing the webpage file can be generated, and the user can conveniently share the information by sending the webpage link. In addition, the invention also solves the problem that the document with large data consumes time in the transmission process.
Fig. 3 is a flowchart of another document conversion method provided in an embodiment of the present invention, which is applied to a server, where the server is in communication with a client device, and the method may include the following steps:
step S301: and receiving the document and the document conversion message sent by the client equipment.
Step S302: and determining the received document as a document to be converted according to the document conversion message.
It should be noted that steps S301 to S302 are similar to steps S101 to S102 in the method embodiment shown in fig. 1, and are not repeated herein.
Step S303: and analyzing the data of the document to be converted to obtain an analysis result.
Specifically, the obtained parsing result may include one or more of the following items:
(1) document elements in the document to be converted;
(2) the element types of the document elements in the document to be converted;
(3) coordinates of document elements in the document to be converted in the original document;
(4) the size of a document page where document elements in a document to be converted are located;
(5) animation effects of document elements in the document to be converted comprise animation effects during page switching of the slides;
(6) the method comprises the steps of converting a source file of audio and video in document elements in a document to be converted;
(7) and the link address of the hyperlink in the document element in the document to be converted.
For example, when the document elements in the document to be converted are words, the parsing result may include: the font, the font size, the color of the character, the boldness, the underline and the like used by the character content in the document to be converted; when the document element in the document to be converted is a picture, the parsing result may include: the size of the picture, the coordinates in the document to be converted, etc.; when the document element in the document to be converted is an icon, the parsing result may include: pictures used in the icon, addresses to which the icon is linked, and the like; when the document elements in the document to be converted are audio/video, the analysis result may include: the source file of the audio and video, the triggering type (playing after entering the page or clicking the triggering button for playing) of the audio and video in the document to be converted, the animation effect of the audio and video, and the like. It should be noted that the above cases are merely examples of analysis results, and the contents of the analysis results are not limited to the above-mentioned cases.
Step S304: and obtaining the element type of the document element in the document to be converted from the analysis result.
Step S305: and converting each document element in the document to be converted into the webpage element with the corresponding type according to the preset corresponding relation between the webpage element type and the document element type.
For convenience of description, step S304 and step S305 are explained in combination.
And obtaining element types of document elements in the document to be converted, such as characters, pictures, tables, audios and videos, hyperlinks and the like from the analysis result.
The preset corresponding relation between the webpage element type and the document element type specifically comprises the following steps:
converting the characters in the document into the characters in the webpage document with the same character attributes;
downloading and storing pictures in the document, determining the stored pictures as pictures in the webpage elements, and compressing the pictures according to the pictures with the picture compression requirement;
converting the table in the document into a table in a webpage document with the same table attribute;
downloading and storing pictures in icons in a document, determining the stored pictures as pictures in webpage elements, and determining link addresses of the icons in the document as addresses to which the icons in the webpage document are linked;
and downloading and storing the audio and video source file in the document, and determining the stored audio and video source file as the audio and video in the webpage element.
It should be noted that, the preset corresponding relationships mentioned herein are only examples, and those skilled in the art can set the preset corresponding relationships according to actual situations, and the present invention does not limit the preset corresponding relationships.
Step S306: and generating a webpage file containing each webpage element obtained by conversion.
Step S307: and storing the webpage file at a first position.
Step S308: generating a web page link for accessing the web page file at the first location.
It should be noted that steps S307 to S308 are similar to steps S104 to S105 in the method embodiment shown in fig. 1, and are not repeated herein.
By applying the embodiment of the invention, the document used for information sharing among users can be converted into the webpage file, the webpage link used for accessing the webpage file can be generated, and the user can conveniently share the information by sending the webpage link. In addition, the invention also solves the problem that the document with large data consumes time in the transmission process.
Fig. 4 is a flowchart of another document conversion method provided in an embodiment of the present invention, which is applied to a server, where the server is in communication with a client device, and the method may include the following steps:
step S401: and receiving the document and the document conversion message sent by the client equipment.
Step S402: and determining the received document as a document to be converted according to the document conversion message.
Step S403: and analyzing the data of the document to be converted to obtain an analysis result.
Step S404: and obtaining the element type of the document element in the document to be converted from the analysis result.
Step S405: and converting each document element in the document to be converted into the webpage element with the corresponding type according to the preset corresponding relation between the webpage element type and the document element type.
It should be noted that steps S401 to S405 are similar to steps S301 to S305 in the method embodiment shown in fig. 3, and are not repeated herein.
Step S406: and obtaining the coordinates of the document elements in the document to be converted from the analysis result.
Step S407: and determining the relative position of the document element in the document to be converted according to the obtained coordinate of the document element in the document to be converted.
Step S408: and each document element is processed as follows: and determining the relative position of the document element in the document to be converted as the relative position of the webpage element converted by the document element in the webpage.
Step S409: and generating a webpage file containing each webpage element obtained by conversion, wherein each webpage element and the webpage have the determined relative position relation corresponding to the webpage element.
Step S410: and storing the webpage file at a first position.
Step S411: generating a web page link for accessing the web page file at the first location.
It should be noted that steps S410 to S411 are similar to steps S307 to S308 in the method embodiment shown in fig. 3, and are not repeated herein.
By applying the embodiment of the invention, the document used for information sharing among users can be converted into the webpage file, the webpage link used for accessing the webpage file can be generated, and the user can conveniently share the information by sending the webpage link. In addition, the invention also solves the problem that the document with large data consumes time in the transmission process.
Fig. 5 is a flowchart of another document conversion method provided in an embodiment of the present invention, which is applied to a server, where the server is in communication with a client device, and the method may include the following steps:
step S501: and receiving the document and the document conversion message sent by the client equipment.
Step S502: and determining the received document as a document to be converted according to the document conversion message.
Step S503: and analyzing the data of the document to be converted to obtain an analysis result.
Step S504: and obtaining the element type of the document element in the document to be converted from the analysis result.
Step S505: and converting each document element in the document to be converted into the webpage element with the corresponding type according to the preset corresponding relation between the webpage element type and the document element type.
It should be noted that steps S501 to S505 are similar to steps S301 to S305 in the method embodiment shown in fig. 3, and are not repeated herein.
Step S506: and obtaining the animation effect corresponding to the document element in the document to be converted according to the analysis result.
Specifically, the animation effect of the document element in the document to be converted may include: the presentation mode of the document elements, for example: animation effects such as left-side fly-in, fade, ripple, and shutter, and of course, other animation effects for document elements in the document to be converted are not listed here.
Step S507: and determining the animation effect corresponding to the webpage element obtained by converting the document element according to the corresponding relation between the animation effect corresponding to the document element and the animation effect corresponding to the webpage element.
It should be noted that, because not every element in the document to be converted has an animation effect, the animation effect in the web page element determined according to the correspondence between the animation effect of the document element and the animation effect of the web page element cannot guarantee that all the web page elements have the animation effect.
Step S508: and generating a webpage file containing each webpage element obtained by conversion, wherein the animation effect of the webpage element in the webpage file is the determined corresponding animation effect.
Step S509: and storing the webpage file at a first position.
Step S510: generating a web page link for accessing the web page file at the first location.
It should be noted that steps S509 to S510 are similar to steps S307 to S308 in the method embodiment shown in fig. 3, and are not repeated herein.
By applying the embodiment of the invention, the document used for information sharing among users can be converted into the webpage file, the webpage link used for accessing the webpage file can be generated, and the user can conveniently share the information by sending the webpage link. In addition, the invention also solves the problem that the document with large data consumes time in the transmission process.
Fig. 6 is a flowchart of another document conversion method provided in an embodiment of the present invention, which is applied to a server, where the server is in communication with a client device, and the method may include the following steps:
step S601: and receiving the document and the document conversion message sent by the client equipment.
Step S602: and determining the received document as a document to be converted according to the document conversion message.
Step S603: and analyzing the data of the document to be converted to obtain an analysis result.
Step S604: and obtaining the element type of the document element in the document to be converted from the analysis result.
Step S605: and converting each document element in the document to be converted into the webpage element with the corresponding type according to the preset corresponding relation between the webpage element type and the document element type.
Step S606: and obtaining the animation effect of the document elements in the document to be converted according to the analysis result.
Step S607: determining the animation effect of the webpage element obtained by converting the document element according to the corresponding relation between the animation effect of the document element and the animation effect of the webpage element;
step S608: and generating a webpage file containing each webpage element obtained by conversion, wherein the animation effect of the webpage element in the webpage file is the determined corresponding animation effect.
Step S609: and storing the webpage file at a first position.
Step S610: generating a web page link for accessing the web page file at the first location.
It should be noted that steps S601 to S610 are similar to steps S501 to S510 in the method embodiment shown in fig. 5, and are not repeated herein.
Step S611: and sending the webpage link to the client device.
Step S612: and receiving an animation modification instruction fed back by the client device, wherein the animation modification instruction carries a first animation effect corresponding to a first webpage element in the webpage file.
It should be noted that, in the animation modification instruction fed back by the client device, an animation effect may be added to a webpage element converted from a document element without an animation effect in the document to be converted, and of course, the animation effect may also be changed for the webpage element converted from the document element with the animation effect. In practical application, a proper animation effect can be selected according to the actual needs of a user, and the invention does not limit the specific animation effect.
Step S613: and modifying the original animation effect of the first webpage element into the first animation effect according to the animation modification instruction.
By applying the embodiment of the invention, the document used for information sharing among users can be converted into the webpage file, the webpage link used for accessing the webpage file can be generated, and the user can conveniently share the information by sending the webpage link. In addition, the invention also solves the problem that the document with large data consumes time in the transmission process.
Fig. 7 is a schematic structural diagram of a document conversion apparatus according to an embodiment of the present invention, applied to a server, where the document conversion apparatus may include: the system comprises a document receiving module 701, a to-be-converted document determining module 702, a to-be-converted document converting module 703, a webpage file storing module 704 and a webpage link generating module 705; wherein,
a document receiving module 701, configured to receive a document and a document conversion message sent by a client device;
a to-be-converted document determining module 702, configured to determine, according to the document conversion message, the received document as a to-be-converted document;
a to-be-converted document conversion module 703, configured to convert a to-be-converted document into a web page file;
a web page file storage module 704, configured to store the web page file in a first location;
the web page link generating module 705 is configured to generate a web page link for accessing a web page file at a first location.
In an embodiment of the present invention, the to-be-converted document conversion module 703 may include: the document page image acquisition sub-module and the first webpage file generation sub-module; wherein,
the document page image obtaining submodule is used for obtaining images of all document pages in the document to be converted;
and the first webpage file generating submodule is used for generating a webpage file containing the image of each document page.
In another embodiment of the present invention, the to-be-converted document conversion module 703 may include: the data analysis submodule, the document element type acquisition submodule, the webpage element conversion submodule and the second webpage file generation submodule are connected; wherein,
the data analysis submodule is used for carrying out data analysis on the document to be converted to obtain an analysis result;
the document element type obtaining submodule is used for obtaining the element type of the document element in the document to be converted from the analysis result;
the webpage element conversion submodule is used for converting each document element in the document to be converted into a webpage element with a corresponding type according to the preset corresponding relation between the webpage element type and the document element type;
and the second webpage file generating submodule is used for generating the webpage file containing each webpage element obtained by conversion.
Specifically, the to-be-converted document conversion module 703 may include: a document element coordinate obtaining submodule and a relative position determining submodule; wherein,
the document element coordinate obtaining submodule is used for carrying out data analysis on the document to be converted in the data analysis submodule and obtaining the coordinate of the document element in the document to be converted from the analysis result after the analysis result is obtained;
the relative position determining submodule is used for determining the relative position of the document element in the document to be converted according to the obtained coordinate of the document element in the document to be converted;
the second webpage file generating submodule comprises: the system comprises a webpage element position determining unit and a first webpage file generating unit; wherein,
a web page element position determining unit, configured to perform the following processing on each document element: determining the relative position of the document element in the document to be converted as the relative position of the webpage element converted by the document element in the webpage;
and the first webpage file generating unit is used for generating a webpage file containing each webpage element obtained by conversion, and each webpage element and the webpage have the determined relative position relation corresponding to the webpage element.
Specifically, the to-be-converted document conversion module 703 may include: a document animation effect obtaining submodule and a webpage element animation effect determining submodule; wherein,
the document animation effect obtaining submodule is used for obtaining the animation effect corresponding to the document element in the document to be converted according to the analysis result;
the webpage element animation effect determining submodule is used for determining the animation effect corresponding to the webpage element obtained by converting the document element according to the corresponding relation between the animation effect corresponding to the document element and the animation effect corresponding to the webpage element;
and the second webpage file generating submodule is specifically used for generating a webpage file containing each webpage element obtained through conversion, wherein the animation effect of the webpage element in the webpage file is the determined corresponding animation effect.
Further, the document conversion apparatus may further include: the system comprises a webpage link sending module, an animation instruction receiving module and an animation modification module; wherein,
the webpage link sending module is used for sending the webpage link to the client equipment;
the animation instruction receiving module is used for receiving an animation modification instruction fed back by the client device, and the animation modification instruction carries a first animation effect corresponding to a first webpage element in the webpage file;
and the animation modification module is used for modifying the original animation effect of the first webpage element into the first animation effect according to the animation modification instruction.
By applying the embodiment of the invention, the document used for information sharing among users can be converted into the webpage file, the webpage link used for accessing the webpage file can be generated, and the user can conveniently share the information by sending the webpage link. In addition, the invention also solves the problem that the document with large data consumes time in the transmission process.
For system or apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, which is referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A document conversion method applied to a server, wherein the server is in communication connection with a client device, the method comprising:
receiving a document and a document conversion message sent by the client equipment;
determining the received document as a document to be converted according to the document conversion message;
converting the document to be converted into a webpage file;
storing the web page file at a first location;
generating a web page link for accessing the web page file at the first location.
2. The method according to claim 1, wherein the converting the document to be converted into a web page file comprises:
obtaining images of all document pages in the document to be converted;
and generating a webpage file containing the image of each document page.
3. The method according to claim 1, wherein the converting the document to be converted into a web page file comprises:
analyzing the data of the document to be converted to obtain an analysis result;
obtaining the element type of the document element in the document to be converted from the analysis result;
converting each document element in the document to be converted into a webpage element with a corresponding type according to a preset corresponding relation between the webpage element type and the document element type;
and generating a webpage file containing each webpage element obtained by conversion.
4. The method according to claim 3, wherein after performing data parsing on the document to be converted and obtaining a parsing result, the converting the document to be converted into a web page file further comprises:
obtaining the coordinates of the document elements in the document to be converted from the analysis result;
determining the relative position of the document element in the document to be converted according to the obtained coordinate of the document element in the document to be converted;
the generating of the web page file containing the converted web page elements includes:
and each document element is processed as follows: determining the relative position of the document element in the document to be converted as the relative position of the webpage element converted by the document element in the webpage;
and generating a webpage file containing each webpage element obtained by conversion, wherein each webpage element and the webpage have the determined relative position relation corresponding to the webpage element.
5. The method according to claim 3, wherein the converting the document to be converted into the web page file after performing data parsing on the document to be converted and obtaining a parsing result, further comprises:
obtaining the animation effect corresponding to the document element in the document to be converted according to the analysis result;
determining the animation effect corresponding to the webpage element obtained by converting the document element according to the corresponding relation between the animation effect corresponding to the document element and the animation effect corresponding to the webpage element;
the generating of the web page file containing the converted web page elements includes:
and generating a webpage file containing each webpage element obtained by conversion, wherein the animation effect of the webpage element in the webpage file is the determined corresponding animation effect.
6. The method of claim 5, wherein after generating the web page link for accessing the web page file, further comprising:
sending the web page link to the client device;
receiving an animation modification instruction fed back by the client device, wherein the animation modification instruction carries a first animation effect corresponding to a first webpage element in the webpage file;
and modifying the original animation effect of the first webpage element into the first animation effect according to the animation modification instruction.
7. A document conversion apparatus, applied to a server, the server being in communication connection with a client device, the document conversion apparatus comprising:
the document receiving module is used for receiving the document and the document conversion message sent by the client equipment;
the document to be converted determining module is used for determining the received document as the document to be converted according to the document conversion message;
the conversion module of the document to be converted is used for converting the document to be converted into a webpage file;
the webpage file storage module is used for storing the webpage file at a first position;
and the webpage link generating module is used for generating a webpage link for accessing the webpage file at the first position.
8. The document conversion apparatus according to claim 7, wherein the to-be-converted document conversion module includes: the document page image acquisition sub-module and the first webpage file generation sub-module; wherein,
the document page image obtaining submodule is used for obtaining images of all document pages in the document to be converted;
and the first webpage file generating submodule is used for generating a webpage file containing the image of each document page.
9. The document conversion apparatus according to claim 7, wherein the to-be-converted document conversion module includes: the data analysis submodule, the document element type acquisition submodule, the webpage element conversion submodule and the second webpage file generation submodule are connected; wherein,
the data analysis submodule is used for carrying out data analysis on the document to be converted to obtain an analysis result;
the document element type obtaining submodule is used for obtaining the element type of the document element in the document to be converted from the analysis result;
the webpage element conversion submodule is used for converting each document element in the document to be converted into a webpage element with a corresponding type according to a preset corresponding relation between the webpage element type and the document element type;
and the second webpage file generating submodule is used for generating a webpage file containing each webpage element obtained through conversion.
10. The document conversion apparatus according to claim 9, wherein the to-be-converted document conversion module includes: a document element coordinate obtaining submodule and a relative position determining submodule; wherein,
the document element coordinate obtaining submodule is used for carrying out data analysis on the document to be converted in the data analysis submodule, and obtaining the coordinate of the document element in the document to be converted from the analysis result after the analysis result is obtained;
the relative position determining submodule is used for determining the relative position of the document element in the document to be converted according to the obtained coordinate of the document element in the document to be converted;
the second webpage file generating submodule comprises: the system comprises a webpage element position determining unit and a first webpage file generating unit; wherein,
the webpage element position determining unit is used for processing each document element as follows: determining the relative position of the document element in the document to be converted as the relative position of the webpage element converted by the document element in the webpage;
the first webpage file generating unit is used for generating a webpage file containing each webpage element obtained through conversion, and each webpage element and the webpage page have the determined relative position relation corresponding to the webpage element.
11. The document conversion apparatus according to claim 9, wherein the to-be-converted document conversion module includes: a document animation effect obtaining submodule, a webpage element animation effect determining submodule and a second webpage file generating submodule; wherein,
the document animation effect obtaining submodule is used for obtaining the animation effect corresponding to the document element in the document to be converted according to the analysis result;
the webpage element animation effect determining submodule is used for determining the animation effect corresponding to the webpage element obtained by converting the document element according to the corresponding relation between the animation effect corresponding to the document element and the animation effect corresponding to the webpage element;
and the second webpage file generating submodule is specifically used for generating a webpage file containing each webpage element obtained through conversion, wherein the animation effect of the webpage element in the webpage file is the determined corresponding animation effect.
12. The document conversion apparatus according to claim 11, wherein the apparatus further comprises: the system comprises a webpage link sending module, an animation instruction receiving module and an animation modification module; wherein,
the webpage link sending module is used for sending the webpage link to the client device;
the animation instruction receiving module is used for receiving an animation modification instruction fed back by the client device, wherein the animation modification instruction carries a first animation effect corresponding to a first webpage element in the webpage file;
and the animation modification module is used for modifying the original animation effect of the first webpage element into the first animation effect according to the animation modification instruction.
CN201510279194.8A 2015-05-27 2015-05-27 A kind of document conversion method and device Pending CN106294441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510279194.8A CN106294441A (en) 2015-05-27 2015-05-27 A kind of document conversion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510279194.8A CN106294441A (en) 2015-05-27 2015-05-27 A kind of document conversion method and device

Publications (1)

Publication Number Publication Date
CN106294441A true CN106294441A (en) 2017-01-04

Family

ID=57634259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510279194.8A Pending CN106294441A (en) 2015-05-27 2015-05-27 A kind of document conversion method and device

Country Status (1)

Country Link
CN (1) CN106294441A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180099A (en) * 2017-05-17 2017-09-19 上海爱优威软件开发有限公司 A kind of information processing method
CN110020261A (en) * 2018-02-06 2019-07-16 中国平安人寿保险股份有限公司 Document converts sharing method, device, equipment and readable storage medium storing program for executing
CN110837569A (en) * 2019-11-04 2020-02-25 同辉佳视(北京)信息技术股份有限公司 Information processing method and device, storage medium and electronic equipment
CN110879937A (en) * 2019-10-12 2020-03-13 平安国际智慧城市科技股份有限公司 Method and device for generating webpage from document, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1638020A2 (en) * 2000-12-22 2006-03-22 Research In Motion Limited Information browser system and method for a wireless communication device
CN1801149A (en) * 2004-12-16 2006-07-12 微软公司 Systems and methods for converting a formatted document to a web page
CN103353878A (en) * 2013-06-14 2013-10-16 陆昀 Method for displaying files of different file formats in webpage
CN104461486A (en) * 2013-09-17 2015-03-25 腾讯科技(深圳)有限公司 Method, device and system for achieving animation effects in webpages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1638020A2 (en) * 2000-12-22 2006-03-22 Research In Motion Limited Information browser system and method for a wireless communication device
CN1801149A (en) * 2004-12-16 2006-07-12 微软公司 Systems and methods for converting a formatted document to a web page
CN103353878A (en) * 2013-06-14 2013-10-16 陆昀 Method for displaying files of different file formats in webpage
CN104461486A (en) * 2013-09-17 2015-03-25 腾讯科技(深圳)有限公司 Method, device and system for achieving animation effects in webpages

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180099A (en) * 2017-05-17 2017-09-19 上海爱优威软件开发有限公司 A kind of information processing method
CN110020261A (en) * 2018-02-06 2019-07-16 中国平安人寿保险股份有限公司 Document converts sharing method, device, equipment and readable storage medium storing program for executing
CN110879937A (en) * 2019-10-12 2020-03-13 平安国际智慧城市科技股份有限公司 Method and device for generating webpage from document, computer equipment and storage medium
CN110837569A (en) * 2019-11-04 2020-02-25 同辉佳视(北京)信息技术股份有限公司 Information processing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
EP4130963A1 (en) Object dragging method and device
CN102819560B (en) The display methods and device of picture in a kind of webpage
CN102067125B (en) For the method and apparatus of the information of searching for
WO2016202236A1 (en) File sharing method and system
KR101985558B1 (en) Techniques for dynamic layout of presentation tiles on a grid
JP2022002107A (en) Business negotiation support device, method and computer program
US10452747B2 (en) Dynamically formatting scalable vector graphics
JP2015210569A (en) Image processing apparatus, information sharing apparatus, image processing method, and program
US20150149586A1 (en) Information processing apparatus, information processing method, and information processing system
JP2014524623A (en) Template file processing method and apparatus
JP2003271507A (en) System for describing markup language for mobile, information processing apparatus for creating display content, and program
TW201423554A (en) Conversion of non-book documents for consistency in e-reader experience
CN103841460A (en) Image data transmission method and electronic devices
CN106294441A (en) A kind of document conversion method and device
CN105786207A (en) Information input method and device
WO2024179308A1 (en) Information processing method and apparatus, electronic device, and computer-readable medium
CN103873490B (en) The control method for playing back and client of a kind of lantern slide
US20160232151A1 (en) Responsive course design system and method
CN112417832B (en) Method and device for converting format of electronic form document and electronic equipment
CN105577518A (en) Method and electronic device for displaying website corresponding information in instant messaging
CN104572816A (en) Information processing method and electronic equipment
US20240220086A1 (en) Information interaction method and apparatus, and electronic device
US8346786B2 (en) Information processing system, information processing apparatus, information processing method and computer readable medium
US20110283180A1 (en) Communication method, information terminal apparatus, display apparatus, and communication system comprising these
CN112199090B (en) Information stream processing method, device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant after: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant after: Beijing Kingsoft office software Limited by Share Ltd

Applicant after: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

Address before: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant before: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant before: Beijing Kingsoft WPS Office Co., Ltd.

Applicant before: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104