CN102243665A - Document online playing system and method thereof - Google Patents

Document online playing system and method thereof Download PDF

Info

Publication number
CN102243665A
CN102243665A CN2011102418333A CN201110241833A CN102243665A CN 102243665 A CN102243665 A CN 102243665A CN 2011102418333 A CN2011102418333 A CN 2011102418333A CN 201110241833 A CN201110241833 A CN 201110241833A CN 102243665 A CN102243665 A CN 102243665A
Authority
CN
China
Prior art keywords
document
flash
content
file
conversion module
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
CN2011102418333A
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.)
SHANGHAI MEIHUA INFORMATION CO Ltd
Original Assignee
SHANGHAI MEIHUA INFORMATION 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 SHANGHAI MEIHUA INFORMATION CO Ltd filed Critical SHANGHAI MEIHUA INFORMATION CO Ltd
Priority to CN2011102418333A priority Critical patent/CN102243665A/en
Publication of CN102243665A publication Critical patent/CN102243665A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a document online playing system and a method thereof. The system comprises a document uniform conversion module and a Flash conversion module. The document uniform conversion module is used for analyzing various mainstream document formats, and unifying the document into a PDF format document; and the document uniform conversion module comprises an Excel conversion module, a Powerpoint conversion module, a Word conversion module and a Txt conversion module. The Flash conversion module is used for extracting PDF document content, and converting the PDF document content into a Flash file; and the Flash conversion module comprises a document analysis module, a log recording module and a Flash generation module. The document online playing method and the system thereof effectively make up the defects in opening the document by conventional client software, and for an operating system without the client software, the method is an effective solution; users can browse the document just by downloading a Flash player, and simultaneously, the method also can be used for implementing websites of online document sharing type.

Description

