Document editing method and device, computer storage medium and terminal

文档序号:1447058 发布日期:2020-02-18 浏览:17次 中文

阅读说明:本技术 一种文档编辑的方法、装置、计算机存储介质及终端 (Document editing method and device, computer storage medium and terminal ) 是由 邓斌 于 2018-08-02 设计创作,主要内容包括:一种文档编辑的方法、装置、计算机存储介质及终端,包括:在非标准协议复选框内接收到预设的第一编辑指令时,确定接收第一编辑指令的位置;在确定的接收到第一编辑指令的位置,添加预设的复选框控件。本发明实施例实现了非标准协议复选框的编辑处理,提升了用户的文档编辑效率。(A method, a device, a computer storage medium and a terminal for editing a document comprise: when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction; and adding a preset check box control at the determined position where the first editing instruction is received. The embodiment of the invention realizes the editing processing of the check boxes of the non-standard protocol and improves the document editing efficiency of users.)

1. A method of document editing, comprising:

when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction;

and adding a preset check box control at the determined position where the first editing instruction is received.

2. The method of claim 1, wherein prior to determining the location to receive the first editing instruction, the method further comprises:

identifying the non-standard protocol checkbox.

3. The method of claim 1, wherein the check box control contains some or all of the following properties:

the type attribute is annotation Annot and the chart category Subtype attribute is PolyLine PolyLine.

4. The method according to any one of claims 1 to 3, wherein after the adding of the preset check box control, the method further comprises:

and deleting the check box control when the added check box control receives a preset second editing instruction.

5. An apparatus for document editing, comprising: a determination unit and an addition unit; wherein the content of the first and second substances,

the determination unit is used for: when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction;

the adding unit is used for: and adding a preset check box control at the determined position where the first editing instruction is received.

6. The apparatus according to claim 5, further comprising an identification unit configured to: identifying the non-standard protocol checkbox.

7. The apparatus of claim 5, wherein the check box control contains some or all of the following properties:

the type attribute is annotation Annot and the chart category Subtype attribute is PolyLine PolyLine.

8. The apparatus according to any one of claims 5 to 7, further comprising a deletion unit configured to:

and deleting the check box control when the added check box control receives a preset second editing instruction.

9. A computer storage medium having computer-executable instructions stored therein for performing the method of document editing of any of claims 1-4.

10. A terminal, comprising: a memory and a processor; wherein the content of the first and second substances,

the processor is configured to execute program instructions in the memory;

the program instructions read on the processor to perform the following operations:

when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction;

and adding a preset check box control at the determined position where the first editing instruction is received.

Technical Field

The present disclosure relates to, but not limited to, information editing technologies, and in particular, to a method, an apparatus, a computer storage medium, and a terminal for document editing.

Background

Check box types are defined in a Portable Document Format (PDF, file Format developed by Adobe Systems for exchanging files in a mode irrelevant to application programs, operating Systems and hardware) standard protocol, the size, the position, whether to check related attributes and the like of the check box can be analyzed when a Document is analyzed, and when a user clicks the check box, checking or canceling checking can be carried out in the check box.

The PDF document also comprises check boxes of non-standard protocols existing in a scanning or other editing mode, the check boxes of the non-standard protocols are text contents similar to pictures, and checking cancellation operations cannot be performed; fig. 1 is a check box of a non-standard protocol in the related art, and as shown in fig. 1, although the non-standard protocol check box is substantially the same as the standard protocol check box from the display content, that is, although the check box of the non-standard protocol appears as a form file, the display element inside does not include the attribute of the check box, and editing operations including checking and unchecking cannot be performed on the check box.

The nonstandard protocol check boxes cannot perform editing operation allowed by the standard protocol check boxes, and the document editing efficiency of a user is influenced.

Disclosure of Invention

The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

The embodiment of the invention provides a method and a device for editing a document, a computer storage medium and a terminal, which can improve the document editing efficiency of a user.

The embodiment of the invention provides a method for editing a document, which comprises the following steps:

when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction;

and adding a preset check box control at the determined position where the first editing instruction is received.

