CN105550339A - Document online previewing method, apparatus and system - Google Patents
Document online previewing method, apparatus and system Download PDFInfo
- Publication number
- CN105550339A CN105550339A CN201510981583.5A CN201510981583A CN105550339A CN 105550339 A CN105550339 A CN 105550339A CN 201510981583 A CN201510981583 A CN 201510981583A CN 105550339 A CN105550339 A CN 105550339A
- Authority
- CN
- China
- Prior art keywords
- document
- storehouse
- format file
- converted
- browser
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
- G06F16/1794—Details of file format conversion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/43—Querying
- G06F16/438—Presentation of query results
- G06F16/4387—Presentation of query results by the use of playlists
- G06F16/4393—Multimedia presentations, e.g. slide shows, multimedia albums
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a document online previewing method, apparatus and system. The method comprises the steps of taking out a document in a first to-be-converted stack and converting the document into a first-format document; putting the first-format document into a second to-be-converted stack; taking out the first-format document in the first to-be-converted stack and converting the first-format document into a second-format document, wherein the second-format document is a document capable of being directly displayed by a browser; and sending the second-format document to the browser for displaying.
Description
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of methods, devices and systems of online preview document.
Background technology
The Office series office software of current Microsoft is office software the most common, many documents are all generated by this groupware editor, .doc/.docx .xls/.xlsx .ppt/.pptx .txt etc. are modal document formats, in addition, the Acrobat Document processing software of Adobe company is also all the fashion, and large volume document is all saved as .pdf form.Read these format files, usually need relevant speciality software is installed, and the installation environment resource that these professional softwares need is all higher and expensive.And for internet terminal (such as net book or panel computer), hardware resource is limited and to cost sensitivity; Read the content of these format files if be only used to, and will these professional softwares all be installed complete, system resource and financial cost expense all higher.
For the problems referred to above, have scheme to be adopted as the relevant mode of reading plug-in unit of Web browser loading and solve, but need to load different plug-in units for various different form, and plug-in unit usually needs to upgrade, and brings inconvenience too to user.
Summary of the invention
The present invention expects the methods, devices and systems providing a kind of online preview document, when not installing the Reading for academic studies software of document, can show the content of document to user.
The technical scheme of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of method of online preview document, and the method comprises:
Taking out the document in the first storehouse to be converted, is the first format file by described document subject feature vector;
Described first format file is put into the second storehouse to be converted;
Take out the first format file in the first storehouse to be converted, be converted into the second format file; Described second format file is the document that browser can directly be shown;
Second format file is sent to browser, by browser-presented.
In such scheme, described method also comprises:
Receive the document treating preview, described document is put into described first storehouse to be converted.
In such scheme, described method also comprises:
Concurrent multiple thread, completing document subject feature vector is the first form and/or the second format file.
In such scheme, described method also comprises:
Be that genlocing set up by the first storehouse to be converted and/or the second storehouse to be converted, synchronization only allows a thread to take out document from described storehouse.
In such scheme, described first form is .pdf form; Described second form is .swf form.
The embodiment of the present invention also provides a kind of device of online preview document, and this device comprises: the first conversion module, intermediate storage module, the second conversion module and document sending module; Wherein,
Described document subject feature vector, for taking out the document in the first storehouse to be converted, is the first format file by the first conversion module;
Intermediate storage module, for putting into the second storehouse to be converted by described first format file;
Second conversion module, for taking out the first format file in the first storehouse to be converted, is converted into the second format file; Described second format file is the document that browser can directly be shown;
Document sending module, for being sent to browser, by browser-presented by the second format file.
In such scheme, described device also comprises:
Document Creator Module, for receiving the document treating preview, puts into described first storehouse to be converted by described document.
In such scheme, described first conversion module comprises concurrent unit, and for concurrent multiple thread, completing document subject feature vector is the first format file; And/or
Described second conversion module comprises concurrent unit, and for concurrent multiple thread, completing document subject feature vector is the second format file.
In such scheme, described first conversion module and/or the second conversion module comprise:
Sync-lock unit, for setting up genlocing for conversion storehouse, synchronization only allows a thread to take out document from described storehouse
The embodiment of the present invention also provides a kind of online preview document system, and comprise server and browser, described server comprises the device of any one online preview document above-mentioned.
The beneficial effect of technical solution of the present invention is: by being intermediate form document by the document subject feature vector of each form, be can the format file directly shown of viewed device again by intermediate form document subject feature vector, thus when can be implemented in the Reading for academic studies software not installing document, show the content of document to user.Meanwhile, for avoiding the restriction of slewing rate, introducing storehouse and thread concurrent mechanism, the needs of user can better be responded.
Accompanying drawing explanation
The realization flow schematic diagram of the method for the online preview document that Fig. 1 provides for the embodiment of the present invention;
The composition structural representation of the device of the online preview document that Fig. 2 provides for the embodiment of the present invention;
The plant running principle schematic of the online preview document that Fig. 3 provides for the embodiment of the present invention 1.
Embodiment
In order to be illustrated more clearly in the embodiment of the present invention and technical scheme, be described in detail technical scheme of the present invention below in conjunction with drawings and Examples, obviously, described embodiment is a part of embodiment of the present invention, instead of whole embodiment.Based on embodiments of the invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not paying creative work, all belongs to the scope of protection of the invention.
In embodiments of the present invention, comprise the technical term that some those skilled in that art should be appreciated that, below make and define explanation accordingly:
Storehouse: storehouse is all a kind of data structure of data item arranged in sequence, at one end (can only be called stack top (top)) and insert data item and delete;
Stack (operating system): automatically distribute release by operating system, deposits the parameter value of function, the value etc. of local variable.Its mode of operation is similar to the stack in data structure;
Heap (operating system): generally distribute release by programmer, if programmer does not discharge, may be reclaimed by OS during EOP (end of program), allocation scheme is on the contrary similar to chained list.
The embodiment of the present invention provides a kind of online preview document system, this system comprises server and browser, when user utilizes browser to need the document of online preview .doc/.docx .xls/.xlsx .ppt/.pptx .txt or .pdf form, described document is needed to be uploaded to described server, carrying out format conversion by server, is the document format that described browser can directly be shown by described document subject feature vector.Especially, browser refers to Web browser.For convenience of understanding, below the functional module being responsible for document format conversion in server is called converter.
Converter is limited to self transfer capability, usually can not ensureing that each document to uploading onto the server can make conversion process in time, therefore, needing to arrange storehouse to be converted in server, for the document of the form to be converted that buffer memory uploads onto the server.
The realization flow schematic diagram of the method for the online preview document that Fig. 1 provides for the embodiment of the present invention, as shown in Figure 1, the method comprises:
Step 101, taking out the document in the first storehouse to be converted, is the first format file by described document subject feature vector;
Concrete, as previously mentioned, can arrange storehouse to be converted in server, therefore, before step 101, server also receives the document treating preview, described document is put into described first storehouse to be converted;
Afterwards, server by utilizing first converter takes out the document in the first storehouse to be converted, is the first format file by described document subject feature vector;
Especially, described first form is .pdf form; Due to, the Acrobat of Adobe company is very common reading documents instrument, and therefore existing ready-made is the converter of .pdf format file by the document subject feature vector of many forms, and without the need to new converter of redeveloping, that can save the method for the invention provides realizes cost;
Step 102, puts into the second storehouse to be converted by described first format file;
Concrete, the first format file after first time format conversion is put into the second storehouse to be converted by server, and this second storehouse to be converted is different storehouses from above-mentioned first storehouse to be converted;
Step 103, takes out the first format file in the first storehouse to be converted, is converted into the second format file; Described second format file is the document that browser can directly be shown;
Concrete, server by utilizing second converter takes out the first format file in the first storehouse to be converted, is converted into the second format file; Described second format file is the document that browser can directly be shown; Further, described second form is .swf form; Because .swf format file is the document that general Web browser can directly be shown, and the document subject feature vector that there is ready-made .pdf form is the converter of .swf document, and without the need to new converter of redeveloping, that can save the method for the invention provides realizes cost;
Step 104, is sent to browser, by browser-presented by the second format file;
Concrete, after above-mentioned twice format conversion, described second format file is sent to browser by server, by browser-presented, thus meets the demand of the online preview document of user.
Further, in order to provide the efficiency of server convert documents, server can concurrent multiple thread, and completing document subject feature vector is the first form and/or the second format file; The i.e. example of concurrent multiple first converter and/or the second converter.Accordingly, in order to the problem preventing the concurrent convert documents of multiple converter from duplicating, server is also that genlocing set up by the first storehouse to be converted and/or the second storehouse to be converted, and synchronization only allows a thread to take out document from described storehouse.
The method of the online preview document using above-described embodiment to provide, by being intermediate form document by the document subject feature vector of each form, be can the format file directly shown of viewed device again by intermediate form document subject feature vector, thus when can be implemented in the Reading for academic studies software not installing document, show the content of document to user.Meanwhile, for avoiding the restriction of slewing rate, introducing storehouse and thread concurrent mechanism, the needs of user can better be responded.
Fig. 2 is the composition structural representation of the device of the online preview document that the embodiment of the present invention provides, as shown in Figure 2, the device of this online preview document comprises: the first conversion module 201, intermediate storage module 202, second conversion module 203 and document sending module 204; Wherein,
Described document subject feature vector, for taking out the document in the first storehouse to be converted, is the first format file by the first conversion module 201;
Further, described first conversion module 201 comprises concurrent unit, and for concurrent multiple thread, completing document subject feature vector is the first format file;
Intermediate storage module 202, for putting into the second storehouse to be converted by described first format file;
Second conversion module 203, for taking out the first format file in the first storehouse to be converted, is converted into the second format file; Described second format file is the document that browser can directly be shown;
Further, described second conversion module 203 comprises concurrent unit, and for concurrent multiple thread, completing document subject feature vector is the second format file;
Document sending module 204, for being sent to browser, by browser-presented by the second format file;
Further, described device also comprises:
Document Creator Module, for receiving the document treating preview, puts into described first storehouse to be converted by described document;
Further, described first conversion module and/or the second conversion module also comprise:
Sync-lock unit, for setting up genlocing for conversion storehouse, synchronization only allows a thread to take out document from described storehouse.
Above-mentioned modules and unit in actual applications, all can realize by being arranged in the central processing unit (CPU) of network management test equipment, microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA).
The modules correspondence of the device of the online preview document of the embodiment of the present invention performs the step described by embodiment of the method for above-mentioned online preview document, therefore has identical beneficial effect.In addition, should be understood that, the embodiment of the device of online preview document described above is only schematic, the division of described module, is only a kind of logic function and divides, and actual can have other dividing mode when realizing.In addition, module coupling each other or communication connection can be by some interfaces, also can be electrical or other form.
Each functional module above-mentioned is as the ingredient of the device of online preview document, can be or may not be physical frame, both can be positioned at a place, also can be distributed in multiple network element, both the form of hardware can have been adopted to realize, the form of software function frame also can be adopted to realize.Some or all of module wherein can be selected according to the actual needs to realize the object of the present invention program.
Embodiment 1
The plant running principle schematic of the online preview document that Fig. 3 provides for the embodiment of the present invention 1; As shown in Figure 3, in embodiment 1, described device uses the method for online preview document provided by the invention, and concurrent multiple first converter of server and the second converter, meet the needs of user to online preview document.
The present invention also provides a kind of online preview document system, and this system comprises server and browser, it is characterized in that, described server comprises the device of the online preview document described in above any one.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of hardware embodiment, software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Again illustrate; the foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; such as the be combineding with each other of technical characteristic between each embodiment; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (10)
1. a method for online preview document, is characterized in that, described method comprises:
Taking out the document in the first storehouse to be converted, is the first format file by described document subject feature vector;
Described first format file is put into the second storehouse to be converted;
Take out the first format file in the first storehouse to be converted, be converted into the second format file; Described second format file is the document that browser can directly be shown;
Second format file is sent to browser, by browser-presented.
2. the method for online preview document according to claim 1, is characterized in that, described method also comprises:
Receive the document treating preview, described document is put into described first storehouse to be converted.
3. the method for online preview document according to claim 1 and 2, is characterized in that, described method also comprises:
Concurrent multiple thread, completing document subject feature vector is the first form and/or the second format file.
4. the method for online preview document according to claim 3, is characterized in that, described method also comprises:
Be that genlocing set up by the first storehouse to be converted and/or the second storehouse to be converted, synchronization only allows a thread to take out document from described storehouse.
5. the method for online preview document according to claim 1, is characterized in that, described first form is .pdf form; Described second form is .swf form.
6. a device for online preview document, is characterized in that, described device comprises: the first conversion module, intermediate storage module, the second conversion module and document sending module; Wherein,
Described document subject feature vector, for taking out the document in the first storehouse to be converted, is the first format file by the first conversion module;
Intermediate storage module, for putting into the second storehouse to be converted by described first format file;
Second conversion module, for taking out the first format file in the first storehouse to be converted, is converted into the second format file; Described second format file is the document that browser can directly be shown;
Document sending module, for being sent to browser, by browser-presented by the second format file.
7. the device of online preview document according to claim 6, is characterized in that, described device also comprises:
Document Creator Module, for receiving the document treating preview, puts into described first storehouse to be converted by described document.
8. the device of online preview document according to claim 6, is characterized in that,
Described first conversion module comprises concurrent unit, and for concurrent multiple thread, completing document subject feature vector is the first format file; And/or
Described second conversion module comprises concurrent unit, and for concurrent multiple thread, completing document subject feature vector is the second format file.
9. the device of online preview document according to claim 8, is characterized in that, described first conversion module and/or the second conversion module comprise:
Sync-lock unit, for setting up genlocing for conversion storehouse, synchronization only allows a thread to take out document from described storehouse
10. an online preview document system, comprises server and browser, it is characterized in that, described server comprises the device of the online preview document according to any one of claim 6 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510981583.5A CN105550339A (en) | 2015-12-23 | 2015-12-23 | Document online previewing method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510981583.5A CN105550339A (en) | 2015-12-23 | 2015-12-23 | Document online previewing method, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105550339A true CN105550339A (en) | 2016-05-04 |
Family
ID=55829528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510981583.5A Pending CN105550339A (en) | 2015-12-23 | 2015-12-23 | Document online previewing method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105550339A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105975601A (en) * | 2016-05-11 | 2016-09-28 | 无锡永中软件有限公司 | Webpage document online preview method |
CN106776504A (en) * | 2016-12-27 | 2017-05-31 | 北京致远互联软件股份有限公司 | A kind of document format on-line conversion method and system |
CN110990345A (en) * | 2019-11-28 | 2020-04-10 | 中国银行股份有限公司 | Method and device for online preview of Excel file |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1236453A (en) * | 1997-06-30 | 1999-11-24 | 太阳微系统有限公司 | Method and apparatus for managing a linked-list data structure |
CN101976268A (en) * | 2010-11-19 | 2011-02-16 | 百度在线网络技术(北京)有限公司 | Online document reading device and method |
US20130111326A1 (en) * | 2011-10-26 | 2013-05-02 | Kimber Lockhart | Enhanced multimedia content preview rendering in a cloud content management system |
CN104391827A (en) * | 2014-12-10 | 2015-03-04 | 深圳中兴网信科技有限公司 | Method and device for browsing documents by web pages |
-
2015
- 2015-12-23 CN CN201510981583.5A patent/CN105550339A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1236453A (en) * | 1997-06-30 | 1999-11-24 | 太阳微系统有限公司 | Method and apparatus for managing a linked-list data structure |
CN101976268A (en) * | 2010-11-19 | 2011-02-16 | 百度在线网络技术(北京)有限公司 | Online document reading device and method |
US20130111326A1 (en) * | 2011-10-26 | 2013-05-02 | Kimber Lockhart | Enhanced multimedia content preview rendering in a cloud content management system |
CN104391827A (en) * | 2014-12-10 | 2015-03-04 | 深圳中兴网信科技有限公司 | Method and device for browsing documents by web pages |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105975601A (en) * | 2016-05-11 | 2016-09-28 | 无锡永中软件有限公司 | Webpage document online preview method |
CN106776504A (en) * | 2016-12-27 | 2017-05-31 | 北京致远互联软件股份有限公司 | A kind of document format on-line conversion method and system |
CN110990345A (en) * | 2019-11-28 | 2020-04-10 | 中国银行股份有限公司 | Method and device for online preview of Excel file |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11340803B2 (en) | Method for configuring resources, electronic device and computer program product | |
CN105045802B (en) | A kind of polymorphic type previewing file system of message-driven | |
KR101740071B1 (en) | Utilizing server pre-processing to deploy renditions of electronic documents in a computer network | |
CN102497424A (en) | Method for achieving cloud storage through mobile storage device | |
US9251187B2 (en) | Metadata-driven version management service in pervasive environment | |
CN103037008A (en) | Authority management method and system of synchronous network disk | |
CN105550339A (en) | Document online previewing method, apparatus and system | |
CN104090862A (en) | Network disk multi-type file online preview method based on Linux+Ngnix+Mysql+PHP (LNMP) | |
CN104144202A (en) | Hadoop distributed file system access method, system and device | |
CN102419753B (en) | Information processing equipment, information processing method and information processing system | |
CN104991860A (en) | WEB front-end automated development method and system | |
CN110400067A (en) | A kind of method and system of purpose balance management | |
EP2874059A1 (en) | Personal cloud storage chain service system and method | |
JP2014075088A (en) | Image forming apparatus, control method, and program thereof | |
CN104572140A (en) | Method, device and system for transplanting operating system | |
CN103886086A (en) | Cross-browser file-displaying system and method | |
CN110347546B (en) | Dynamic adjustment method, device, medium and electronic equipment for monitoring task | |
CN110008461A (en) | Document structure tree method and relevant apparatus | |
CN102880689B (en) | Method for exhibiting contents of office files in web application quickly and conveniently | |
US20210117129A1 (en) | Method and Apparatus for Writing Data | |
CN107395700B (en) | SAMBA protocol-based nuclear power DCS (distributed control System) procedure simulation system and method | |
CN111880831A (en) | Method and device for synchronously updating server, computer equipment and storage medium | |
CN112068925A (en) | File uploading method and device based on WebUploader component, electronic equipment and readable storage medium | |
CN116541045B (en) | Application resource updating method, device and system | |
CN113127054B (en) | File processing method and related device |
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: 100097, room 9, No. 1409 West Fourth Ring Road, Haidian District, Beijing Applicant after: SMART ARK TECHNOLOGY CO., LTD. Applicant after: Shenzhen Huaxunark Technology Co., Ltd. Address before: 100097, room 9, No. 1409 West Fourth Ring Road, Haidian District, Beijing Applicant before: SMART ARK TECHNOLOGY CO., LTD. Applicant before: Shenzhen City Huaxun Fangzhou Technology Co., Ltd. |
|
COR | Change of bibliographic data | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160504 |
|
RJ01 | Rejection of invention patent application after publication |