A kind of document online playing system and method
Technical field
The invention belongs to the document processing technology field, relate to a kind of document Play System, relate in particular to a kind of document online playing system; Simultaneously, the present invention also discloses a kind of document online playing method.
Background technology
Depth development along with internet industry, the internet has entered the Web2.0 epoch comprehensively, it has brought more opportunities and challenges, many traditional client application technology are applied to the internet, as conventional I T operation systems such as customer relation management, financial management systems, the online picture editor, script who serves the developer for another example makes or the like application technology, and emerging internet, applications technology emerges in an endless stream.
Browsing of conditional electronic document, as the file of forms such as POWERPOINT, WORD, TXT, PDF, existing common way is by computing machine the document ocr software to be installed, and browses and operates in the mode that software opens file.
In addition, also have some document sharing websites that open for free, realize the online reading of document, do not need document is downloaded, directly carry out reading based on browser, very convenient, changed operation and reading model in the past.
Yet existing document reading method need be installed corresponding document ocr software usually, makes troubles to the user.
Summary of the invention
Technical matters to be solved by this invention is: a kind of document online playing system is provided, can browses various files quickly and easily.
In addition, the present invention also provides a kind of document online playing method, can browse various files quickly and easily.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of document online playing system, described system comprises: document is unified conversion module, Flash conversion module;
Described document is unified conversion module in order to various main flow document formats are analyzed, and the document unification is the PDF document; Described document is unified conversion module and is comprised in Excel conversion module, Powerpoint conversion module, Word conversion module, the Txt conversion module one or more;
Described Excel conversion module is in order to transform into the PDF document with all table content; The Excel conversion module utilizes the open interface of Office to read the content of Excel, information is read internal memory, and utilize the Office card module that Excel is saved as the PDF document;
Described Powerpoint conversion module is in order to transform into the PDF document with the presentation file content; The Powerpoint conversion module utilizes the open interface of Office to read the content of all pages of Powerpoint, information is read internal memory, and utilize the Office card module that Powerpoint is saved as the PDF document;
Described Word conversion module is in order to transform into document content the PDF document; The Word conversion module utilizes the open interface of Office to read the Word document content, information is read internal memory, and utilize the Office card module that Word is saved as the PDF document;
Described Txt conversion module is in order to transform into the PDF document with the notepad content; The Txt conversion module utilizes the open interface of Office to read the Txt file content, information is read internal memory, and utilize the Office card module that the Txt file is saved as the PDF document;
Described Flash conversion module transforms into the Flash file in order to extract the PDF document content with the PDF document content; Described Flash conversion module comprises document analysis module, logger module, Flash generation module;
Described document analysis module is in order to extract PDF document content, analytical documentation page number quantity and size dimension; Mainly utilize plug-in unit to calculate document content, calculate the documentation page number of codes, calculate every page of size and determine coordinate position, it is copied to internal memory to carry out next step Flash generating run with analysis PDF;
Described logger module is unusual in order to what run in the record Flash conversion process, is used for trace debug, is convenient to the subsequent treatment abnormal results, has done fault-tolerant processing unusually to what run into so that document generate can not occur unusual; Log record, as unit, produced data for every month and forms a journal file with setting-up time as record with the Txt file, and the executing state of whole conversion process is all write down in each conversion;
Described Flash generation module is in order to transform into the swf formatted file with the PDF document content; The utilization of Flash generation module transforms the open interface of plug-in unit the PDF document content is converted into the Flash file, and every page of document is converted to a frame, and formulates the playing sequence of frame up and down, is used for the control of the reading page turning of Flash player.
A kind of document online playing system, described system comprises: document is unified conversion module, Flash conversion module;
Described document is unified conversion module in order to various main flow document formats are analyzed, and the document unification is the PDF document;
Described Flash conversion module transforms into the Flash file in order to extract the PDF document content with the PDF document content.
As a preferred embodiment of the present invention, described document is unified conversion module and is comprised in Excel conversion module, Powerpoint conversion module, Word conversion module, the Txt conversion module one or more;
Described Excel conversion module is in order to transform into the PDF document with all table content; The Excel conversion module utilizes the open interface of Office to read the content of Excel, information is read internal memory, and utilize the Office card module that Excel is saved as the PDF document;
Described Powerpoint conversion module is in order to transform into the PDF document with the presentation file content; The Powerpoint conversion module utilizes the open interface of Office to read the content of all pages of Powerpoint, information is read internal memory, and utilize the Office card module that Powerpoint is saved as the PDF document;
Described Word conversion module is in order to transform into document content the PDF document; The Word conversion module utilizes the open interface of Office to read the Word document content, information is read internal memory, and utilize the Office card module that Word is saved as the PDF document;
Described Txt conversion module is in order to transform into the PDF document with the notepad content; The Txt conversion module utilizes the open interface of Office to read the Txt file content, information is read internal memory, and utilize the Office card module that the Txt file is saved as the PDF document.
As a preferred embodiment of the present invention, described Flash conversion module comprises document analysis module, Flash generation module;
Described document analysis module is in order to extract PDF document content, analytical documentation page number quantity and size dimension; Mainly utilize plug-in unit to calculate document content, calculate the documentation page number of codes, calculate every page of size and determine coordinate position, it is copied to internal memory to carry out next step Flash generating run with analysis PDF;
Described Flash generation module is in order to transform into the swf formatted file with the PDF document content; The utilization of Flash generation module transforms the open interface of plug-in unit the PDF document content is converted into the Flash file, and every page of document is converted to a frame, and formulates the playing sequence of frame up and down, is used for the control of the reading page turning of Flash player.
As a preferred embodiment of the present invention, described Flash conversion module further comprises logger module, unusual in order to what run in the record Flash conversion process, be used for trace debug, be convenient to the subsequent treatment abnormal results, unusually done fault-tolerant processing to what run into so that document generate can not occur unusual; Log record, as unit, produced data for every month and forms a journal file with setting-up time as record with the Txt file, and the executing state of whole conversion process is all write down in each conversion.
A kind of document online playing method, described method comprises the steps:
S1, document are unified step of converting, and various main flow document formats are analyzed, and the document unification is the PDF document;
S2, Flash step of converting extract the PDF document content, and the PDF document content is transformed into the Flash file.
As a preferred embodiment of the present invention, described step S1 selects to enter step S11, S12, S13 or S14 according to document format: if document format has been PDF, then need not conversion;
S11, Excel step of converting; All table content are transformed into the PDF document; Utilize the open interface of Office to read the content of Excel, information is read internal memory, and utilize the Office card module that Excel is saved as the PDF document;
S12, Powerpoint step of converting; The presentation file content is transformed into the PDF document; Utilize the open interface of Office to read the content of all pages of Powerpoint, information is read internal memory, and utilize the Office card module that Powerpoint is saved as the PDF document;
S13, Word step of converting; Document content is transformed into the PDF document; Utilize the open interface of Office to read the Word document content, information is read internal memory, and utilize the Office card module that Word is saved as the PDF document;
S14, Txt step of converting; The notepad content is transformed into the PDF document; Utilize the open interface of Office to read the Txt file content, information is read internal memory, and utilize the Office card module that the Txt file is saved as the PDF document.
As a preferred embodiment of the present invention, described Flash step of converting specifically comprises:
S21, document analysis step; Extract the PDF document content, analytical documentation page number quantity and size dimension; Mainly utilize plug-in unit to calculate document content, calculate the documentation page number of codes, calculate every page of size and determine coordinate position, it is copied to internal memory to carry out next step Flash generating run with analysis PDF;
S22, log record step; What run in the record Flash conversion process is unusual, is used for trace debug, is convenient to the subsequent treatment abnormal results, has done fault-tolerant processing unusually to what run into so that document generate can not occur unusual; Log record, as unit, produced data for every month and forms a journal file with setting-up time as record with the Txt file, and the executing state of whole conversion process is all write down in each conversion;
S23, Flash generate step; The PDF document content is transformed into the swf formatted file; The utilization of Flash generation module transforms the open interface of plug-in unit the PDF document content is converted into the Flash file, and every page of document is converted to a frame, and formulates the playing sequence of frame up and down, is used for the control of the reading page turning of Flash player.
A kind of document online playing method, described method comprises the steps:
Steps A, document class other places reason step; Document format is judged different document formats is taked different treatment mechanisms;
Step B, PDF document switch process; Read document content and transfer the main flow document to the PDF document;
Step C, document analysis step; Calculate and analysis PDF document, mainly comprise number of pages, size, size;
Step D, log record, abnormality processing step;
Step e, Swf file generate step; Generation is used for the Swf file of Flash player, and the control document is a frame for every page.
As a preferred embodiment of the present invention, described step C specifically comprises: extract the PDF document content, analytical documentation page number quantity and size dimension; Mainly utilize plug-in unit to calculate document content, calculate the documentation page number of codes, calculate every page of size and determine coordinate position, it is copied to internal memory to carry out next step Flash generating run with analysis PDF;
Described step D specifically comprises: what run in the record Flash conversion process is unusual, is used for trace debug, is convenient to the subsequent treatment abnormal results, has done fault-tolerant processing unusually to what run into so that document generate can not occur unusual; Log record, as unit, produced data for every month and forms a journal file with setting-up time as record with the Txt file, and the executing state of whole conversion process is all write down in each conversion;
Described step e specifically comprises: the PDF document content is transformed into the swf formatted file; The utilization of Flash generation module transforms the open interface of plug-in unit the PDF document content is converted into the Flash file, and every page of document is converted to a frame, and formulates the playing sequence of frame up and down, is used for the control of the reading page turning of Flash player.
Beneficial effect of the present invention is: the document online playing system and method that the present invention proposes, remedied the weak point of conventional client software opening document effectively, for the operating system that client software is not installed, this method is an effective solution, the user only need download the Flash playout software can realize browsing of document, and this method can be used in the realization that online document is shared the website of class again simultaneously.
In addition, the present invention provides good support to the document format of main flow, and the present invention also supports the expansion of different document form.
Description of drawings
Fig. 1 is the composition synoptic diagram of document online playing of the present invention system.
Fig. 2 is the process flow diagram of document online playing method of the present invention.
Embodiment
Describe the preferred embodiments of the present invention in detail below in conjunction with accompanying drawing.
Embodiment one
The present invention relates to how to realize a kind of method of document online playing.The present invention has adopted the mode of Flash plug-in unit to carry out the reading of document, and Flash plug-in unit advantage is:
1) browser compatibility is good, has only the only a few platform to have compatibility and support issue;
2) installation is convenient;
3) resource occupation and file size are few;
4) support interaction and animation effect.
See also Fig. 1, the present invention has disclosed a kind of document online playing system, and described system comprises: document is unified conversion module 10, Flash conversion module 20.
[document is unified conversion module]
Described document is unified conversion module 10 in order to various main flow document formats are analyzed, and the document unification is the PDF document.Described document is unified conversion module and is comprised in Excel conversion module 11, Powerpoint conversion module 12, Word conversion module 13, the Txt conversion module 14 one or more.
Described Excel conversion module 11 is in order to transform into the PDF document with all table content; The Excel conversion module utilizes the open interface of Office to read the content of Excel, information is read internal memory, and utilize the Office card module that Excel is saved as the PDF document.
Described Powerpoint conversion module 12 is in order to transform into the PDF document with the presentation file content; The Powerpoint conversion module utilizes the open interface of Office to read the content of all pages of Powerpoint, information is read internal memory, and utilize the Office card module that Powerpoint is saved as the PDF document.
Described Word conversion module 13 is in order to transform into document content the PDF document; The Word conversion module utilizes the open interface of Office to read the Word document content, information is read internal memory, and utilize the Office card module that Word is saved as the PDF document.
Described Txt conversion module 14 is in order to transform into the PDF document with the notepad content; The Txt conversion module utilizes the open interface of Office to read the Txt file content, information is read internal memory, and utilize the Office card module that the Txt file is saved as the PDF document.
[Flash conversion module]
Described Flash conversion module 20 transforms into the Flash file in order to extract the PDF document content with the PDF document content.Described Flash conversion module 20 comprises document analysis module 21, logger module 22, Flash generation module 23.
Described document analysis module 21 is in order to extract PDF document content, analytical documentation page number quantity and size dimension; Mainly utilize plug-in unit to calculate document content, calculate the documentation page number of codes, calculate every page of size and determine coordinate position, it is copied to internal memory to carry out next step Flash generating run with analysis PDF.
Described logger module 22 is unusual in order to what run in the record Flash conversion process, is used for trace debug, is convenient to the subsequent treatment abnormal results, has done fault-tolerant processing unusually to what run into so that document generate can not occur unusual; Log record, as unit, produced data for every month and forms a journal file with setting-up time as record with the Txt file, and the executing state of whole conversion process is all write down in each conversion.
Described Flash generation module 23 is in order to transform into the swf formatted file with the PDF document content; The utilization of Flash generation module transforms the open interface of plug-in unit the PDF document content is converted into the Flash file, and every page of document is converted to a frame, and formulates the playing sequence of frame up and down, is used for the control of the reading page turning of Flash player.Transforming plug-in unit is executable file, pluck and carry out conversion with command line mode, and input parameter, mainly comprising original pdf document and output Flash file path, the conversion process that order line is carried out is carried out in the generation module simulation, generates the Flash file.
More than introduced document online playing of the present invention system, the present invention also discloses a kind of document online playing method when disclosing said system; Described method comprises the steps:
[step S1] document is unified step of converting, and various main flow document formats are analyzed, and the document unification is the PDF document.
It mainly is that various main flow document formats are analyzed that document is unified step of converting, is converted into unified PDF, and PDF is a kind of transplantable document format, and this file layout and operating system platform are irrelevant.Select to enter step S11, S12, S13 or S14 according to document format:, then need not conversion if document format has been PDF.
Step S11, Excel step of converting; All table content are transformed into the PDF document; Utilize the open interface of Office to read the content of Excel, information is read internal memory, and utilize the Office card module that Excel is saved as the PDF document.
Step S12, Powerpoint step of converting; The presentation file content is transformed into the PDF document; Utilize the open interface of Office to read the content of all pages of Powerpoint, information is read internal memory, and utilize the Office card module that Powerpoint is saved as the PDF document.
Step S13, Word step of converting; Document content is transformed into the PDF document; Utilize the open interface of Office to read the Word document content, information is read internal memory, and utilize the Office card module that Word is saved as the PDF document.
Step S14, Txt step of converting; The notepad content is transformed into the PDF document; Utilize the open interface of Office to read the Txt file content, information is read internal memory, and utilize the Office card module that the Txt file is saved as the PDF document.
[step S2] Flash step of converting extracts the PDF document content, and the PDF document content is transformed into the Flash file; Specifically comprise:
Step S21, document analysis step; Extract the PDF document content, analytical documentation page number quantity and size dimension; Mainly utilize plug-in unit to calculate document content, calculate the documentation page number of codes, calculate every page of size and determine coordinate position, it is copied to internal memory to carry out next step Flash generating run with analysis PDF.
Step S22, log record step; What run in the record Flash conversion process is unusual, is used for trace debug, is convenient to the subsequent treatment abnormal results, has done fault-tolerant processing unusually to what run into, so that can not occur unusual in the process that document generates; Log record, as unit, produced data for every month and forms a journal file with setting-up time as record with the Txt file, and the executing state of whole conversion process is all write down in each conversion.
Step S23, Flash generate step; The PDF document content is transformed into the swf formatted file; The utilization of Flash generation module transforms the open interface of plug-in unit the PDF document content is converted into the Flash file, and every page of document is converted to a frame, and formulates the playing sequence of frame up and down, is used for the control of the reading page turning of Flash player.Transforming plug-in unit is executable file, pluck and carry out conversion with command line mode, and input parameter, mainly comprising original pdf document and output Flash file path, the conversion process that order line is carried out is carried out in the generation module simulation, generates the Flash file.
Embodiment two
See also Fig. 2, present embodiment discloses a kind of document online playing method, and described online playing method comprises the steps:
[steps A] document class other places reason step; Document format is judged different document formats is taked different treatment mechanisms.
[step B] PDF document switch process; Read document content and transfer the main flow document to the PDF document.
[step C] document analysis step; Calculate and analysis PDF document, mainly comprise number of pages, size, size.Specifically comprise: extract the PDF document content, analytical documentation page number quantity and size dimension; Mainly utilize plug-in unit to calculate document content, calculate the documentation page number of codes, calculate every page of size and determine coordinate position, it is copied to internal memory to carry out next step Flash generating run with analysis PDF.
[step D] log record, abnormality processing step.Specifically comprise: what run in the record Flash conversion process is unusual, is used for trace debug, is convenient to the subsequent treatment abnormal results, has done fault-tolerant processing unusually to what run into so that document generate can not occur unusual; Log record, as unit, produced data for every month and forms a journal file with setting-up time as record with the Txt file, and the executing state of whole conversion process is all write down in each conversion.
[step e] Swf file generates step; Generation is used for the Swf file of Flash player, and the control document is a frame for every page.Specifically comprise: the PDF document content is transformed into the swf formatted file; The utilization of Flash generation module transforms the open interface of plug-in unit the PDF document content is converted into the Flash file, and every page of document is converted to a frame, and formulates the playing sequence of frame up and down, is used for the control of the reading page turning of Flash player; Transforming plug-in unit is executable file, pluck and carry out conversion with command line mode, and input parameter, mainly comprising original pdf document and output Flash file path, the conversion process that order line is carried out is carried out in the generation module simulation, generates the Flash file.
In sum, the document online playing system and method that the present invention proposes, remedied the weak point of conventional client software opening document effectively, for the operating system that client software is not installed, this method is an effective solution, the user only need download the Flash playout software can realize browsing of document, and this method can be used in the realization that online document is shared the website of class again simultaneously.
In addition, the present invention provides good support to the document format of main flow, and the present invention also supports the expansion of different document form.
Here description of the invention and application is illustrative, is not to want with scope restriction of the present invention in the above-described embodiments.Here the distortion of disclosed embodiment and change are possible, and the various parts of the replacement of embodiment and equivalence are known for those those of ordinary skill in the art.Those skilled in the art are noted that under the situation that does not break away from spirit of the present invention or essential characteristic, and the present invention can be with other form, structure, layout, ratio, and realize with other assembly, material and parts.Under the situation that does not break away from the scope of the invention and spirit, can carry out other distortion and change here to disclosed embodiment.