Optionally, before determining the position for receiving the first editing instruction, the method further includes:

identifying the non-standard protocol checkbox.

Optionally, the check box control contains some or all of the following properties:

the type attribute is annotation Annot and the chart category Subtype attribute is PolyLine PolyLine.

Optionally, after the preset check box control is added, the method further includes:

and deleting the check box control when the added check box control receives a preset second editing instruction.

On the other hand, an embodiment of the present invention further provides a device for editing a document, including: a determination unit and an addition unit; wherein the content of the first and second substances,

the determination unit is used for: when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction;

the adding unit is used for: and adding a preset check box control at the determined position where the first editing instruction is received.

Optionally, the apparatus further includes an identification unit, configured to: identifying the non-standard protocol checkbox.

Optionally, the check box control contains some or all of the following properties:

the type attribute is annotation Annot and the chart category Subtype attribute is PolyLine PolyLine.

Optionally, the apparatus further includes a deleting unit, configured to:

and deleting the check box control when the added check box control receives a preset second editing instruction.

In still another aspect, an embodiment of the present invention further provides a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions are used to execute the above method for editing a document.

In another aspect, an embodiment of the present invention further provides a terminal, including: a memory and a processor; wherein the content of the first and second substances,

the processor is configured to execute program instructions in the memory;

the program instructions read on the processor to perform the following operations:

when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction;

and adding a preset check box control at the determined position where the first editing instruction is received.

Compared with the related art, the technical scheme of the application comprises the following steps: when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction; and adding a preset check box control at the determined position where the first editing instruction is received. The embodiment of the invention realizes the editing processing of the check boxes of the non-standard protocol and improves the document editing efficiency of users.

Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

Drawings

The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.

FIG. 1 is a check box of a non-standard protocol in the related art;

FIG. 2 is a flowchart of a method for document editing according to an embodiment of the present invention;

FIG. 3 is a diagram illustrating the addition of check box controls according to an embodiment of the present invention;

fig. 4 is a block diagram of a device for document editing according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.

The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.

FIG. 1 is a flowchart of a document editing method according to an embodiment of the present invention, as shown in FIG. 1, including:

when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction;

and adding a preset check box control at the determined position where the first editing instruction is received.

It should be noted that, the document editing in the embodiment of the present invention includes portable document format PDF document editing; the method for adding the check box control in the embodiment of the invention can be carried out by referring to the insertion method of the check box control during PDF document editing.

In addition, the embodiment of the invention can also determine the accurate position of the control for adding the check box by means of the related technology; the method includes, but is not limited to, after a position for receiving a first editing instruction is determined, the closest box for checking in a non-standard protocol check box in the position is determined based on an image recognition method, and the determined box is covered by an added check box control based on the determined box position, so that a better display effect can be obtained when the check box control and the non-standard protocol check box are displayed.

Optionally, before determining the position for receiving the first editing instruction, the method further includes:

identifying the non-standard protocol checkbox.

It should be noted that the non-standard protocol check box can be identified by an existing image identification method in the related art, which is not described herein again.

Optionally, the check box control contains some or all of the following properties:

the type attribute is annotation Annot and the chart category Subtype attribute is PolyLine PolyLine.

It should be noted that the check box control in the embodiment of the present invention may further include other controls in which the chart type attribute is a non-polyline; for example, a filled dot represents a selected checkbox control; in addition, the check box control can also be used to negate the contents of a non-standard protocol check box, e.g., a check box control for forking; the added check box control can be analyzed by the technicians in the field according to the content of the current document, and then the attribute of the check box control is determined; modifications are made by those skilled in the art based on the determined attributes.

Optionally, after the preset check box control is added, the method further includes:

and deleting the check box control when the added check box control receives a preset second editing instruction.

It should be noted that, in the embodiment of the present invention, after the first editing instruction and the second editing instruction are analyzed by a person skilled in the art by combining with the existing editing instructions in the related art, other designed instructions capable of distinguishing the existing editing instructions may be an instruction generated by a composite key, an instruction generated after a shortcut menu is added by a left key or a right key of a mouse, or an instruction generated by an editing key newly added in a PDF toolbar.

