Point Poly Weboffice Components Introduction

Source: Internet
Author: User
Tags temporary file upload

Introduction of Weboffice and its related technologies

1,Weboffice component is a support for online document editing middleware, currently supported by the main file format:Word,Excel,wps and other editing documents.

What is middleware? Middleware is a standalone system software or service program that allows sharing of resources between different technologies. Middleware on the operating system, network and database, the application of the lower layer of software, the overall role is to be in their own upper-level application software to provide a running and development environment, to help users to develop and integrate the complex application software flexibly and efficiently. such as Weboffice connect The resource sharing between the Web app itself and the local office software.

Figure 1-1

2,Weboffice is the standard ActiveX components, support in b/S,C/S application development platform embedded integration, is based on Microsoft's Dsoframer control package development, has provided us with a good digital certificate, can be used directly.

What is ActiveX? An ActiveX control is also called an OLE control or an OCX control, which is a software component or object that can be inserted into a Web page or other application. With ActiveX, you can easily and conveniently insert multimedia effects, interactive objects, and complex programs into your Web pages. However , only IE can recognize ActiveX controls, so it needs to be done by plug-in technology if the other browser kernel needs to be identified. such as the Ffactivex-setup-r39.exe plugin provided by Weboffice .

What is Dsoframer? Dsoframer Microsoft offers an open source ActiveX control for online editing, calling Word, Excel,PowerPoint, and more .

What is a digital certificate? A digital certificate is a file that is digitally signed by a certificate authority (CA institution) that contains public key owner information and a public key. The simplest certificate contains a public key, a name, and a digital signature for the Certificate Authority Center. The role of digital certificates is to ensure the confidentiality of information transmission, the integrity of data exchange, the non-repudiation of sending information, the certainty of the identity of the trader. An important feature of digital certificates is that they are only valid for a specific period of time.

What is digital signature technology? The message is computed by a hash algorithm agreed by both parties to obtain a fixed-digit message digest. Mathematically guaranteed: As long as any change in the message, the recalculation of the digest will be the value of the original value does not match. This guarantees the non-change of the message.

The digest value of the paper is encrypted with the sender's private key (there is no problem in decrypting the plaintext, an unreadable "plaintext" is obtained), which is then sent to the receiver along with the original message, and the "encrypted" message is called a digital signature.

When the receiver receives the digital signature, the original message is computed with the same hash algorithm, and then the digital signature is decrypted with the public key of the sender, and the reported digest is compared with the value obtained. If equal, the message does come from the alleged sender, because only the signer with the private key can generate the signature through the cryptographic digest, so it is secure and non-repudiation.

Then why is the digest to be encrypted instead of encrypting the original message? This is because RSA plus decryption is time-consuming, the larger the encrypted message, the more time it takes, so smart humans encrypt its digest (because the digest is much smaller than the original message), it can still play the same role. This is why a message digest is more.

The digital Signature algorithm relies on the public key cryptography technology to realize. In public key cryptography, each user has a pair of keys: a public key and a private key. The public key is free to publish, but the private key is kept secret, and one requirement is that it is impossible to derive the private key from the public key. Here is a simple example of the application process of digital signatures: If Alice is now transmitting digital information to Bob, in order to guarantee the confidentiality, authenticity, integrity and non-repudiation of the information transmitted, it is necessary to digitally encrypt and sign the transmitted information, which is:

1.Alice ready to transmit the digital information (clear text);

2.Alice hashes The numeric information and obtains a summary of the information;

3.Alice Encrypt the information digest with its own private key get Alice's digital signature, and attach it to the digital information;

4.Alice randomly generates an encryption key, and uses this password to encrypt the information to be sent to form ciphertext;

5.Alice uses Bob's public key to encrypt the cryptographic key that was just randomly generated, and sends the encrypted des key along with the cipher to Bob;

6.Bob received the cipher sent by Alice and encrypted des Key, first with their own private key to decrypt the encrypted des Key, to get Alice randomly generated encryption key;

7.Bob then uses the random key to decrypt the ciphertext received, obtains the digital information of the plaintext, then discards the random key;

8.Bob use Alice's public key to decrypt Alice's digital signature and get the information digest;

9.Bob uses the same hashing algorithm to perform a hash operation on the received plaintext, and obtains a new information digest;

10.Bob compares the summary of information received with the summary of the newly generated information and, if so, indicates that the information received has not been modified.

3. The comparison of the points of Weboffice and Zhou Zheng pageoffice.

    • Same point:

1) You can edit the basic Office document Format (Word,Excel, PowerPoint,and so on).

2) Open and save the document with real-time progress hints.

3) Replaceable interface theme, support a variety of interface styles.

4)Word revision traces, handwritten annotations, signatures, set broken and protection functions.

5) Can control the document permissions through the JS script, invoke, delete the local document, upload the Web server function.

    • Difference:

1) Free trial version of Zhou Zheng Pageoffice in the Open, save the document when the real-time progress prompt has Zhou Zheng Copyright trademark, and prompted to use the paid version. Dot Poly Weboffice is not.

2) Point Poly Weboffice components only rely on the front-end scripting technology language, Zhuo Zheng pageoffice need to cooperate with the back-end script, such as the backend using the Java language needs to download the corresponding Pageoffice support jar Package and write the appropriate Java code to support the use.

3)The free version of Weboffice is free of charge, and Pageoffice's trial version is only available for a 3-month trial period.

4)Pageoffice can realize concurrency control of reading server documents,Weboffice is not possible.

How does the weboffice work?

1. First download the EXE installation package and the Cab component package. EXE installation package for the client manual installation,1-1;Cab component package for system integration, placed in the server through the code to implement the client through IE automatic installation,2-2 in the codebase property (but only IE can be recognized, but also dependent on the user's IE security level settings and sometimes fail.

Figure 2-1

Figure 2-2

2, use the <Object> tag as the carrier of the component in the webpage, and use js to get the reference of the object (2-2), can call the method that it provides.

3. Weboffice can open a local document or download a document from the server to open it. The principle of downloading documents from the server is to download the server's document to a local default folder (you can call the interface to get its path), and then open the local document.

4,Weboffice can call Office Save, Save as interface, but generally we want to save the document to the server, the principle of the call Weboffice the corresponding interface to the default path of the temporary file upload to the server, You can also pass some extra parameters in the past, the server receives a result after it is received, and the interface returns its result, and if the server does not return a result, the interface returns a default result of success.

5, it should be noted thatWeboffice is built into an HTTP engine, so by calling Weboffice interface to interact with the server (including upload, download, etc.), is actually called its own HTTP engine sent by the request. This means that the session object for this request is not the same as the session object that corresponds to the current page . At this time to call the original session information or need to determine the relevant permissions operation, you need to deal with, such as self-built a session pool.

Point Poly Weboffice Components Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.