Claims (10)

1. document online playing system, it is characterized in that described system comprises: document is unified conversion module, Flash conversion module;
Described document is unified conversion module in order to various main flow document formats are analyzed, and the document unification is the PDF document; Described document is unified conversion module and is comprised in Excel conversion module, Powerpoint conversion module, Word conversion module, the Txt conversion module one or more;
Described Excel conversion module is in order to transform into the PDF document with all table content; The Excel conversion module utilizes the open interface of Office to read the content of Excel, information is read internal memory, and utilize the Office card module that Excel is saved as the PDF document;
Described Powerpoint conversion module is in order to transform into the PDF document with the presentation file content; The Powerpoint conversion module utilizes the open interface of Office to read the content of all pages of Powerpoint, information is read internal memory, and utilize the Office card module that Powerpoint is saved as the PDF document;
Described Word conversion module is in order to transform into document content the PDF document; The Word conversion module utilizes the open interface of Office to read the Word document content, information is read internal memory, and utilize the Office card module that Word is saved as the PDF document;
Described Txt conversion module is in order to transform into the PDF document with the notepad content; The Txt conversion module utilizes the open interface of Office to read the Txt file content, information is read internal memory, and utilize the Office card module that the Txt file is saved as the PDF document;
Described Flash conversion module transforms into the Flash file in order to extract the PDF document content with the PDF document content; Described Flash conversion module comprises document analysis module, logger module, Flash generation module;
Described document analysis module is in order to extract PDF document content, analytical documentation page number quantity and size dimension; Mainly utilize plug-in unit to calculate document content, calculate the documentation page number of codes, calculate every page of size and determine coordinate position, it is copied to internal memory to carry out next step Flash generating run with analysis PDF;
Described logger module is unusual in order to what run in the record Flash conversion process, is used for trace debug, is convenient to the subsequent treatment abnormal results, has done fault-tolerant processing unusually to what run into, so that can not occur unusual in the process that document generates; Log record, as unit, produced data for every month and forms a journal file with setting-up time as record with the Txt file, and the executing state of whole conversion process is all write down in each conversion;
Described Flash generation module is in order to transform into the swf formatted file with the PDF document content; The utilization of Flash generation module transforms the open interface of plug-in unit the PDF document content is converted into the Flash file, and every page of document is converted to a frame, and formulates the playing sequence of frame up and down, is used for the control of the reading page turning of Flash player; Transforming plug-in unit is executable file, pluck and carry out conversion with command line mode, and input parameter, mainly comprising original pdf document and output Flash file path, the conversion process that order line is carried out is carried out in the generation module simulation, generates the Flash file.
2. document online playing system, it is characterized in that described system comprises: document is unified conversion module, Flash conversion module;
Described document is unified conversion module in order to various main flow document formats are analyzed, and the document unification is the PDF document;
Described Flash conversion module transforms into the Flash file in order to extract the PDF document content with the PDF document content.
3. document online playing according to claim 2 system is characterized in that:
Described document is unified conversion module and is comprised in Excel conversion module, Powerpoint conversion module, Word conversion module, the Txt conversion module one or more;
Described Excel conversion module is in order to transform into the PDF document with all table content; The Excel conversion module utilizes the open interface of Office to read the content of Excel, information is read internal memory, and utilize the Office card module that Excel is saved as the PDF document;
Described Powerpoint conversion module is in order to transform into the PDF document with the presentation file content; The Powerpoint conversion module utilizes the open interface of Office to read the content of all pages of Powerpoint, information is read internal memory, and utilize the Office card module that Powerpoint is saved as the PDF document;
Described Word conversion module is in order to transform into document content the PDF document; The Word conversion module utilizes the open interface of Office to read the Word document content, information is read internal memory, and utilize the Office card module that Word is saved as the PDF document;
Described Txt conversion module is in order to transform into the PDF document with the notepad content; The Txt conversion module utilizes the open interface of Office to read the Txt file content, information is read internal memory, and utilize the Office card module that the Txt file is saved as the PDF document.
4. document online playing according to claim 2 system is characterized in that:
Described Flash conversion module comprises document analysis module, Flash generation module;
Described document analysis module is in order to extract PDF document content, analytical documentation page number quantity and size dimension; Mainly utilize plug-in unit to calculate document content, calculate the documentation page number of codes, calculate every page of size and determine coordinate position, it is copied to internal memory to carry out next step Flash generating run with analysis PDF;
Described Flash generation module is in order to transform into the swf formatted file with the PDF document content; The utilization of Flash generation module transforms the open interface of plug-in unit the PDF document content is converted into the Flash file, and every page of document is converted to a frame, and formulates the playing sequence of frame up and down, is used for the control of the reading page turning of Flash player; Transforming plug-in unit is executable file, pluck and carry out conversion with command line mode, and input parameter, mainly comprising original pdf document and output Flash file path, the conversion process that order line is carried out is carried out in the generation module simulation, generates the Flash file.
5. document online playing according to claim 4 system is characterized in that:
Described Flash conversion module further comprises logger module, and is unusual in order to what run in the record Flash conversion process, is used for trace debug, is convenient to the subsequent treatment abnormal results, done fault-tolerant processing unusually to what run into so that document generate can not occur unusual; Log record, as unit, produced data for every month and forms a journal file with setting-up time as record with the Txt file, and the executing state of whole conversion process is all write down in each conversion.
6. a document online playing method is characterized in that described method comprises the steps:
S1, document are unified step of converting, and various main flow document formats are analyzed, and the document unification is the PDF document;
S2, Flash step of converting extract the PDF document content, and the PDF document content is transformed into the Flash file.
7. document online playing method according to claim 6 is characterized in that:
Described step S1 selects to enter step S11, S12, S13 or S14 according to document format: if document format has been PDF, then need not conversion;
S11, Excel step of converting; All table content are transformed into the PDF document; Utilize the open interface of Office to read the content of Excel, information is read internal memory, and utilize the Office card module that Excel is saved as the PDF document;
S12, Powerpoint step of converting; The presentation file content is transformed into the PDF document; Utilize the open interface of Office to read the content of all pages of Powerpoint, information is read internal memory, and utilize the Office card module that Powerpoint is saved as the PDF document;
S13, Word step of converting; Document content is transformed into the PDF document; Utilize the open interface of Office to read the Word document content, information is read internal memory, and utilize the Office card module that Word is saved as the PDF document;
S14, Txt step of converting; The notepad content is transformed into the PDF document; Utilize the open interface of Office to read the Txt file content, information is read internal memory, and utilize the Office card module that the Txt file is saved as the PDF document.
8. document online playing method according to claim 6 is characterized in that:
Described Flash step of converting specifically comprises:
S21, document analysis step; Extract the PDF document content, analytical documentation page number quantity and size dimension;
Mainly utilize plug-in unit to calculate document content, calculate the documentation page number of codes, calculate every page of size and determine coordinate position, it is copied to internal memory to carry out next step Flash generating run with analysis PDF;
S22, log record step; What run in the record Flash conversion process is unusual, is used for trace debug, is convenient to the subsequent treatment abnormal results, has done fault-tolerant processing unusually to what run into so that document generate can not occur unusual; Log record, as unit, produced data for every month and forms a journal file with setting-up time as record with the Txt file, and the executing state of whole conversion process is all write down in each conversion;
S23, Flash generate step; The PDF document content is transformed into the swf formatted file; The utilization of Flash generation module transforms the open interface of plug-in unit the PDF document content is converted into the Flash file, and every page of document is converted to a frame, and formulates the playing sequence of frame up and down, is used for the control of the reading page turning of Flash player; Transforming plug-in unit is executable file, pluck and carry out conversion with command line mode, and input parameter, mainly comprising original pdf document and output Flash file path, the conversion process that order line is carried out is carried out in the generation module simulation, generates the Flash file.
9. a document online playing method is characterized in that described method comprises the steps:
Steps A, document class other places reason step; Document format is judged different document formats is taked different treatment mechanisms;
Step B, PDF document switch process; Read document content and transfer the main flow document to the PDF document;
Step C, document analysis step; Calculate and analysis PDF document, mainly comprise number of pages, size, size;
Step D, log record, abnormality processing step;
Step e, Swf file generate step; Generation is used for the Swf file of Flash player, and the control document is a frame for every page.
10. document online playing method according to claim 9 is characterized in that:
Described step C specifically comprises: extract the PDF document content, analytical documentation page number quantity and size dimension; Mainly utilize plug-in unit to calculate document content, calculate the documentation page number of codes, calculate every page of size and determine coordinate position, it is copied to internal memory to carry out next step Flash generating run with analysis PDF;
Described step D specifically comprises: what run in the record Flash conversion process is unusual, is used for trace debug, is convenient to the subsequent treatment abnormal results, has done fault-tolerant processing unusually to what run into so that document generate can not occur unusual; Log record, as unit, produced data for every month and forms a journal file with setting-up time as record with the Txt file, and the executing state of whole conversion process is all write down in each conversion;
Described step e specifically comprises: the PDF document content is transformed into the swf formatted file; The utilization of Flash generation module transforms the open interface of plug-in unit the PDF document content is converted into the Flash file, and every page of document is converted to a frame, and formulates the playing sequence of frame up and down, is used for the control of the reading page turning of Flash player; Transforming plug-in unit is executable file, pluck and carry out conversion with command line mode, and input parameter, mainly comprising original pdf document and output Flash file path, the conversion process that order line is carried out is carried out in the generation module simulation, generates the Flash file.
CN2011102418333A 2011-08-22 2011-08-22 Document online playing system and method thereof Pending CN102243665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102418333A CN102243665A (en) 2011-08-22 2011-08-22 Document online playing system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102418333A CN102243665A (en) 2011-08-22 2011-08-22 Document online playing system and method thereof

