CN104516865B - Association desktop based on Web demonstrates the online presentation file edit methods of subdocument - Google Patents

Association desktop based on Web demonstrates the online presentation file edit methods of subdocument Download PDF

Info

Publication number
CN104516865B
CN104516865B CN201410849286.0A CN201410849286A CN104516865B CN 104516865 B CN104516865 B CN 104516865B CN 201410849286 A CN201410849286 A CN 201410849286A CN 104516865 B CN104516865 B CN 104516865B
Authority
CN
China
Prior art keywords
presentation file
document
desktop
page
file
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.)
Expired - Fee Related
Application number
CN201410849286.0A
Other languages
Chinese (zh)
Other versions
CN104516865A (en
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.)
Peking University
Original Assignee
Peking University
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 Peking University filed Critical Peking University
Priority to CN201410849286.0A priority Critical patent/CN104516865B/en
Publication of CN104516865A publication Critical patent/CN104516865A/en
Application granted granted Critical
Publication of CN104516865B publication Critical patent/CN104516865B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the online presentation file edit methods that a kind of association desktop based on Web demonstrates subdocument, the full content or partial page for the desktop presentation file that this method specifies user are associated in the online presentation file edited, the online presentation file of new stratification tree structure is formed, is included in specified main document in client browser, all or part of integrated as subdocument, editor of one desktop presentation file of specified location addition generates the online presentation file of stratification tree structure newly in main document.User only needs web browser just easily online editing can browse multiple related presentation files, all or part of page of desktop presentation file can be associated in online presentation file, be conducive to presentation file producer or audient to have clear, vivid understanding and overall assurance to content described in presentation file and general frame.

Description

