CN104391827A - Method and device for browsing documents by web pages - Google Patents
Method and device for browsing documents by web pages Download PDFInfo
- Publication number
- CN104391827A CN104391827A CN201410757881.1A CN201410757881A CN104391827A CN 104391827 A CN104391827 A CN 104391827A CN 201410757881 A CN201410757881 A CN 201410757881A CN 104391827 A CN104391827 A CN 104391827A
- Authority
- CN
- China
- Prior art keywords
- document
- preview
- intermediate form
- converted
- web page
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method and a device for browsing documents by web pages. The method comprises the following steps: converting documents to be previewed into documents in intermediate formats; converting the documents in the intermediate formats into documents in swf formats; playing the documents in the swf formats through the web pages. Through the technical scheme of the invention, the trouble of installation of client ends to all terminals due to adoption of an SVN (switching virtual networking) mode can be avoided, the learning cost is lowered, and the situations of reduced resource efficiency of an email server and limitation of document size due to the adoption of an email forwarding mode are avoided; in addition, the documents can be subjected to unified management, the leakage of the documents in a company is avoided, and the confidentiality of the documents in the company is improved.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of method by web page browsing document and a kind of device by web page browsing document.
Background technology
At present, sharing of intra-company's document is generally that (SVN is the abbreviation of Subversion by SVN, the version control system of an open source code) or the mode of email relaying realize, and there is following problem by the mode of SVN and email relaying:
1), when being realized by the mode of SVN, need each terminal to install corresponding client, and can increase learning cost, and can cause the diffusion of intra-company's document, confidentiality is restricted;
2) when being realized by the mode of email relaying, not only easily reduce the resource efficiency of mail server, and the document size shared also can be restricted, also there will be the problem of intra-company's document diffusion simultaneously.
Summary of the invention
The present invention just based on above-mentioned technical matters one of at least, propose a kind of scheme by web page browsing document newly, can avoid adopting the mode of SVN to cause each terminal to need to install the trouble of client, save learning cost, it also avoid simultaneously and adopt the mode of email relaying and reduce the resource efficiency of mail server and be subject to the restriction of document size.In addition, also can carry out unified management to document, avoid the leakage of intra-company's document, improve the confidentiality of intra-company's document.
In view of this, the present invention proposes a kind of method by web page browsing document, comprising: will treat that preview document is converted to the document of intermediate form; By the document that the document subject feature vector of described intermediate form is swf form; The document of described swf form is play by webpage.
In this technical scheme, by treating that preview document is converted to the document of intermediate form, and be the document of swf (i.e. shock wave flash) form by the document subject feature vector of intermediate form, to be play by the document of webpage to swf form, make intra-company when shared document, can be realized by the mode of web page browsing, and then can avoid adopting the mode of SVN to cause each terminal to need to install the trouble of client, save learning cost, it also avoid simultaneously and adopt the mode of email relaying and reduce the resource efficiency of mail server and be subject to the restriction of document size.In addition, by the mode of webpage, document is shared, also make it possible to carry out unified management to document, avoid the leakage of intra-company's document, improve the confidentiality of intra-company's document.
In technique scheme, preferably, treating that preview document also comprises before being converted to the step of the document of described intermediate form by described: receive the document that other equipment are uploaded; Judge whether the type of described document belongs to the Doctype that can be carried out preview by webpage; Judge the type of described document belong to can carry out the Doctype of preview by webpage time, described document is treated preview document as described.
In this technical scheme, whether belong to the Doctype that can carry out preview by webpage by the document uploaded other equipment and judge, make it possible to avoid the document to preview can not be carried out by webpage change blindly and damage document.
In technique scheme, preferably, treating that preview document also comprises before being converted to the step of the document of described intermediate form by described: whether the form treating preview document described in judgement is described intermediate form; Described in judgement when the form of preview document is described intermediate form, treat described the document that preview document is converted to described swf form; And described in judgement when the form of preview document is not described intermediate form, perform and treat described the step that preview document is converted to the document of described intermediate form.
In this technical scheme, treat that the form of preview document is above-mentioned intermediate form if judge, then directly can be converted to the document of swf form, without the need to repeating format conversion again, shortening and uploading document to the time experienced at webpage broadcasting document from terminal.
In technique scheme, preferably, the described step treating that preview document is converted to the document of described intermediate form is specially: described in extraction, treat the content in preview document; According to extracting, treat that the content in preview document generates the document of described intermediate form.
In technique scheme, preferably, described intermediate form comprises PDF.
According to a second aspect of the invention, also proposed a kind of device by web page browsing document, comprising: the first format conversion unit, for treating that preview document is converted to the document of intermediate form; Second format conversion unit, for by the document subject feature vector of described intermediate form being the document of swf form; Broadcast unit, for playing the document of described swf form by webpage.
In this technical scheme, by treating that preview document is converted to the document of intermediate form, and be the document of swf form by the document subject feature vector of intermediate form, to be play by the document of webpage to swf form, make intra-company when shared document, can be realized by the mode of web page browsing, and then can avoid adopting the mode of SVN to cause each terminal to need to install the trouble of client, save learning cost, it also avoid simultaneously and adopt the mode of email relaying and reduce the resource efficiency of mail server and be subject to the restriction of document size.In addition, by the mode of webpage, document is shared, also make it possible to carry out unified management to document, avoid the leakage of intra-company's document, improve the confidentiality of intra-company's document.
In technique scheme, preferably, also comprise: receiving element, for receiving the document that other equipment are uploaded; First judging unit, for judging whether the type of the described document that described receiving element receives belongs to the Doctype that can be carried out preview by webpage; Described first format conversion unit also for, described first judging unit judge the type of described document belong to can carry out the Doctype of preview by webpage time, described document is treated preview document as described.
In this technical scheme, whether belong to the Doctype that can carry out preview by webpage by the document uploaded other equipment and judge, make it possible to avoid the document to preview can not be carried out by webpage change blindly and damage document.
In technique scheme, preferably, also comprise: the second judging unit, for treating whether the form of preview document is described intermediate form described in judging; Described second format conversion unit also for, described second judging unit judge described in when the form of preview document is described intermediate form, treat described the document that preview document is converted to described swf form; Described first format conversion unit specifically for, described second judging unit judge described in when the form of preview document is not described intermediate form, perform and treat described the operation that preview document is converted to the document of described intermediate form.
In this technical scheme, treat that the form of preview document is above-mentioned intermediate form if judge, then directly can be converted to the document of swf form, without the need to repeating format conversion again, shortening and uploading document to the time experienced at webpage broadcasting document from terminal.
In technique scheme, preferably, described first format conversion unit comprises: extraction unit, for treating the content in preview document described in extracting; Generation unit, treats that the content in preview document generates the document of described intermediate form described in extracting according to described extraction unit.
In technique scheme, preferably, described intermediate form comprises PDF.
By above technical scheme, can avoid adopting the mode of SVN to cause each terminal to need to install the trouble of client, save learning cost, it also avoid simultaneously and adopt the mode of email relaying and reduce the resource efficiency of mail server and be subject to the restriction of document size.In addition, also can carry out unified management to document, avoid the leakage of intra-company's document, improve the confidentiality of intra-company's document.
Accompanying drawing explanation
Fig. 1 shows according to an embodiment of the invention by the schematic flow diagram of the method for web page browsing document;
Fig. 2 shows the schematic block diagram of the device by web page browsing document according to an embodiment of the invention;
Fig. 3 shows the schematic block diagram of the device by web page browsing document according to another embodiment of the invention;
Fig. 4 shows the schematic flow diagram that document subject feature vector terminal uploaded according to an embodiment of the invention is the method for PDF document;
Fig. 5 shows the schematic flow diagram of the method according to an embodiment of the invention PDF document being converted to swf formatted file.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not by the restriction of following public specific embodiment.
Fig. 1 shows according to an embodiment of the invention by the schematic flow diagram of the method for web page browsing document.
As shown in Figure 1, according to an embodiment of the invention by the method for web page browsing document, comprising: step 102, will treat that preview document is converted to the document of intermediate form; The document subject feature vector of described intermediate form is the document of swf form by step 104; Step 106, plays the document of described swf form by webpage.
In this technical scheme, by treating that preview document is converted to the document of intermediate form, and be the document of swf form by the document subject feature vector of intermediate form, to be play by the document of webpage to swf form, make intra-company when shared document, can be realized by the mode of web page browsing, and then can avoid adopting the mode of SVN to cause each terminal to need to install the trouble of client, save learning cost, it also avoid simultaneously and adopt the mode of email relaying and reduce the resource efficiency of mail server and be subject to the restriction of document size.In addition, by the mode of webpage, document is shared, also make it possible to carry out unified management to document, avoid the leakage of intra-company's document, improve the confidentiality of intra-company's document.
In technique scheme, preferably, treating that preview document also comprises before being converted to the step of the document of described intermediate form by described: receive the document that other equipment are uploaded; Judge whether the type of described document belongs to the Doctype that can be carried out preview by webpage; Judge the type of described document belong to can carry out the Doctype of preview by webpage time, described document is treated preview document as described.
In this technical scheme, whether belong to the Doctype that can carry out preview by webpage by the document uploaded other equipment and judge, make it possible to avoid the document to preview can not be carried out by webpage change blindly and damage document.
In technique scheme, preferably, treating that preview document also comprises before being converted to the step of the document of described intermediate form by described: whether the form treating preview document described in judgement is described intermediate form; Described in judgement when the form of preview document is described intermediate form, treat described the document that preview document is converted to described swf form; And described in judgement when the form of preview document is not described intermediate form, perform and treat described the step that preview document is converted to the document of described intermediate form.
In this technical scheme, treat that the form of preview document is above-mentioned intermediate form if judge, then directly can be converted to the document of swf form, without the need to repeating format conversion again, shortening and uploading document to the time experienced at webpage broadcasting document from terminal.
In technique scheme, preferably, the described step treating that preview document is converted to the document of described intermediate form is specially: described in extraction, treat the content in preview document; According to extracting, treat that the content in preview document generates the document of described intermediate form.
In technique scheme, preferably, described intermediate form comprises PDF.
Fig. 2 shows the schematic block diagram of the device by web page browsing document according to an embodiment of the invention.
As shown in Figure 2, the device 200 by web page browsing document according to an embodiment of the invention, comprising: the first format conversion unit 202, for treating that preview document is converted to the document of intermediate form; Second format conversion unit 204, for by the document subject feature vector of described intermediate form being the document of swf form; Broadcast unit 206, for playing the document of described swf form by webpage.
In this technical scheme, by treating that preview document is converted to the document of intermediate form, and be the document of swf form by the document subject feature vector of intermediate form, to be play by the document of webpage to swf form, make intra-company when shared document, can be realized by the mode of web page browsing, and then can avoid adopting the mode of SVN to cause each terminal to need to install the trouble of client, save learning cost, it also avoid simultaneously and adopt the mode of email relaying and reduce the resource efficiency of mail server and be subject to the restriction of document size.In addition, by the mode of webpage, document is shared, also make it possible to carry out unified management to document, avoid the leakage of intra-company's document, improve the confidentiality of intra-company's document.
In technique scheme, preferably, also comprise: receiving element 208, for receiving the document that other equipment are uploaded; First judging unit 210, for judging whether the type of the described document that described receiving element 208 receives belongs to the Doctype that can be carried out preview by webpage; Described first format conversion unit 202 also for, described first judging unit 210 judge the type of described document belong to can carry out the Doctype of preview by webpage time, described document is treated preview document as described.
In this technical scheme, whether belong to the Doctype that can carry out preview by webpage by the document uploaded other equipment and judge, make it possible to avoid the document to preview can not be carried out by webpage change blindly and damage document.
In technique scheme, preferably, also comprise: the second judging unit 212, for treating whether the form of preview document is described intermediate form described in judging; Described second format conversion unit 204 also for, described in judging at described second judging unit 212 when the form of preview document is described intermediate form, treat described the document that preview document is converted to described swf form; Described first format conversion unit 202 specifically for, described in judging at described second judging unit 212 when the form of preview document is not described intermediate form, perform and treat described the operation that preview document is converted to the document of described intermediate form.
In this technical scheme, treat that the form of preview document is above-mentioned intermediate form if judge, then directly can be converted to the document of swf form, without the need to repeating format conversion again, shortening and uploading document to the time experienced at webpage broadcasting document from terminal.
In technique scheme, preferably, described first format conversion unit 202 comprises: extraction unit 2022, for treating the content in preview document described in extracting; Generation unit 2024, treats that the content in preview document generates the document of described intermediate form described in extracting according to described extraction unit.
In technique scheme, preferably, described intermediate form comprises PDF.
Particularly, the present invention is mainly for the shortcoming existing for the scheme being realized document sharing in prior art by SVN and email relaying, propose the scheme becoming swf to play in webpage document subject feature vector, avoid and SVN client and the learning cost that brings are installed, avoid the restriction of mode to document size of email relaying simultaneously, achieve the same management to document, avoid the diffusion of document.
As shown in Figure 3, the device 300 by web page browsing document according to another embodiment of the invention, comprising: information extraction modules 302, info conversion module 304, format converting module 306 and online playing module 308.
The scheme by webpage online browse document of the present invention is described in detail below in conjunction with Fig. 3:
1) document content is extracted by information extraction modules 302, (OpenOffice is a set of cross-platform office's software suite such as to use OpenOffice, can run in the operating systems such as Windows, Linux, Mac OS X and Solaris, and office's software suite that can be main with each is compatible), then the content of extraction is generated pdf document by info conversion module 304, such as, use JODConverter (the main function of JODConverter is used to do the conversion of various archives) Software Create PDF document.
Particularly, as shown in Figure 4, document subject feature vector terminal uploaded according to an embodiment of the invention is the method for PDF document, comprising:
Step 402, judges whether the Doctype that terminal is uploaded supports online preview, if so, then performs step 404; Otherwise, perform step 412.
Step 404, when the online preview of the Doctype support that judgement terminal is uploaded, judges whether the document that terminal is uploaded is PDF document, if so, then performs step 410; Otherwise, perform step 406.
Step 406, when the document judging that terminal is uploaded is not PDF document, information extraction modules extracts document information.
Step 408, info conversion module converts the information that information extraction modules is extracted to PDF document.
Step 410, preserves PDF document path.
Step 412, when the Doctype that judgement terminal is uploaded does not support online preview, returns error message.
2) convert pdf document to swf file by format converting module 306, such as, use SWFTools (SWFTools is the set that a kind of utility and Adobe Flash file (SWF file) work) to realize the conversion of file layout.
Particularly, as shown in Figure 5, according to an embodiment of the invention PDF document is converted to the method for swf formatted file, comprises:
Step 502, reads pdf document.
Step 504, format converting module converts swf formatted file to.
Step 506, preserves swf formatted file.
3) playing the swf file after conversion by online playing module 308, playing swf file on a web browser as used FlexPaper (FlexPaper is the assembly showing various document on a web browser of a lightweight of increasing income) assembly.
More than be described with reference to the accompanying drawings technical scheme of the present invention, the present invention proposes a kind of scheme by web page browsing document newly, can avoid adopting the mode of SVN to cause each terminal to need to install the trouble of client, save learning cost, it also avoid simultaneously and adopt the mode of email relaying and reduce the resource efficiency of mail server and be subject to the restriction of document size.In addition, also can carry out unified management to document, avoid the leakage of intra-company's document, improve the confidentiality of intra-company's document.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1., by a method for web page browsing document, it is characterized in that, comprising:
To treat that preview document is converted to the document of intermediate form;
By the document that the document subject feature vector of described intermediate form is swf form;
The document of described swf form is play by webpage.
2. the method by web page browsing document according to claim 1, is characterized in that, treating that preview document also comprises before being converted to the step of the document of described intermediate form by described:
Receive the document that other equipment are uploaded;
Judge whether the type of described document belongs to the Doctype that can be carried out preview by webpage;
Judge the type of described document belong to can carry out the Doctype of preview by webpage time, described document is treated preview document as described.
3. the method by web page browsing document according to claim 1, is characterized in that, treating that preview document also comprises before being converted to the step of the document of described intermediate form by described:
Whether the form treating preview document described in judgement is described intermediate form;
Described in judgement when the form of preview document is described intermediate form, treat described the document that preview document is converted to described swf form; And
Described in judgement when the form of preview document is not described intermediate form, perform and treat described the step that preview document is converted to the document of described intermediate form.
4. the method by web page browsing document according to claim 1, is characterized in that, the described step treating that preview document is converted to the document of described intermediate form is specially:
The content in preview document is treated described in extraction;
According to extracting, treat that the content in preview document generates the document of described intermediate form.
5. the method by web page browsing document according to any one of claim 1 to 4, it is characterized in that, described intermediate form comprises PDF.
6., by a device for web page browsing document, it is characterized in that, comprising:
First format conversion unit, for treating that preview document is converted to the document of intermediate form;
Second format conversion unit, for by the document subject feature vector of described intermediate form being the document of swf form;
Broadcast unit, for playing the document of described swf form by webpage.
7. the device by web page browsing document according to claim 6, is characterized in that, also comprise:
Receiving element, for receiving the document that other equipment are uploaded;
First judging unit, for judging whether the type of the described document that described receiving element receives belongs to the Doctype that can be carried out preview by webpage;
Described first format conversion unit also for, described first judging unit judge the type of described document belong to can carry out the Doctype of preview by webpage time, described document is treated preview document as described.
8. the device by web page browsing document according to claim 6, is characterized in that, also comprise:
Second judging unit, for treating whether the form of preview document is described intermediate form described in judging;
Described second format conversion unit also for, described second judging unit judge described in when the form of preview document is described intermediate form, treat described the document that preview document is converted to described swf form;
Described first format conversion unit specifically for, described second judging unit judge described in when the form of preview document is not described intermediate form, perform and treat described the operation that preview document is converted to the document of described intermediate form.
9. the device by web page browsing document according to claim 6, it is characterized in that, described first format conversion unit comprises:
Extraction unit, for treating the content in preview document described in extracting;
Generation unit, treats that the content in preview document generates the document of described intermediate form described in extracting according to described extraction unit.
10. the device by web page browsing document according to any one of claim 6 to 9, it is characterized in that, described intermediate form comprises PDF.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410757881.1A CN104391827A (en) | 2014-12-10 | 2014-12-10 | Method and device for browsing documents by web pages |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410757881.1A CN104391827A (en) | 2014-12-10 | 2014-12-10 | Method and device for browsing documents by web pages |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104391827A true CN104391827A (en) | 2015-03-04 |
Family
ID=52609733
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410757881.1A Pending CN104391827A (en) | 2014-12-10 | 2014-12-10 | Method and device for browsing documents by web pages |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104391827A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105320760A (en) * | 2015-10-20 | 2016-02-10 | 金蝶软件(中国)有限公司 | Document processing method and server |
CN105550339A (en) * | 2015-12-23 | 2016-05-04 | 智慧方舟科技有限公司 | Document online previewing method, apparatus and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645070A (en) * | 2008-08-06 | 2010-02-10 | 深圳市蜂巢资讯传播有限公司 | System and method for issuing electronic version of presswork on Internet |
CN102243665A (en) * | 2011-08-22 | 2011-11-16 | 上海梅花信息有限公司 | Document online playing system and method thereof |
US8762856B2 (en) * | 2006-01-13 | 2014-06-24 | Reliable Tack Acquisitions Llc | System and method for collaborative information display and markup |
CN104035937A (en) * | 2013-03-07 | 2014-09-10 | 方正国际软件(北京)有限公司 | Extensible system and method for electronic document online browsing |
CN104156341A (en) * | 2014-07-31 | 2014-11-19 | 武钢集团昆明钢铁股份有限公司 | Online reading system and method |
-
2014
- 2014-12-10 CN CN201410757881.1A patent/CN104391827A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8762856B2 (en) * | 2006-01-13 | 2014-06-24 | Reliable Tack Acquisitions Llc | System and method for collaborative information display and markup |
CN101645070A (en) * | 2008-08-06 | 2010-02-10 | 深圳市蜂巢资讯传播有限公司 | System and method for issuing electronic version of presswork on Internet |
CN102243665A (en) * | 2011-08-22 | 2011-11-16 | 上海梅花信息有限公司 | Document online playing system and method thereof |
CN104035937A (en) * | 2013-03-07 | 2014-09-10 | 方正国际软件(北京)有限公司 | Extensible system and method for electronic document online browsing |
CN104156341A (en) * | 2014-07-31 | 2014-11-19 | 武钢集团昆明钢铁股份有限公司 | Online reading system and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105320760A (en) * | 2015-10-20 | 2016-02-10 | 金蝶软件(中国)有限公司 | Document processing method and server |
CN105550339A (en) * | 2015-12-23 | 2016-05-04 | 智慧方舟科技有限公司 | Document online previewing method, apparatus and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103389969B (en) | A kind of methods, devices and systems for mobile terminal preview pdf document | |
CN110704518B (en) | Business data processing method and device based on Flink engine | |
CN103347091A (en) | Method for sharing document annotations and cloud server | |
US10534425B2 (en) | Processing method and device for saving power, mobile terminal and cloud server | |
TW201923566A (en) | Systems and methods for updating vehicle electronic equipment | |
CN108255914B (en) | Webpage generation method and application server | |
CN112650529B (en) | System and method for configurable generation of mobile terminal APP codes | |
CN113535432B (en) | Data distribution method and device, electronic equipment and storage medium | |
CN104391827A (en) | Method and device for browsing documents by web pages | |
US20150079968A1 (en) | Information processing method and electronic device | |
CN102148839B (en) | Method, device and system for managing FTP (file transfer protocol) server | |
CN104504342A (en) | Method for hiding information by using invisible characters based on Unicode codes | |
CN102663324A (en) | Method and device for electronic document anti-counterfeit | |
CN104268211A (en) | Online engineering document to PDF document conversion method | |
CN103135991B (en) | The customization implementation method of embedded device web interface | |
CN102592073A (en) | Anti-malware scanning system and method thereof | |
CN102880508A (en) | Method and system for realizing PC (Personal Computer)-controlled Android terminal | |
CN105309003A (en) | Method for managing base station and base station | |
CN104396208B (en) | For prefetching the method and system of data | |
CN106886556A (en) | A kind of method and device for optimizing memory space | |
CN113157285A (en) | Program file package installation method, storage medium, electronic device and system | |
CN102137120A (en) | Method and system for group communication | |
CN102164146A (en) | Method and system for automatically deleting downloaded documents from server | |
CN106301819B (en) | Parameter checking method and checking system | |
Pfeifenberger et al. | HVDC Transmission: Multi-Value Planning Considerations and Experience |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150304 |
|
RJ01 | Rejection of invention patent application after publication |