Publications (1)

Publication Number Publication Date
CN102243665A true CN102243665A (en) 2011-11-16

Family

ID=44961720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102418333A Pending CN102243665A (en) 2011-08-22 2011-08-22 Document online playing system and method thereof

Country Status (1)

Country Link
CN (1) CN102243665A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136171A (en) * 2011-12-02 2013-06-05 明博教育科技有限公司 E-book making method based on shock wave flash (SWF)
CN103309848A (en) * 2013-06-14 2013-09-18 广东电网公司佛山供电局 Method for converting excel document into pdf document
WO2013143379A1 (en) * 2012-03-26 2013-10-03 腾讯科技(深圳)有限公司 Microblog-based document file sharing method and device
CN103544009A (en) * 2013-10-17 2014-01-29 常熟市华安电子工程有限公司 Novel player
WO2014040500A1 (en) * 2012-09-13 2014-03-20 苏州阔地网络科技有限公司 Document conversion method and system
CN103729338A (en) * 2013-12-29 2014-04-16 国云科技股份有限公司 File on-line previewing method
CN104391827A (en) * 2014-12-10 2015-03-04 深圳中兴网信科技有限公司 Method and device for browsing documents by web pages
CN104424162A (en) * 2013-08-21 2015-03-18 鸿合科技有限公司 Method and device for generating record of document used recently
CN104462522A (en) * 2014-12-23 2015-03-25 深圳供电局有限公司 File on-line previewing method, terminal and server
CN103309848B (en) * 2013-06-14 2016-11-30 广东电网公司佛山供电局 Excel document turns the method for pdf document
CN106354449A (en) * 2015-07-15 2017-01-25 腾讯科技(深圳)有限公司 Document online demonstration method and client
CN107168935A (en) * 2017-05-25 2017-09-15 山大鲁能信息科技有限公司 The online code-transferring method of document and system
WO2018028127A1 (en) * 2016-08-09 2018-02-15 广州视睿电子科技有限公司 Method and apparatus for parsing storage files
CN107808003A (en) * 2017-11-14 2018-03-16 中国银行股份有限公司 A kind of document management method and device
CN103442044B (en) * 2013-08-15 2018-11-23 广州三人行壹佰教育科技有限公司 file sharing method, server, terminal and system
CN110502234A (en) * 2019-02-21 2019-11-26 贵州广思信息网络有限公司 The method calculated automatically is realized in a kind of WORD
CN110765378A (en) * 2019-09-20 2020-02-07 苏宁云计算有限公司 Method and system for playing Office document at webpage end

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193330A1 (en) * 2004-02-27 2005-09-01 Exit 33 Education, Inc. Methods and systems for eBook storage and presentation
CN101833567A (en) * 2010-03-31 2010-09-15 北京志腾新诺科技有限公司 Document conversion method, device and system
CN102004779A (en) * 2010-11-19 2011-04-06 百度在线网络技术(北京)有限公司 Document sharing platform and document processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193330A1 (en) * 2004-02-27 2005-09-01 Exit 33 Education, Inc. Methods and systems for eBook storage and presentation
CN101833567A (en) * 2010-03-31 2010-09-15 北京志腾新诺科技有限公司 Document conversion method, device and system
CN102004779A (en) * 2010-11-19 2011-04-06 百度在线网络技术(北京)有限公司 Document sharing platform and document processing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汪孔敏等: "基于RTMP的文档在线浏览工具", 《计算机系统应用》 *

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136171B (en) * 2011-12-02 2017-04-12 明博教育科技股份有限公司 E-book making method based on shock wave flash (SWF)
CN103136171A (en) * 2011-12-02 2013-06-05 明博教育科技有限公司 E-book making method based on shock wave flash (SWF)
CN103365830B (en) * 2012-03-26 2015-07-22 腾讯科技(深圳)有限公司 Method and device for sharing of document files on basis of microblog
WO2013143379A1 (en) * 2012-03-26 2013-10-03 腾讯科技(深圳)有限公司 Microblog-based document file sharing method and device
CN103365830A (en) * 2012-03-26 2013-10-23 腾讯科技(深圳)有限公司 Method and device for sharing of document files on basis of microblog
US9465779B2 (en) 2012-03-26 2016-10-11 Tencent Technology (Shenzhen) Company Limited Microblog-based document file sharing method and device
WO2014040500A1 (en) * 2012-09-13 2014-03-20 苏州阔地网络科技有限公司 Document conversion method and system
CN103309848B (en) * 2013-06-14 2016-11-30 广东电网公司佛山供电局 Excel document turns the method for pdf document
CN103309848A (en) * 2013-06-14 2013-09-18 广东电网公司佛山供电局 Method for converting excel document into pdf document
CN103442044B (en) * 2013-08-15 2018-11-23 广州三人行壹佰教育科技有限公司 file sharing method, server, terminal and system
CN104424162A (en) * 2013-08-21 2015-03-18 鸿合科技有限公司 Method and device for generating record of document used recently
CN103544009A (en) * 2013-10-17 2014-01-29 常熟市华安电子工程有限公司 Novel player
CN103729338A (en) * 2013-12-29 2014-04-16 国云科技股份有限公司 File on-line previewing method
CN104391827A (en) * 2014-12-10 2015-03-04 深圳中兴网信科技有限公司 Method and device for browsing documents by web pages
CN104462522A (en) * 2014-12-23 2015-03-25 深圳供电局有限公司 File on-line previewing method, terminal and server
CN106354449A (en) * 2015-07-15 2017-01-25 腾讯科技(深圳)有限公司 Document online demonstration method and client
CN106354449B (en) * 2015-07-15 2019-09-17 腾讯科技(深圳)有限公司 A kind of online demenstration method of document and client
WO2018028127A1 (en) * 2016-08-09 2018-02-15 广州视睿电子科技有限公司 Method and apparatus for parsing storage files
CN107168935A (en) * 2017-05-25 2017-09-15 山大鲁能信息科技有限公司 The online code-transferring method of document and system
CN107808003A (en) * 2017-11-14 2018-03-16 中国银行股份有限公司 A kind of document management method and device
CN110502234A (en) * 2019-02-21 2019-11-26 贵州广思信息网络有限公司 The method calculated automatically is realized in a kind of WORD
CN110765378A (en) * 2019-09-20 2020-02-07 苏宁云计算有限公司 Method and system for playing Office document at webpage end