Association desktop based on Web demonstrates the online presentation file edit methods of subdocument
Technical field
The online of subdocument is demonstrated the present invention relates to Web technologies and application, more particularly to a kind of association desktop based on Web Presentation file edit methods.
Background technology
Online presentation file based on Web has become the focus that everybody pays close attention in recent years.Prior art includes HTML Slidy, Deck.js and Reveal.js etc..
HTML Slidy(http://www.w3.org/Talks/Tools/Slidy2/) provide one kind exhibition in Web Show the method for presentation file.HTML Slidy are a JavaScript storehouses, and user needs to write HTML according to given form, HTML Slidy are called to obtain the effect of Web presentation files afterwards.
Deck.js(http://imakewebthings.com/deck.js) HTML5 technologies are utilized, make Web presentation files With animation effect.Deck.js is also a JavaScript storehouse, and it make use of HTML5 correlation techniques so that online demonstration text Shelves are no longer limited to the individually displaying in order of multiple pages, and can make it that the element in document possesses animation effect so that Demonstrating effect is more preferable.
Reveal.js(http://lab.hakim.se/reveal-js/) Web presentation files structure is no longer only had Linear structure, and the internal structure two dimensionization of presentation file can be shown.Reveal.js supports presentation file to have two Layer bibliographic structure, the wherein page in top-level director is according to transversely arranged, and the subdirectory of top-level director is according to longitudinal arrangement, from And the document two dimensionization with two layers of bibliographic structure can be shown.
On the one hand, above-mentioned prior art is required for user to build HTML on request manually, it is impossible to automatic editor;The opposing party Face, above-mentioned technology is confined to single presentation file, it is impossible to record and express the relation between multiple relevant presentation documents.
The content of the invention
In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides a kind of association desktop demonstration subdocument based on Web Online presentation file edit methods, the desktop presentation file that this method specifies user full content or partial page association Enter in the online presentation file edited, form the online presentation file of new stratification tree structure.
The technical scheme that the present invention is provided is:
A kind of association desktop based on Web demonstrates the online presentation file edit methods of subdocument, and this method will include one Page or multiple documents of multipage presentation page are associated, and editor forms the online presentation file of stratification tree structure, including such as Lower step:
1.1 specify a presentation file to be used as main document MD in client Web browser;
1.2 specify a position in main document MD, associate a desktop presentation file D in this position, are used as the main document MD subdocument SD, the main document MD subdocument SD can be the parts in desktop presentation file D whole pages either D The page;
Main document MD described in the 1.3 and subdocument SD forms branched structure in the position, and editor integrates generation one The online presentation file RD of stratification tree structure.
The online presentation file edit methods of subdocument are demonstrated for the above-mentioned association desktop based on Web, further, After the new presentation file RD of generation, it may specify the MD or SD in the RD as main document, repeating said steps 1.2 and step 1.3, form the online presentation file with stratification tree structure.
In the online presentation file edit methods of the above-mentioned association desktop demonstration subdocument based on Web, specified when described When main document MD presentation page is multipage, the specified location in main document MD described in step 1.2 can be specified page Lower section between lower section or specified two pages.
Specified location associates a desktop presentation file D as subdocument in main document MD described in step 1.2, specific bag Include following steps:
1) a desktop presentation file is selected in client Web browser to upload onto the server;
2) it is the html format document page by desktop presentation file on-line conversion, includes successively:
4.1 obtain the file type of the desktop presentation file;
4.2 call desktop document content parsing storehouse corresponding with above-mentioned file type, and client desktop is obtained by parsing The internal structure and content of presentation file;
Partial page in 4.3 selection specified associations desktop documents or all pages in document;
4.4 support technology using HTML, obtain the corresponding html format of the client desktop presentation file specified associations page Document file page;
3) document file page of the corresponding html format of the above-mentioned client desktop presentation file specified associations page is added to The specified location of the main document MD html format document page, editor forms one and carried with above-mentioned client desktop presentation file The html format document page as subdocument new online presentation file.
Above-mentioned one desktop presentation file D of association is as in the method for subdocument, step 1) on the desktop presentation file Server is passed to particular by using the realization of .NET MVC frameworks.Step 2) the desktop presentation file file type bag Include PowerPoint presentation files and Open Document presentation files;Desktop document content corresponding with the file type It is respectively Open XML SDK and Apache Tika to parse storehouse.Step 3) editor is particular by using JavaScript Realize.
In the embodiment of the present invention, the above-mentioned online presentation file editing side that desktop demonstration subdocument is associated based on Web is utilized The system that method is realized includes the editor module of client and Web service module, document modular converter and the data of service end are deposited Module is stored up, wherein, the presentation file that many document associations are generated is rendered in a browser by the editor module, and rings Answer edit operation of the client user to presentation file;There is provided by the Web service module and obtain, upload and modification demonstration text The interface of shelves;Client desktop presentation file is converted to the online demonstration text of html format by the document modular converter Shelves;The new online presentation file that many document associations are formed is stored by data memory module.
Edit operation of the client user to presentation file, which is included in the document edited, selectes a position, and on A desktop presentation file is passed, is associated in this position.The file type of client desktop presentation file is demonstrated for PowerPoint Document, desktop document content parsing storehouse corresponding with file type is Open XML SDK;Editor module is particular by using JavaScript is realized is rendered and is responded the edit operation that user is carried out to presentation file to presentation file;Web service mould Block is realized by using .NETMVC frameworks and obtained with uploading presentation file.
Compared with prior art, the beneficial effects of the invention are as follows:
Multiple related presentation files can be carried out associated editor online and form stratification by the method that the present invention is provided Tree structure;User only needs web browser just easily can visually complete editor and the displaying of online presentation file, All or part of page of desktop presentation file can be associated in online presentation file, be conducive to presentation file producer or Audient has clear, vivid understanding and overall assurance to content described in presentation file and general frame.
Brief description of the drawings
Fig. 1 is the FB(flow block) of the method provided by the present invention.
Fig. 2 is the Module Division and module annexation figure of the embodiment of the present invention.
Fig. 3 is the schematic diagram of many document associations relations in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawings, the present invention, the model of but do not limit the invention in any way are further described by embodiment Enclose.
The key step of the method provided by the present invention flow chart as shown in Figure 1, including specify a document to be used as the main body of a court verdict first Shelves, then add a new desktop presentation file in specified location and are used as subdocument;Above step may be repeated, forming layer The tree structure of secondaryization.
In the present embodiment, the online presentation file edit methods of the association desktop demonstration subdocument based on Web make use of now Some presentation file content analysis extractive techniques, HTML5 multimedia shows technology, JavaScript dynamic web page techniques and Ajax Interaction technique, it realizes that system includes the editor module of client and Web service module, the document modular converter sum of service end According to memory module.Fig. 2 is the Module Division and module annexation figure of the embodiment of the present invention.Wherein editor module is responsible for browsing Presentation file is rendered in device, and responds edit operation of the user to document.Web service module is responsible for providing presentation file The interface for obtaining, uploading and changing.Document modular converter is responsible for providing the function of being converted to html document from desktop presentation file. The new online presentation file that data memory module is responsible for forming many document associations is stored.
When user starts to edit some online presentation file, the editor module of client is according to user's request, to service Device asks corresponding document content and incidence relation (general designation document data).The Web service module of server end receives client Request, and call data memory module to find out asked document data, document data is sent back to client afterwards.Client The editor module at end receives document data, is rendered, and shows user in a browser.
When user is that some main document adds a new desktop subdocument, the editor module of client, which is provided, uploads text The interface of part, and the files through network that user chooses is sent to server.The Web service module of server end is with being followed by The file that user uploads is received, and gives document module processing.Document modular converter is converted to the subdocument newly uploaded Html format, and it is added to the relevant position of original main document, form a new presentation file.New presentation file is transferred to Data memory module is permanently stored in disk.
The desktop presentation file that the present invention can upload user is converted to html format, including:
A1. the file type of desktop presentation file is obtained, corresponding storehouse parsing presentation file content is called;
A2. the technology supported using HTML, original drill is simulated such as SVG, DIV, CSS, Canvas in webpage mode Show the display content of document.
In the present embodiment, it is to come real using Open XML SDK to change PowerPoint form desktop documents into html document Existing, specific method is:
1) PowerPoint documents are parsed using PresentationDocument.Open () function, obtained PresentationDocument document objects;Using PresentationDocument respective attributes obtain page-size and Document background;
2) using the respective attributes and method of document object obtain all mother matrix id, the mother matrix page, acquiescence text style and All figures carried in mother matrix;
3) id and page object of all pages are obtained using the respective attributes and method of document object, from page object Figure, text and the picture in all pages are extracted in attribute;Each page is translated as in a HTML div tag, the page Each section of text is translated as a HTML div tag;Each picture is translated as an img label;The div marks of full page Label set CSS position attributes to be relative, each element in the page set position attributes, left attributes with Top attributes are set to the coordinate parsed from PowerPoint documents, you can realize and convert the PowerPoint documents For the consistent html document of outward appearance.
A new subdocument can be associated during user's edit line presentation file in the optional position of presentation file as right The explanation of the contents of the section, in detail narration or comment and analysis, including:
C1. user clicks on a certain position of document or presses shortcut;
C2. system prompts user uploads a desktop presentation file;
C3. presentation file is converted to the html format document page by system;
C4. the html format document page of the presentation file newly uploaded is added to the HTML of original presentation file by system The ad-hoc location of the format file page, forms the html format document page with the presentation file newly to upload and is used as son The new presentation file of document.
C5. user browser includes the presentation file newly added in selected position in the form of branch.
Addition subdocument can browsed to after addition presentation file is completed by browsing the Internet user of presentation file Position when see this new addition subdocument entrance, it is possible to being entered by keyboard direction or mouse action should Document is browsed.Main document can be similarly returned by similar operations to continue to browse downwards.
It can also continue to add its subdocument below the presentation file every page newly added, form tree structure.
In the present embodiment, page rendering and the operation of client user's browser are realized using JavaScript, Specific method is:
1) according to the id of presentation file in URL when the page is loaded, asked using XMLHttpRequest objects to server Corresponding presentation file;
2) after server response, the html format for being returned to server using appendChild functions is inserted in the page, is made Browser is obtained to render document;
In the present embodiment, the Web service module for being responsible for providing the interface that presentation file is obtained and uploaded uses .NET MVC Framework develops realization, and specific method is:
1) user's request from internet is received first, according to the content of request, is divided into acquisition document data and storage Two submodules of document data.
If 2) request is acquisition document data, then user can provide the identifier of a document, be denoted as ID;Framework is adjusted With data storage module, the document data of JSON types is obtained according to ID;
3) if request is that desktop presentation file is associated into a certain online presentation file, user can provide main document ID, the desktop presentation file newly associated and a position to be associated;Desktop presentation file data transfer is turned to document first Mold changing block is changed, and the form of desktop presentation file is converted into JSON forms;Afterwards the text for the JSON forms changed The position of shelves and insertion passes to data storage module and preserved.
Tables of data in the database on data storage module backstage includes following several row:
1) identity column, represents the unique mark of document;
2) data are arranged, and are the character string of JSON forms, are represented the actual content of document;
3) father's document identification is arranged, and the indications of this paper father's document is indicated, for representing tree-like Ziwen mark structure;
4) the attached location column of document, represents particular location of this document in the lower section of father's document, such as 1, in page 2 two Between, or in underface of page 5 etc.
Need to set up index to identity column and father's document column in tables of data.Stored up by adding new a line in database Document is deposited, while recording whether new document has father's document.When inquiring about document, root document is found according to identity column first, and Read the JSON data in data row;Then the data arranged according to father's document identification, find the identifier of all subdocuments;Adopt again Recursive mode is taken, the subdocument of subdocument is sought again respectively, the JSON data of each document are obtained respectively, these data are carried out It is integrated into the JSON data of an independent new document;Finally the JSON data of new document are returned.
Fig. 3 be in the embodiment of the present invention user by associating desktop presentation file in online presentation file based on Web The schematic diagram of many document associations relations generated as the method for subdocument.User A will be entitled《A》Presentation file upload to System.The presentation file contains A1, A2 and A3 page tri-;System receives the presentation file of A uploads, is converted into HTML lattice Formula is simultaneously stored;
User B is to system request《A》This presentation file, system issues the presentation file of html format B browser; User B will《B》This presentation file is uploaded and is attached to《A》Middle A1 and A2 page two centre.《B》Presentation file comprising B1 and B2 pages two;System analysis is simultaneously changed《B》For html format, and return to B;
User D is being browsed《A》When see addition in the middle of A1 and A2《B》, upload entitled《D》Demonstration text Shelves, are attached to《B》The lower section of middle B1 one pages, is used as related supplemental;
User E is being browsed《A》When see addition in the middle of A1 and A2《B》, upload entitled《E》Demonstration text Shelves, are attached to《B》The lower section of middle B1 one pages, is used as related supplemental.
It should be noted that the purpose for publicizing and implementing example is that help further understands the present invention, but the skill of this area Art personnel are appreciated that:Do not departing from the present invention and spirit and scope of the appended claims, various substitutions and modifications are all It is possible.Therefore, the present invention should not be limited to embodiment disclosure of that, and the scope of protection of present invention is with claim The scope that book is defined is defined.

