CN108681530A - A kind of official document generation method and system based on Web - Google Patents
A kind of official document generation method and system based on Web Download PDFInfo
- Publication number
- CN108681530A CN108681530A CN201810421893.5A CN201810421893A CN108681530A CN 108681530 A CN108681530 A CN 108681530A CN 201810421893 A CN201810421893 A CN 201810421893A CN 108681530 A CN108681530 A CN 108681530A
- Authority
- CN
- China
- Prior art keywords
- official document
- template
- document template
- official
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Document Processing Apparatus (AREA)
Abstract
The present invention provides a kind of official document generation method and system based on Web, the method includes:S1 shows the target official document template when user's operation of selection target official document template from official document template list according to the layout of each element and format in the target official document template;S2 generates official document according to the user when the user clicks the operation for generating button to the edit operation result of each control in the target official document template.The present embodiment is based on the target official document template that user selects, user is by the control in the target official document template to display into edlin, the content of official document needed for input, automatically generate the official document to comply with the national standard requirements, it simplifies official document and writes work, official document is provided and writes efficiency, use cost is low, and does not allow error-prone.
Description
Technical field
The invention belongs to Automated Technology in Office field, more particularly, to a kind of official document generation method based on Web and
System.
Background technology
《Party and government offices' official documents format》It is by State Administration for Quality Supervision and Inspection and Quarantine and national standardization administration committee
Publication about the general paper of Party and government offices' official document, typesetting and printing binding requirements, the states such as each element rules of arrangement of official documents format
Family's standard is the important evidence of Party and government offices official documents standardization, is suitable for the official document of Party and government offices' systems at different levels hair, other organs and
The official document of unit is referred to execute.
《Party and government offices' official documents format》Define version head in official document, main body, note, attachment, version note, the page number and horizontally-arranged table
Etc. call formats such as the position of each element, layout, font, font size and patterns.It is first marked according to country currently, staff is general
The official documents format of alignment request works out official document template using office software and software for composing, define and adjust each element position,
The formats such as layout, font, font size and pattern.When needing to write and issue formal official document, into each element of official document template
Actual official document content is filled in, to complete writing for official document.
Currently, office software, such as Word and WPS are although widely used, but since the division format in national standard is wanted
It asks word processor difficult to use to realize, such as version note, horizontally-arranged table and its page number, is wanted so that writing and meeting national standard
The official document document asked has very high difficulty.Although the software for composing typesetting of profession is powerful, national mark can be realized easily
The various formats required in standard, but the software for composing of profession, use scope is very small, the skilled personnel for using software for composing
Considerably less, purchase cost and learning cost are very high.
Therefore, writing the official document to comply with the national standard requirements needs staff to have very office software and software for composing
High using is horizontal, the skilled various functions for grasping software, the implementation method of the format defined in grasp standard, and needs to spend
Plenty of time is write, it is easy to mistake occurs.
Invention content
To overcome the problems, such as above-mentioned existing official document generation method of high cost, time-consuming and laborious and easy error or at least portion
It solves the above problems with dividing, the present invention provides a kind of official document generation method and system based on Web.
According to the first aspect of the invention, a kind of official document generation method based on Web is provided, including:
S1, when user's operation of selection target official document template from official document template list, according to the target official document mould
The layout of each element and format show the target official document template in plate;
S2, when the user clicks the operation for generating button, according to the user to each in the target official document template
The edit operation result of control generates official document.
Specifically, further include before the step S1:
S01 defines one or more prefabricated official document templates according to default official documents format based on XML language;
S02 generates self-defined official document mould according to user to the edit operation result of each element in the prefabricated official document template
Plate;
S03 generates official document template list according to the prefabricated official document template and the self-defined official document template.
Specifically, the step S01 is specifically included:
According to default official documents format, Template Information, template head in the prefabricated official document template are defined based on XML language
It is one or more in portion, main template body and attachment;
Wherein, the Template Information includes one or more in title, type and description;
The template header include the book size of official document, margin away from, type page size, font, font size, line number, number of words, face
It is one or more in color and the page number;
The main template body includes version head, main body and version note;
The version head includes part number, level of confidentiality, security deadline, urgency level, issued organ's mark, dispatch code, signed by
With it is one or more in version head cut-off rule;
The main body include title, Zhu Song organs, text, attachment explanation, issued organ's signature, the written date, seal and
It is one or more in note;
Version note include version score secant, make a copy for organ, print and distribute organ and print and distribute one or more in the date.
Specifically, include deleting element, the prefabricated element of increase to the edit operation of each element in the target official document template
It is one or more in element text with inputting.
Specifically, further include after the step S02:
The prefabricated official document template and the self-defined official document template are stored in official document template database;Wherein, institute
It is relevant database to state official document template database;
It is when the user clicks when template preview button, template preview button in the official document template database is corresponding prefabricated
Official document template or self-defined official document template as preview official document template, according to the layout of each element in the preview official document template,
Format and corresponding virtual content generate preview picture;
Wherein, the template preview button is corresponded with the prefabricated official document template or the self-defined official document template;
Element in the preview official document template and the advance associated storage of the virtual content.
Specifically, the user includes input text, setting to the edit operation of each control in the target official document template
Text structure ordinal number, insert pictures, the position that picture is arranged and size are inserted into official seal and signature stamp, the setting work and institute
The position for stating signature stamp, the size that the work and the signature stamp is arranged are inserted into table, the horizontally-arranged table of editor, are inserted into attachment
It is one or more in save button with being arranged.
Specifically, the step S2 is specifically included:
When the user clicks the operation for generating button, according to the user to each control in the target official document template
Edit operation as a result, generate the official document of word formats based on word operate interfaces, and by the official document from word format conversions
For PDF format.
According to the second aspect of the invention, a kind of official document generation system based on Web is provided, including:
Display module is used for when user's operation of selection target official document template from official document template list, according to described
The layout of each element and format show the target official document template in target official document template;
Generation module is used for when the user clicks the operation for generating button, according to the user to target public affairs
The edit operation result of each control generates official document in literary template.
According to the third aspect of the invention we, a kind of official document generation equipment based on Web is provided, including:
At least one processor, at least one processor and bus;Wherein,
The processor and memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to
Order is able to carry out foregoing method.
According to the fourth aspect of the invention, a kind of non-transient computer readable storage medium is provided, for storing such as preceding institute
State the computer program of method.
The present invention provides a kind of official document generation method and system based on Web, the target official document that this method is selected with user
Based on template, user, into edlin, inputs the content of required official document by the control in the target official document template to display, from
It is dynamic to generate the official document to comply with the national standard requirements, it simplifies official document and writes work, official document is provided and writes efficiency, use cost is low,
And do not allow error-prone.
Description of the drawings
Fig. 1 is the official document generation method overall flow schematic diagram provided in an embodiment of the present invention based on Web;
Fig. 2 is self-defined official document template interface signal in the official document generation method provided in an embodiment of the present invention based on Web
Figure;
Fig. 3 is that the official document provided in an embodiment of the present invention based on Web generates overall system architecture schematic diagram;
Fig. 4 is that the official document provided in an embodiment of the present invention based on Web generates equipment overall structure schematic diagram.
Specific implementation mode
With reference to the accompanying drawings and examples, the specific implementation mode of the present invention is described in further detail.Implement below
Example is not limited to the scope of the present invention for illustrating the present invention.
A kind of official document generation method based on Web is provided in one embodiment of the invention, and Fig. 1 is the embodiment of the present invention
The official document generation method overall flow schematic diagram based on Web provided, this method include:S1, when user is from official document template list
When the operation of middle selection target official document template, according to the layout of each element in target official document template and format display target official document mould
Plate;
Wherein, official document template list is the list for including multiple official document templates, is shown in the Web page at Web browser end
Show official document template list.The information such as the title, preview picture and description of official document template are shown in list.User is official document coder
Member.The element of one of official document template and the layout of element and format can be selected and viewed in user.Target official document template
The required official document template of official document is generated for user, including national standard《Party and government offices' official documents format》Specified in must have
Element, such as version head, main body and version note.When user writes official document, an official document template is selected from official document template list,
The official document template that user is selected from official document template list is as target official document template, to use target official document template to write public affairs
Literary text.Target official document template is shown in a manner of editable, specifically HTML5, CSS and JavaScript is used to carry out
It realizes.Content, layout and patterns of the HTML5 and CSS with element in presentation target official document template, and various controls are provided.
JavaScript realizes the function of operation button for realizing the service logic of official document editor, according to the variation tune of feature content
The display effect of whole HTML5, to the editting function of the element of display target official document template and each element in Web page.
S2 when generating the operation of button when the user clicks, grasps the editor of each control in target official document template according to user
Make result and generates official document.
Wherein, user such as inputs in main body by the control to realizing each element in target official document template into edlin
Official document text etc., user can click official document preview button and carry out preview to official document after edit operation, check the interior of official document
Hold and is laid out.The operation of official document preview button, the result that user edits and target official document template are clicked with specific reference to user, it will be public
Text exports as Word document, PDF document or printing, to carry out preview.It is real in a manner of file download using HTTP and HTML
The export function of existing official document.The use of HTTP and HTML in the form of Web page include in official document writer by PDF document
The printing function at Web browser end is called at Web browser end using JavaScript program code.
Based on the target official document template that user selects, user passes through in the target official document template to display the present embodiment
Control into edlin, input needed for official document content, automatically generate the official document to comply with the national standard requirements, simplify official document volume
Work is write, official document is provided and writes efficiency, use cost is low, and does not allow error-prone.
On the basis of the above embodiments, further include before step S1 described in the present embodiment:S01, according to default official document
Format defines one or more prefabricated official document templates based on XML language;
Wherein, it is national standard to preset official documents format《Party and government offices' official documents format》Specified in official documents format.XML
(eXtensible Markup Language, extensible markup language) is a kind of for marking electronic document to make it have structure
The markup language of property.Prefabricated official document template is the official document template formulated in advance using XML.According to national standard《Party and government offices are public
Literary format》Specified in number, pre-establish " individually style of writing ", " joint style of writing ", " band attachment ", " having horizontally-arranged table ", " letter
The prefabricated official document template of several standards such as letter ", " order " and " summary ".Book size and the space of a whole page of prefabricated official document template etc. are complete
Meet the requirement of national standard.
S02 generates self-defined official document template according to user to the edit operation result of each element in prefabricated official document template;
Wherein, self-defined official document template is user based on prefabricated official document template, to prefabricated official document template into edlin
It is formed with fine tuning.Such as be not required in prefabricated official document template the element having according to actual needs carry out increase and
It deletes.
S03 generates official document template list according to prefabricated official document template and self-defined official document template.
Wherein, prefabricated official document template and self-defined official document template are maintained in official document template database.Official document template number
Relevant database is used according to library, the title of prefabricated official document template and self-defined official document template is stored, describes and whether with attachment
Etc. essential informations and official document preview picture, the element of official document template and its layout and format.From official document template database
Prefabricated official document template and self-defined official document template are extracted, and includes in Web page, for selection by the user with tabular form by it
With use.
On the basis of the above embodiments, step S01 described in the present embodiment specifically includes:According to default official documents format,
One kind in Template Information, template header, main template body and attachment in prefabricated official document template or more is defined based on XML language
Kind;Wherein, Template Information includes one or more in title, type and description;Template header include official document book size,
Margin away from, it is one or more in type page size, font, font size, line number, number of words, color and the page number;Main template body includes version
Head, main body and version note;The version head include part number, level of confidentiality, security deadline, urgency level, issued organ mark, dispatch code,
It is one or more in signed by and version head cut-off rule;Main body includes title, Zhu Song organs, text, attachment explanation, issued organ
It is one or more in signature, written date, seal and note;Version note include version score secant, make a copy for organ, print and distribute organ and
It prints and distributes one or more in the date.
Wherein, book size refers to the length and width of official document, and main template body is the major part of official document template, is that user can be with
The part seen defines the rules of arrangement of official document element.Main body is the main contents of official document.Version note is positioned at official document last page
Type page lower edge.
On the basis of the above embodiments, include deleting to the edit operation of each element in target official document template in the present embodiment
Except element, increases prefabricated element and input one or more in element text.
Specifically, to the edit operation of each element in target official document template be only limitted to delete element, input element text and
Increase one or more in prefabricated element, prefabricated element is the element formulated previously according to national standard.It cannot increase other
Element, and change the layout and format of element.User, into edlin and fine tuning, deletes unnecessary portion to prefabricated official document template
Sub-element such as deletes " urgency level ";Predefined official document content is inputted, " issued organ ", " documment number " are such as inputted, to
Form self-defined official document template.After deleting partial element, each element of self-defined official document template and its layout will be carried out automatically
Adjustment, to meet《Party and government offices' official documents format》In call format.As shown in Fig. 2, X is identified as the mark for deleting element in Fig. 2
Know, the element can be deleted by clicking the marks of the X on the right side of each element, and a sample is identified as input factor content mark, can be to element
Content is modified or is inputted.
On the basis of the above embodiments, further include after step S02 described in the present embodiment:By prefabricated official document template and
Self-defined official document template is stored in official document template database;Wherein, official document template database is relevant database;Work as user
When clicking template preview button, by the corresponding prefabricated official document template of template preview button in official document template database or self-defined public affairs
Literary template is given birth to as preview official document template according to the layout of each element, format and corresponding virtual content in preview official document template
At preview picture;Wherein, template preview button is corresponded with prefabricated official document template or the self-defined official document template;Preview is public
Element in literary template and the advance associated storage of virtual content.
Specifically, user can carry out preview to prefabricated official document template and self-defined official document template, check prefabricated official document mould
The content and layout of plate and self-defined official document template.Template preview function is needed in prefabricated official document template and self-defined official document template
After being saved in official document template database, preview could be executed.On Web page interface, template preview button is provided, it is each pre-
There are one template preview buttons for official document template processed and self-defined official document template correspondence.Template in the official document template database is pre-
The corresponding prefabricated official document template of button of looking at or self-defined official document template are as preview official document template.Template preview when the user clicks is pressed
When button, the element and its layout, format of preview official document template are extracted from official document template database, and from trend preview official document mould
The virtual contents such as some texts and time are filled in the element of plate, the preview official document template that will fill in virtual content exports as
Word document, PDF document or printing carry out preview.Virtual content is the content of text assumed, for needing to input text
Element is filled, to simulate true official document effect.Each needing the element for inputting text to correspond to, there are one virtual contents.It cuts
The homepage for taking the official document electronic document of derived PDF format, is converted to PNG pictures, forms the preview picture of official document template.It will be pre-
Picture of looking at is stored in as a part for official document template information in official document template database.
On the basis of the various embodiments described above, user described in the present embodiment is to each control in the target official document template
Edit operation includes inputting text, setting text structure ordinal number, insert pictures, the position that picture is arranged and size, being inserted into official seal
With signature stamp, the position of the setting work and the signature stamp, the size that the work and the signature stamp is arranged, insertion table
Lattice, the horizontally-arranged table of editor are inserted into attachment and are arranged one or more in save button.
Specifically, the target official document template selected according to user reads target official document template from official document template database
Title, element and its layout and format, the element and layout of official document are shown in Web page.It is provided in Web page simultaneously
Text editing control, for inputting the content of each elements such as the version head of official document, main body, version note, and the text of input official document.
User based on text editing control input text, setting text structure ordinal number, insert pictures, the position that picture is set and size,
It is inserted into official seal and signature stamp, the position that the work and the signature stamp are set, the big of the work and the signature stamp is set
Small, insertion table, is inserted into attachment and is arranged one or more in save button the horizontally-arranged table of editor.Wherein, text knot is set
Structure ordinal number such as " one ", " (one) ", " 1. " or " (1) ") and its font.Table edit control is provided in Web page to edit cross
Arrange table.Horizontally-arranged table occupies alone one page or multipage, and paper is that laterally, page number position is identical as vertical paper position.Table
Edit control realized using HTML5 and JavaScript, provides the merging of table, the deletion (row/column) of row and column, row and column
It is inserted into and adjusts the Table edits functions such as Width x Height.The format of attachment can be picture, Word file or pdf document.
On the basis of the various embodiments described above, step S2 is specifically included in the present embodiment:Button is generated when the user clicks
When operation, according to user to the edit operation of each control in target official document template as a result, generating word based on word operate interfaces
The official document of format, and by official document from word format conversions be PDF format.
Specifically, save button is provided in Web page, for the text of generation to be saved in background data base.It protects
It deposits button and has the function that timing automatically saves.According to user selection target official document template and input official document body matter,
On program backstage using the Word operate interfaces of customization, the official document of Word format is generated, and the official document of Word format is stored in
Program backstage.Using the Word operate interfaces of customization, the official document of generation is converted into PDF format from Word format.
A kind of official document generation system based on Web is provided in another embodiment of the present invention, and Fig. 3 is that the present invention is implemented
The official document based on Web that example provides generates overall system architecture schematic diagram, which includes display module 1 and generation module 2;Its
In:
Display module 1 is used for when user's operation of selection target official document template from official document template list, according to target
The layout of each element and format display target official document template in official document template;
Wherein, official document template list is the list for including multiple official document templates, is shown in the Web page at Web browser end
Show official document template list.The information such as the title, preview picture and description of official document template are shown in list.User is official document coder
Member.The element of one of official document template and the layout of element and format can be selected and viewed in user.Target official document template
The required official document template of official document is generated for user, including national standard《Party and government offices' official documents format》Specified in must have
Element, such as version head, main body and version note.When user writes official document, an official document template is selected from official document template list
The official document template that user selects from official document template list is as target official document template, to use target official document template to write official document
Text., display module 1 will show target official document template in a manner of editable, specifically use HTML5, CSS and
JavaScript is realized.Content, layout and patterns of the HTML5 and CSS with element in presentation target official document template, and carry
For various controls.JavaScript realizes the function of operation button, according in function for realizing the service logic of official document editor
The display effect of the variation adjustment HTML5 of appearance, to the volume of the element of display target official document template and each element in Web page
Collect function.
When generation module 2 is for the operation of generation button when the user clicks, according to user to respectively being controlled in target official document template
The edit operation result of part generates official document.
Wherein, user such as inputs in main body by the control to realizing each element in target official document template into edlin
Official document text etc., user can click official document preview button and carry out preview to official document after edit operation, check the interior of official document
Hold and is laid out.The operation of official document preview button, the result that user edits and target official document template are clicked with specific reference to user, it will be public
Text exports as Word document, PDF document or printing, to carry out preview.Generation module 2 is using HTTP and HTML with file download
Mode realize the export function of official document.The use of HTTP and HTML in the form of Web page include being write in official document by PDF document
The printing function at Web browser end is called at the Web browser end of personnel using JavaScript program code.
Based on the target official document template that user selects, user passes through in the target official document template to display the present embodiment
Control into edlin, input needed for official document content, automatically generate the official document to comply with the national standard requirements, simplify official document volume
Work is write, official document is provided and writes efficiency, use cost is low, and does not allow error-prone.
On the basis of the above embodiments, Prefabricated block in the present embodiment, for according to official documents format is preset, being based on XML
The one or more prefabricated official document templates of language definition;Custom block is used for according to user to each element in prefabricated official document template
Edit operation result generate self-defined official document template;Extraction module, for according to prefabricated official document template and self-defined official document mould
Plate generates official document template list.
On the basis of the above embodiments, Prefabricated block is specifically used in the present embodiment:According to default official documents format, it is based on
XML language defines one or more in Template Information, template header, main template body and attachment in prefabricated official document template;Its
In, Template Information includes one or more in title, type and description;Template header includes the book size of official document, margin
Away from, it is one or more in type page size, font, font size, line number, number of words, color and the page number;Main template body includes version head, master
Body and version note;The version head includes part number, level of confidentiality, security deadline, urgency level, issued organ's mark, dispatch code, signed by
With it is one or more in version head cut-off rule;Main body includes title, Zhu Song organs, text, attachment illustrates, issued organ signs,
It is one or more in written date, seal and note;Version note include version score secant, make a copy for organ, print and distribute organ and print and distribute
It is one or more in date.
On the basis of the above embodiments, include deleting to the edit operation of each element in target official document template in the present embodiment
Except element, increases prefabricated element and input one or more in element text.
On the basis of the above embodiments, in the present embodiment further include template previewing module, be used for prefabricated official document template
It is stored in official document template database with self-defined official document template;Wherein, official document template database is relevant database;When with
When template preview button is clicked at family, by the corresponding prefabricated official document template of template preview button in official document template database or self-defined
Official document template is as preview official document template, according to the layout of each element, format and corresponding virtual content in preview official document template
Generate preview picture;Wherein, template preview button is corresponded with prefabricated official document template or the self-defined official document template;Preview
Element in official document template and the advance associated storage of virtual content.
On the basis of the above embodiments, volume of the user described in the present embodiment to each control in the target official document template
Volume operation include input text, setting text structure ordinal number, insert pictures, the position that picture is set and size, insertion official seal and
Signature stamp, the size that the work and the signature stamp is arranged, is inserted into table at the position that the work and the signature stamp is arranged
Lattice, the horizontally-arranged table of editor are inserted into attachment and are arranged one or more in save button.
On the basis of the above embodiments, generation module is specifically used in the present embodiment:Button is generated when the user clicks
When operation, according to user to the edit operation of each control in target official document template as a result, generating word based on word operate interfaces
The official document of format, and by official document from word format conversions be PDF format.
The present embodiment provides a kind of, and the official document based on Web generates equipment, and Fig. 4 is provided in an embodiment of the present invention based on Web
Official document generate equipment overall structure schematic diagram, which includes:At least one processor 41, at least one processor 42 and total
Line 43;Wherein,
Processor 41 and memory 42 complete mutual communication by bus 43;
Memory 42 is stored with the program instruction that can be executed by processor 41, and the processor calls described program to instruct energy
Enough execute the method that above-mentioned each method embodiment is provided, such as including:S1, when user from official document template list selection target
When the operation of official document template, according to the layout of each element in target official document template and format display target official document template;S2, when with
When the operation for generating button is clicked at family, official document is generated to the edit operation result of each control in target official document template according to user.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium
Computer instruction is stored, the computer instruction makes the computer execute the method that above-mentioned each method embodiment is provided, example
Such as include:S1, when user's operation of selection target official document template from official document template list, according to each in target official document template
The layout and format display target official document template of element;S2, when generating the operation of button when the user clicks, according to user to target
The edit operation result of each control generates official document in official document template.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer read/write memory medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or light
The various media that can store program code such as disk.
Official document generation apparatus embodiments based on Web described above are only schematical, wherein described be used as is divided
Unit from part description may or may not be physically separated, the component shown as unit can be or
It may not be physical unit, you can be located at a place, or may be distributed over multiple network units.It can basis
It is actual to need that some or all of module therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill people
Member is not in the case where paying performing creative labour, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be expressed in the form of software products in other words, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally, the present processes are only preferable embodiment, are not intended to limit the scope of the present invention.It is all
Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in the protection of the present invention
Within the scope of.
Claims (10)
1. a kind of official document generation method based on Web, which is characterized in that including:
S1, when user's operation of selection target official document template from official document template list, according in the target official document template
The layout and format of each element show the target official document template;
S2, when the user clicks the operation for generating button, according to the user to each control in the target official document template
Edit operation result generate official document.
2. according to the method described in claim 1, it is characterized in that, further including before the step S1:
S01 defines one or more prefabricated official document templates according to default official documents format based on XML language;
S02 generates self-defined official document template according to user to the edit operation result of each element in the prefabricated official document template;
S03 generates official document template list according to the prefabricated official document template and the self-defined official document template.
3. according to the method described in claim 2, it is characterized in that, the step S01 is specifically included:
According to default official documents format, Template Information, template header, mould in the prefabricated official document template are defined based on XML language
It is one or more in plate body and attachment;
Wherein, the Template Information includes one or more in title, type and description;
The template header include the book size of official document, margin away from, type page size, font, font size, line number, number of words, color and
It is one or more in the page number;
The main template body includes version head, main body and version note;
The version head includes part number, level of confidentiality, security deadline, urgency level, issued organ's mark, dispatch code, signed by and version
It is one or more in head cut-off rule;
The main body includes title, Zhu Song organs, text, attachment explanation, issued organ's signature, written date, seal and note
In it is one or more;
Version note include version score secant, make a copy for organ, print and distribute organ and print and distribute one or more in the date.
4. wanting the method described in 2 according to right, which is characterized in that the edit operation packet of each element in the target official document template
It includes and deletes element, increase prefabricated element and input one or more in element text.
5. wanting the method described in 2 according to right, which is characterized in that further include after the step S02:
The prefabricated official document template and the self-defined official document template are stored in official document template database;Wherein, the public affairs
Literary template database is relevant database;
When the user clicks when template preview button, by the corresponding prefabricated official document of template preview button in the official document template database
Template or self-defined official document template are as preview official document template, according to the layout of each element, format in the preview official document template
Preview picture is generated with corresponding virtual content;
Wherein, the template preview button is corresponded with the prefabricated official document template or the self-defined official document template;
Element in the preview official document template and the advance associated storage of the virtual content.
6. according to any methods of claim 1-5, which is characterized in that the user is to each in the target official document template
The edit operation of control includes inputting text, setting text structure ordinal number, insert pictures, the position that picture is arranged and size, inserting
Enter official seal and signature stamp, the position that the work and the signature stamp are set, the size that the work and the signature stamp are set,
It is inserted into table, the horizontally-arranged table of editor, attachment is inserted into and is arranged one or more in save button.
7. according to any methods of claim 1-5, which is characterized in that the step S2 is specifically included:
When the user clicks the operation for generating button, according to the user to the volume of each control in the target official document template
Volume operating result, generates the official document of word formats based on word operate interfaces, and by the official document from word format conversions be PDF
Format.
8. a kind of official document based on Web generates system, which is characterized in that including:
Display module is used for when user's operation of selection target official document template from official document template list, according to the target
The layout of each element and format show the target official document template in official document template;
Generation module is used for when the user clicks the operation for generating button, according to the user to the target official document mould
The edit operation result of each control generates official document in plate.
9. a kind of official document based on Web generates equipment, which is characterized in that including:
At least one processor, at least one processor and bus;Wherein,
The processor and memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy
Enough methods executed as described in claim 1 to 7 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited
Computer instruction is stored up, the computer instruction makes the computer execute the method as described in claim 1 to 7 is any.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810421893.5A CN108681530A (en) | 2018-05-04 | 2018-05-04 | A kind of official document generation method and system based on Web |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810421893.5A CN108681530A (en) | 2018-05-04 | 2018-05-04 | A kind of official document generation method and system based on Web |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108681530A true CN108681530A (en) | 2018-10-19 |
Family
ID=63802028
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810421893.5A Pending CN108681530A (en) | 2018-05-04 | 2018-05-04 | A kind of official document generation method and system based on Web |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108681530A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109977381A (en) * | 2019-03-04 | 2019-07-05 | 安徽戴特教育科技有限公司 | A kind of h5 interactive resources access editor and broadcasting tool based on Office Addin |
CN110688829A (en) * | 2019-09-24 | 2020-01-14 | 北京字节跳动网络技术有限公司 | Table generation method, device, equipment and storage medium |
CN111210896A (en) * | 2019-12-30 | 2020-05-29 | 西安慧云医疗科技股份有限公司 | Scale generation system based on cloud psychological diagnosis |
CN111325011A (en) * | 2020-01-21 | 2020-06-23 | 西安工程大学 | Method for making and automatically matching administrative documents divided by main elements |
CN111832268A (en) * | 2020-06-30 | 2020-10-27 | 北京印象笔记科技有限公司 | Information interaction method, readable storage medium and electronic device |
CN112036149A (en) * | 2020-09-01 | 2020-12-04 | 珠海豹趣科技有限公司 | File editing method and device, electronic equipment and storage medium |
CN112800742A (en) * | 2021-04-14 | 2021-05-14 | 北京智慧易科技有限公司 | Method, system and equipment for compiling standard file |
CN113220842A (en) * | 2021-05-20 | 2021-08-06 | 广州中海云科技有限公司 | Processing method, device and equipment for maritime affair administration punishment cutting template |
CN113408262A (en) * | 2021-08-16 | 2021-09-17 | 中国电子科技集团公司第十五研究所 | Document online editing and generating system, method, device and storage medium |
CN113419791A (en) * | 2021-06-29 | 2021-09-21 | 中国工商银行股份有限公司 | Office document generation method, device and system |
CN115136233A (en) * | 2022-05-06 | 2022-09-30 | 湖南师范大学 | Multi-mode rapid transcription and labeling system based on self-built template |
CN117113961A (en) * | 2023-10-20 | 2023-11-24 | 中电数创(北京)科技有限公司 | Agent-based document writing method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567303A (en) * | 2010-12-24 | 2012-07-11 | 北京大学 | Typesetting method and device for variable official document data |
CN102982439A (en) * | 2012-11-12 | 2013-03-20 | 中国电子科技集团公司第十五研究所 | Method for generating electronic document and electronic document generating system |
CN103678268A (en) * | 2012-09-19 | 2014-03-26 | 北京大学 | Automatic typesetting method and device for official documents |
-
2018
- 2018-05-04 CN CN201810421893.5A patent/CN108681530A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567303A (en) * | 2010-12-24 | 2012-07-11 | 北京大学 | Typesetting method and device for variable official document data |
CN103678268A (en) * | 2012-09-19 | 2014-03-26 | 北京大学 | Automatic typesetting method and device for official documents |
CN102982439A (en) * | 2012-11-12 | 2013-03-20 | 中国电子科技集团公司第十五研究所 | Method for generating electronic document and electronic document generating system |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109977381A (en) * | 2019-03-04 | 2019-07-05 | 安徽戴特教育科技有限公司 | A kind of h5 interactive resources access editor and broadcasting tool based on Office Addin |
CN110688829A (en) * | 2019-09-24 | 2020-01-14 | 北京字节跳动网络技术有限公司 | Table generation method, device, equipment and storage medium |
CN111210896A (en) * | 2019-12-30 | 2020-05-29 | 西安慧云医疗科技股份有限公司 | Scale generation system based on cloud psychological diagnosis |
CN111325011B (en) * | 2020-01-21 | 2023-05-30 | 西安工程大学 | Administrative document making and automatic matching method for main element segmentation |
CN111325011A (en) * | 2020-01-21 | 2020-06-23 | 西安工程大学 | Method for making and automatically matching administrative documents divided by main elements |
CN111832268A (en) * | 2020-06-30 | 2020-10-27 | 北京印象笔记科技有限公司 | Information interaction method, readable storage medium and electronic device |
CN112036149A (en) * | 2020-09-01 | 2020-12-04 | 珠海豹趣科技有限公司 | File editing method and device, electronic equipment and storage medium |
CN112036149B (en) * | 2020-09-01 | 2023-10-27 | 珠海豹趣科技有限公司 | File editing method and device, electronic equipment and storage medium |
CN112800742A (en) * | 2021-04-14 | 2021-05-14 | 北京智慧易科技有限公司 | Method, system and equipment for compiling standard file |
CN112800742B (en) * | 2021-04-14 | 2022-04-01 | 北京智慧易科技有限公司 | Method, system and equipment for compiling standard file |
CN113220842A (en) * | 2021-05-20 | 2021-08-06 | 广州中海云科技有限公司 | Processing method, device and equipment for maritime affair administration punishment cutting template |
CN113419791A (en) * | 2021-06-29 | 2021-09-21 | 中国工商银行股份有限公司 | Office document generation method, device and system |
CN113408262A (en) * | 2021-08-16 | 2021-09-17 | 中国电子科技集团公司第十五研究所 | Document online editing and generating system, method, device and storage medium |
CN115136233A (en) * | 2022-05-06 | 2022-09-30 | 湖南师范大学 | Multi-mode rapid transcription and labeling system based on self-built template |
CN115136233B (en) * | 2022-05-06 | 2023-09-22 | 湖南师范大学 | Multi-mode rapid transfer and labeling system based on self-built template |
CN117113961A (en) * | 2023-10-20 | 2023-11-24 | 中电数创(北京)科技有限公司 | Agent-based document writing method and system |
CN117113961B (en) * | 2023-10-20 | 2024-02-09 | 中电数创(北京)科技有限公司 | Agent-based document writing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108681530A (en) | A kind of official document generation method and system based on Web | |
US6178431B1 (en) | Method and system for providing side notes in word processing | |
US7426057B2 (en) | Document processing method | |
US6487567B1 (en) | Method and system for manipulating page-breaks in an electronic document | |
JPS59152485A (en) | Electronic font management | |
CN101989256A (en) | Typesetting method of document file and device | |
EP2273394A1 (en) | Document processing method, system and device | |
EP0066047A2 (en) | Method for assisting an operator of an interactive text processing system in entering instructional data which define a desired rearrangement of fields in a stored file of spatially related data | |
JPH0765002A (en) | Word processor | |
US3714636A (en) | Automatic editing method with page formatting | |
Van Dam et al. | Computers and publishing: Writing, editing, and printing | |
JPS61228572A (en) | Document producing and editing device | |
JP3076348B2 (en) | Document shaping apparatus and document shaping method | |
JPH06119327A (en) | Document processor | |
JPH05101053A (en) | Structured document editing method | |
CN108280053A (en) | A kind of method and device of the formula typesetting based on Mathtype | |
JP2000280435A (en) | Delivered data checking system | |
JPH05128174A (en) | Note element preparation and editing method for cad system | |
JP2835550B2 (en) | Document creation and editing device | |
Lacher | Word Chapter 2 | |
JPS6324354A (en) | Document preparing device | |
CN112906357A (en) | System, method and computer readable storage medium for editing and arranging published documents | |
JPH03172962A (en) | Diagram arranging method | |
CN116992849A (en) | Method and system for creating and printing electronic document template | |
Enlund et al. | The early days of computer aided newspaper production systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181019 |