Similar Documents

Publication Publication Date Title
CN102243665A (en) Document online playing system and method thereof
Horrocks Constructing the user interface with statecharts
Beizer Black-box testing: techniques for functional testing of software and systems
Ulrich Legacy systems: transformation strategies
US8181106B2 (en) Use of overriding templates associated with customizable elements when editing a web page
Yalamanchili VHDL starter's guide
Guazzelli et al. PMML in action: unleashing the power of open standards for data mining and predictive analytics
US8826297B2 (en) Creating web services from an existing web site
US10078843B2 (en) Systems and methods for analyzing consumer sentiment with social perspective insight
Ghosh et al. Modeling and asynchronous distributed simulation analyzing complex systems
Kalender et al. Videolization: knowledge graph based automated video generation from web content
Zinn The language resource switchboard
Pomberger Software engineering and Modula-2
Schlager Hardware-in-the-loop simulation
Malik et al. SOLE: towards descriptive and interactive publications
US20180090174A1 (en) Video generation of project revision history
Niederst Robbins Learning web design
Siewert Real-time embedded components and systems
Huotala et al. Benefits and Challenges of Isomorphism in Single-Page Applications: Case Study and Review of Gray Literature
Frisbie What Are Browser Extensions?
Espenschied In between performance and documentation
Delgado Rodríguez Web 2.0 history, evolution and characteristics
Hadzhikolcv et al. Architecture of Mobile Online: an application for creating mobile versions of web pages
Zhang The impact of user choice and software change on energy consumption
Kirsanov XSLT 2.0 Web development

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111116