Fig. 3 is a schematic diagram of adding a check box control according to an embodiment of the present invention, and as shown in fig. 3, after adding the check box control, a check of a user in a PDF document and a check of a standard protocol check box are not distinguished from each other in display. When the user enters a second editing instruction, the check box control in the schematic diagram is deleted, and fig. 3 reverts to fig. 1.

Compared with the related art, the technical scheme of the application comprises the following steps: when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction; and adding a preset check box control at the determined position where the first editing instruction is received. The embodiment of the invention realizes the editing processing of the check boxes of the non-standard protocol and improves the document editing efficiency of users.

Fig. 4 is a block diagram of a device for document editing according to an embodiment of the present invention, as shown in fig. 4, including: a determination unit and an addition unit; wherein the content of the first and second substances,

the determination unit is used for: when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction;

the adding unit is used for: and adding a preset check box control at the determined position where the first editing instruction is received.

It should be noted that, the document editing in the embodiment of the present invention includes portable document format PDF document editing; the method for adding the check box control in the embodiment of the invention can be carried out by referring to the insertion method of the check box control during PDF document editing.

In addition, the embodiment of the invention can also determine the accurate position of the control for adding the check box by means of the related technology; the method includes, but is not limited to, after a position for receiving a first editing instruction is determined, the closest box for checking in a non-standard protocol check box in the position is determined based on an image recognition method, and the determined box is covered by an added check box control based on the determined box position, so that a better display effect can be obtained when the check box control and the non-standard protocol check box are displayed.

Optionally, the apparatus in this embodiment of the present invention further includes an identification unit, configured to: identifying the non-standard protocol checkbox.

It should be noted that the non-standard protocol check box can be identified by an existing image identification method in the related art, which is not described herein again.

Optionally, the check box control in the embodiment of the present invention includes the following part or all of the attributes:

the type attribute is annotation Annot and the chart category Subtype attribute is PolyLine PolyLine.

It should be noted that the check box control in the embodiment of the present invention may further include other controls in which the chart type attribute is a non-polyline; for example, a filled dot represents a selected checkbox control; in addition, the check box control can also be used to negate the contents of a non-standard protocol check box, e.g., a check box control for forking; the added check box control can be analyzed by the technicians in the field according to the content of the current document, and then the attribute of the check box control is determined; modifications are made by those skilled in the art based on the determined attributes.

Optionally, the apparatus in this embodiment of the present invention further includes a deleting unit, configured to:

and deleting the check box control when the added check box control receives a preset second editing instruction.

It should be noted that, in the embodiment of the present invention, after the first editing instruction and the second editing instruction are analyzed by a person skilled in the art by combining with the existing editing instructions in the related art, other designed instructions capable of distinguishing the existing editing instructions may be an instruction generated by a composite key, an instruction generated after a shortcut menu is added by a left key or a right key of a mouse, or an instruction generated by an editing key newly added in a PDF toolbar.

The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used for executing the document editing method.

An embodiment of the present invention further provides a terminal, including: a memory and a processor; wherein the processor is configured to execute program instructions in the memory;

the program instructions read on the processor to perform the following operations:

when a preset first editing instruction is received in a non-standard protocol check box, determining a position for receiving the first editing instruction;

and adding a preset check box control at the determined position where the first editing instruction is received.

It should be noted that, the document editing in the embodiment of the present invention includes portable document format PDF document editing; in addition, the method for adding the check box control in the embodiment of the invention can be carried out by referring to the insertion method of the check box control in the PDF document editing process.

It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by a program instructing associated hardware (e.g., a processor) to perform the steps, and the program may be stored in a computer readable storage medium, such as a read only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in hardware, for example, by an integrated circuit to implement its corresponding function, or in software, for example, by a processor executing a program/instruction stored in a memory to implement its corresponding function. The present invention is not limited to any specific form of combination of hardware and software.

Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:文档协同编辑方法及装置、终端和计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!