Claims (6)

1. a kind of association desktop based on Web demonstrates the online presentation file edit methods of subdocument, methods described will include one Page or multiple documents of multipage presentation page are associated, and editor forms the online presentation file of stratification tree structure, including such as Lower step:
1.1 specify a presentation file to be used as main document MD in client Web browser;
1.2 specify a position in main document MD, associate a desktop presentation file D in this position, are used as main document MD's Subdocument SD, the main document MD subdocument SD can be the partial pages in desktop presentation file D whole pages either D Face;The specified location in main document MD associates a desktop presentation file D as subdocument, specifically includes following steps:
1) a desktop presentation file is selected in client Web browser to upload onto the server;
2) it is the html format document page by the desktop presentation file on-line conversion, includes successively:
4.1 obtain the file type of the desktop presentation file;
4.2 call desktop document content parsing storehouse corresponding with the file type, and obtaining client desktop by parsing demonstrates The internal structure and content of document;
Partial page in 4.3 selection specified associations desktop documents or all pages in document;
4.4 support technology using HTML, obtain the text of the corresponding html format of the client desktop presentation file specified associations page The shelves page;
3) document file page of the corresponding html format of the client desktop presentation file specified associations page is added to main document MD The html format document page specified location, editor formed one carry with the HTML lattice of above-mentioned client desktop presentation file Formula document file page as subdocument new online presentation file;
Main document MD described in the 1.3 and subdocument SD forms branched structure in the position, and editor integrates one level of generation Change the online presentation file RD of tree structure.
2. online presentation file edit methods as claimed in claim 1, it is characterized in that, after new presentation file RD is generated, refer to MD or SD in the fixed RD is as main document, repeating said steps 1.2 and step 1.3, and being formed has stratification tree structure Online presentation file.
3. online presentation file edit methods as claimed in claim 1, it is characterized in that, when the demonstration of the main document MD specified When the page is multipage, position described in step 1.2 is the lower section between the lower section of main document MD specified page or specified two pages.
4. online presentation file edit methods as claimed in claim 1, it is characterized in that, step 1) the desktop presentation file upload Realized to server particular by use .NET MVC frameworks.
5. online presentation file edit methods as claimed in claim 1, it is characterized in that, step 2) the desktop presentation file text Part type includes PowerPoint presentation files and Open Document presentation files;Desktop corresponding with the file type Document content parsing storehouse is respectively Open XML SDK and Apache Tika.
6. online presentation file edit methods as claimed in claim 1, it is characterized in that, step 3) editor is particular by making Realized with JavaScript.
CN201410849286.0A 2014-12-29 2014-12-29 Association desktop based on Web demonstrates the online presentation file edit methods of subdocument Expired - Fee Related CN104516865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410849286.0A CN104516865B (en) 2014-12-29 2014-12-29 Association desktop based on Web demonstrates the online presentation file edit methods of subdocument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410849286.0A CN104516865B (en) 2014-12-29 2014-12-29 Association desktop based on Web demonstrates the online presentation file edit methods of subdocument

