Java development to realize word online editing and circulation

The OA document circulation system is mainly used to process various internal and external documents in the daily work of the enterprise, including the drafting, approval, circulation, announcement, and filing of documents. After the most senior personnel confirm that there is no error, they can conduct operations such as reviewing and publishing the document, and finally circulate it among the relevant personnel. According to the flow mode of documents in the OA system and other office systems, the PageOffice component provides the file open mode and related practical functions corresponding to each link of the document flow, so as to better meet the needs of the OA system. Below we discuss the main ways of using PageOffice in the OA system in detail.

1. A brief process of documents in the OA system

  

2. Detailed discussion of each link of document circulation

  1. Draft the document:

       The first link of general document circulation is to draft documents. In this link, clerks need to edit documents freely without leaving any traces. Therefore, PageOffice has developed a normal editing mode (docNormalEdit) for documents for this link. In this mode, the user can freely edit the content of the document without leaving any traces.

PageOfficeCtrl poCtrl1 = new PageOfficeCtrl(request);
poCtrl1.webOpen(filePath, OpenModeType.docNormalEdit, userName);

  2. Leader's review

      Generally, in the process of document circulation, leaders at all levels will modify and add comments to the document drafted by the clerk in the first step. At this time, any revisions made to the document must be preserved in the form of traces, so as to facilitate the update. Senior leaders conduct the review, so PageOffice developed a mandatory document mark mode (docRevisionOnly). In this mode, any revisions made by users to the document will be recorded; revisions made by different users to the document will be automatically marked with different colors; users cannot accept or reject any revisions made by other users to this document; revisions The record can display the name of the revisioner, revision time and revision content.

PageOfficeCtrl poCtrl1 = new PageOfficeCtrl(request);
poCtrl1.webOpen(filePath, OpenModeType.docRevisionOnly, userName);

  3. Clerk clearance

     In this link, the clerk will clean up the document, including rejecting or accepting revisions, and removing all traces and handwritten content of the document (this mode is generally used to open the document in the process of electronically signing the document), so this The link will use PageOffice's manuscript review mode (docAdmin), in this mode, users can clean up various revisions, modifications, annotations and handwritten annotations left in the document circulation process; users can show or hide revision traces; users can Edit documents freely without leaving a trace; users can also move and delete anyone's handwritten annotations.

PageOfficeCtrl poCtrl1 = new PageOfficeCtrl(request);
poCtrl1.webOpen(filePath, OpenModeType.docAdmin, userName);

  4. Formal release

      The last link of the general document circulation is the official document publishing link. In this link, users do not need to make any modifications to the document, so the read-only mode (docRealOnly) of PageOffice is used to open the document. In this mode, the user can only read the document. The content of the document, no modification of the document can be made. If you cooperate with PageOffice's functions such as prohibit copying, prohibit saving as, prohibit printing, etc., you can also realize the safe online browsing function of documents.

PageOfficeCtrl poCtrl1 = new PageOfficeCtrl(request);
poCtrl1.webOpen(filePath, OpenModeType.docReadOnly, userName);

3. Other related functions

  1. Display hidden traces: (traces generally refer to keyboard comments and document content deleted or inserted by users in trace mode, these are collectively referred to as traces, excluding handwritten comments)

    document.getElementById("PageOfficeCtrl1").ShowRevisions = false|true;

  2. Leaders circle reading, handwritten comments:

    document.getElementById("PageOfficeCtrl1").HandDraw.Start();

  3. Display handwritten annotations in layers:

    document.getElementById("PageOfficeCtrl1").HandDraw.ShowLayerBar();

  4. Insert a keyboard annotation:

    document.getElementById("PageOfficeCtrl1").WordInsertComment();

  5. Accept all amendments:

    document.getElementById("PageOfficeCtrl1").AcceptAllRevisions();

  6. Reject all amendments:

    document.getElementById("PageOfficeCtrl1").Document.RejectAllRevisions();

  7. Insert the stamp:

    document.getElementById("PageOfficeCtrl1").ZoomSeal .AddSeal();

  8.  Insert a handwritten signature stamp:

    document.getElementById("PageOfficeCtrl1").ZoomSeal. AddHandSign();

  9. Save HTML as:

    document.getElementById("PageOfficeCtrl1").WebSaveAsHTML();

  10. Save PDF as:

    document.getElementById("PageOfficeCtrl1").WebSaveAsPDF();

4. Summary

  In summary, PageOffice has developed corresponding modes according to the characteristics of documents in different process links in OA office systems or other document office systems, and also provides display hidden traces, handwritten annotations, hierarchical display of handwriting, signature and seal, save as Various functions such as control and save control allow developers to only focus on the business logic development of their own systems. It is very simple and convenient to use PageOffice to realize control and functions under different process links. The code is clear and clear, which greatly saves system development. time and improve development efficiency.

5. Source code download

  https://download.csdn.net/download/zi_wu_xian/10400267

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325877266&siteId=291194637