Publications (2)

Publication Number Publication Date
CN104516865A CN104516865A (en) 2015-04-15
CN104516865B true CN104516865B (en) 2017-09-19

Family

ID=52792191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410849286.0A Expired - Fee Related CN104516865B (en) 2014-12-29 2014-12-29 Association desktop based on Web demonstrates the online presentation file edit methods of subdocument

Country Status (1)

Country Link
CN (1) CN104516865B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108241602A (en) * 2016-12-26 2018-07-03 北京奇虎科技有限公司 A kind of online method and apparatus for making PowerPoint
CN109992335A (en) * 2017-12-29 2019-07-09 珠海金山办公软件有限公司 A kind of method and device showing lantern slide background object
CN109408783B (en) * 2018-09-06 2023-05-30 广州城市信息研究所有限公司 Electronic document online editing method and system
CN109559313B (en) * 2018-12-06 2021-11-12 网易(杭州)网络有限公司 Image processing method, medium, device and computing equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100547590C (en) * 2005-12-05 2009-10-07 北京书生国际信息技术有限公司 DPS (Document Processing System)
US20080215966A1 (en) * 2007-03-01 2008-09-04 Microsoft Corporation Adaptive server-based layout of web documents
US8892994B2 (en) * 2011-03-18 2014-11-18 Google Inc. System, method, and architecture for displaying a document
CN102637193B (en) * 2012-02-23 2014-12-03 北京航空航天大学 Webpage instant collaborative browsing method based on DOM (document object model) and XMPP (extensible messaging and presence protocol)
CN102663056B (en) * 2012-03-29 2014-05-28 北京奇虎科技有限公司 Method and device for displaying picture elements
US9342323B2 (en) * 2012-08-09 2016-05-17 Google Inc. Browser-level background page for providing multiple views
CN103678698A (en) * 2013-12-27 2014-03-26 福建福昕软件开发股份有限公司北京分公司 Method and device for improving on-line browsing loading speed of PDF document

Also Published As

Publication number Publication date
CN104516865A (en) 2015-04-15

Similar Documents

Publication Publication Date Title
US20220237255A1 (en) System and method for the creation and update of hierarchical websites based on collected business knowledge
US20130326333A1 (en) Mobile Content Management System
CN106462555A (en) Methods and systems for web content generation
CN104123269B (en) A kind of publication semi-automatic generation method based on template and system
CN108196880A (en) Software project knowledge mapping method for automatically constructing and system
CN104516865B (en) Association desktop based on Web demonstrates the online presentation file edit methods of subdocument
CN108140012A (en) Realize the method and system of Web content generation What You See Is What You Get (WYSIWYG)
CN101025738A (en) Template-free dynamic website generating method
CN103136317A (en) Implement method of on-line examination and approval informatization of engineering contracts in engineering management system
CN102360296A (en) WEB-based online form development tool
CN102646039A (en) Software interface generating system and method based on extensible markup language (XML) Schema
CN104142985B (en) A kind of semi-automatic vertical reptile Core Generator and method
CN102065114A (en) Method and device for mobile terminal to access webpage
CN107231415A (en) The network storage method and device of picture
CN103365877B (en) Method and server to establishing catalogue after webpage progress transcoding
CN105912613A (en) Website template quick migration method
Whittaker Producing for Web 2.0: a student guide
Olfat et al. A GML-based approach to automate spatial metadata updating
JP6022964B2 (en) Homepage creation method and homepage creation system
KR20050071720A (en) Methods for dynamically building the home page and apparatus embodied on the web therefor
CN105447027A (en) Acquisition method and device of PDF (portable document format) document directory
Niu Hierarchical relationships in the bibliographic universe
Knutzen Unbinding the atlas: Moving the NYPL map collection beyond digitization
Huettmann 4 The Global Need for, and Appreciation of, High-Quality Metadata in Biodiversity
CN106599265B (en) Multimedia book data organization system and method for fragment service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170919

Termination date: 20211229

CF01 Termination of patent right due to non-payment of annual fee