A kind of PDF document editing machine and PDF document edit methods
Technical field
The present invention relates to a kind of file processing technology, particularly relate to a kind of PDF document editing machine and PDF document edit methods.
Background technology
The PDF(PortableDocumentFormat that prior art provides, portable file layout) document editor, for different page elements, need to switch different edit tools and realize, current main edit tool and purposes are as shown in Figure 1.
In Fig. 1, from left to right respectively:
1, reading tool: main users, when reading PDF document, carries out the drag operation of the page;
2, text selection tool: be mainly used in selecting the content of text in PDF document, carry out the replicate run of content of text;
3, annotate selection tool: be mainly used in selecting the annotation in PDF document, and annotation is moved, delete and the operation such as edit properties;
4, the text edit tool: be mainly used in editing the text in PDF document, comprises amendment text attribute (font, size, color, underscore and strikethrough etc.), adds and deletes the operations such as text;
5, select object tool: be mainly used in selecting the graph image in PDF document and text object, and graph image and text object are copied, shear, move, delete and adjust the operations such as size.
The PDF document editing machine that prior art provides, edit tool is many, too complicated, is unfavorable for that user carries out editing operation to PDF document.
Summary of the invention
The invention provides a kind of PDF document editing machine and PDF document edit methods in order to solve the problems of the technologies described above.
A kind of PDF document editing machine provided by the invention, comprising:
Reading tool, for when it is selected, carries out drag operation to the page of PDF document;
Selection tool, for when it is selected, identifies the content of text of described PDF document, and/or operates the notes content in this PDF document;
Rendering tool, for when it is selected, operates the content of text of described PDF document, and/or operates the graph image of this PDF document and/or text object;
Described selection tool comprises:
First detecting unit, for detecting the content information of PDF document corresponding to cursor of mouse;
Selection unit, for described first detecting unit when the content information detected is content of text, automatically identifies text content and operates on it; When the content information that described first detecting unit detects is comment element, obtains the association attributes of this comment element and this comment element is operated;
Described rendering tool comprises:
Second detecting unit, for detecting the content information of PDF document corresponding to cursor of mouse;
Rendering unit, for when the content information that described second detecting unit detects be graph image and/or text object time, automatically identify this graph image and/or text object and operate on it; When the content information that described second detecting unit detects is text object and the instruction of double mouse click text object detected, text object is operated;
Described rendering unit comprises the operation that content of text carries out: amendment comprises text attribute, interpolation text, the deletion text maninulation of font, size, color, underscore and strikethrough; Described rendering unit comprises the operation that its graph image automatically identified and/or text object carry out: copy, shear, move, delete and adjust size operation.
Wherein, what described selection unit carried out the content of text after its identification is operating as replicate run; What described selection unit carried out its comment element obtained is operating as: move, delete and edit properties operation.
Accordingly, a kind of PDF document edit methods provided by the invention, it realizes based on PDF document editing machine, comprising:
When the reading tool of described PDF document editing machine is selected, drag operation is carried out to the page of PDF document;
When the selection tool of described PDF document editing machine is selected, the content of text of described PDF document is identified, and/or the notes content in this PDF document is operated;
When the rendering tool of described PDF document editing machine is selected, the content of text of described PDF document is operated, and/or the graph image of this PDF document and/or text object are operated;
When the described selection tool at described PDF document editing machine is selected, the content of text of described PDF document is identified, and/or the notes content in this PDF document is operated, comprising:
Detect the content information of PDF document corresponding to cursor of mouse;
When the content information detected is content of text, automatically text content is identified and operate on it;
When the content information detected is comment element, obtains the association attributes of this comment element and this comment element is operated;
When the described rendering tool at described PDF document editing machine is selected, the content of text of described PDF document is operated, and/or the graph image of this PDF document and/or text object is operated, comprising:
Detect the content information of PDF document corresponding to cursor of mouse;
When the content information detected be graph image and/or text object time, automatically identify this graph image and/or text object and operate on it;
When the content information detected is text object and the instruction of double mouse click text object detected, text object is operated;
Described the operation that content of text carries out to be comprised: amendment comprise font, size, color, underscore and strikethrough text attribute, add text, delete text maninulation; The operation that the described graph image to identification automatically and/or text object carry out comprises: copy, shear, move, delete and adjust size operation.
Wherein, described to its identify after content of text carry out be operating as replicate run; What the described comment element to obtaining was carried out is operating as: move, delete and edit properties operation.
Implement PDF document editing machine provided by the invention and PDF document edit methods, its use is easy to identify, effectively can provide the efficiency of PDF document editor.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of a kind of PDF document editing machine that prior art provides.
Fig. 2 is the structural representation of a kind of PDF document editing machine embodiment one provided by the invention.
Fig. 3 is the structural representation of a kind of PDF document editing machine embodiment two provided by the invention.
Fig. 4 is the structural representation of a kind of PDF document editing machine embodiment three provided by the invention.
Fig. 5 is the schematic flow sheet of a kind of PDF document edit methods embodiment one provided by the invention.
Fig. 6 is the schematic flow sheet of a kind of PDF document edit methods embodiment two provided by the invention.
Fig. 7 is the schematic flow sheet of a kind of PDF document edit methods embodiment three provided by the invention.
Fig. 8 is an application schematic diagram of a kind of PDF document editing machine provided by the invention.
Fig. 9 is the another application schematic diagram of a kind of PDF document editing machine provided by the invention.
Figure 10 is the another application schematic diagram of a kind of PDF document editing machine provided by the invention.
Embodiment
The invention provides a kind of PDF document editing machine and PDF document edit methods in order to solve the problems of the technologies described above.
See Fig. 2, it is the structural representation of a kind of PDF document editing machine embodiment one provided by the invention.
The PDF document editing machine that the present embodiment provides, comprising:
Reading tool 10, for when it is selected, carries out drag operation to the page of PDF document;
Selection tool 11, for when it is selected, identifies the content of text of described PDF document, and/or operates the notes content in this PDF document;
Rendering tool 12, for when it is selected, edits the content of text of described PDF document, and/or operates the graph image of this PDF document and/or text object.
Implement PDF document editing machine provided by the invention, its use is easy to identify, effectively can provide the efficiency of PDF document editor.
See Fig. 3, it is the structural representation of a kind of PDF document editing machine embodiment two provided by the invention.
The present embodiment mainly describes concrete function and the structure of the selection tool of PDF document editing machine, and it comprises:
First detecting unit 110, for detecting the content information of PDF document corresponding to cursor of mouse;
Selection unit 111, for described first detecting unit when the content information detected is content of text, automatically identifies text content and operates on it; When the content information that described detecting unit detects is comment element, obtains the association attributes of this comment element and this comment element is operated.
Wherein, what described selection unit 111 carried out the content of text after its identification is operating as replicate run; What described selection unit carried out its comment element obtained is operating as: move, delete and edit properties operation.
See Fig. 4, it is the structural representation of a kind of PDF document editing machine embodiment three provided by the invention.
The present embodiment mainly describes concrete function and the structure of the rendering tool of PDF document editing machine, and it comprises:
Second detecting unit 120, for detecting the content information of PDF document corresponding to cursor of mouse;
Rendering unit 121, for when the content information that described second detecting unit 120 detects be graph image and/or text object time, automatically identify this graph image and/or text object and operate on it; When the content information that described detecting unit detects is text object and the instruction of double mouse click text object detected, text object is operated.
Wherein, the operation that described rendering unit 121 pairs of content of text carry out comprises: amendment comprises text attribute, interpolation text, the deletion text maninulation of font, size, color, underscore and strikethrough; Described rendering unit comprises the operation that its graph image automatically identified and/or text object carry out: copy, shear, move, delete and adjust size operation.
See Fig. 5, it is the schematic flow sheet of a kind of PDF document edit methods embodiment one provided by the invention.
First illustrate, a kind of PDF document edit methods provided by the invention, it realizes based on PDF document editing machine, comprising:
Step 100, when the reading tool of described PDF document editing machine is selected, carries out drag operation to the page of PDF document;
Step 101, when the selection tool of described PDF document editing machine is selected, identifies the content of text of described PDF document, and/or operates the notes content in this PDF document;
Step 102, when the rendering tool of described PDF document editing machine is selected, edits the content of text of described PDF document, and/or operates the graph image of this PDF document and/or text object.
Implement PDF document edit methods provided by the invention, its use is easy to identify, effectively can provide the efficiency of PDF document editor.
See Fig. 6, it is the schematic flow sheet of a kind of PDF document edit methods embodiment two provided by the invention.
The present embodiment be mainly described in the selection tool of PDF document editing machine selected time, the content of text of PDF document is identified, and/or to the detailed process that the notes content in this PDF document operates, comprising:
Step 200, detects the content information of PDF document corresponding to cursor of mouse;
Step 201, when the content information detected is content of text, automatically identifies text content and operates on it; Wherein, described to its identify after content of text carry out be operating as replicate run;
Step 202, when the content information detected is comment element, obtains the association attributes of this comment element and operates this comment element; Wherein, what the described comment element to obtaining was carried out is operating as: move, delete and edit properties operation.
See Fig. 7, it is the schematic flow sheet of a kind of PDF document edit methods embodiment three provided by the invention.
The present embodiment be mainly described in the rendering tool of PDF document editing machine selected time, the content of text of PDF document is edited, and/or to the flow process that graph image and/or the text object of this PDF document operate, comprising:
Step 300, detects the content information of PDF document corresponding to cursor of mouse;
Step 301, when the content information detected be graph image and/or text object time, automatically identify this graph image and/or text object and operate on it; Wherein, described the operation that content of text carries out to be comprised: amendment comprise font, size, color, underscore and strikethrough text attribute, add text, delete text maninulation.
Step 302, when the content information detected is text object and the instruction of double mouse click text object detected, operates text object.Wherein, the operation that the described graph image to identification automatically and/or text object carry out comprises: copy, shear, move, delete and adjust size operation.
Implement PDF document edit methods provided by the invention, its use is easy to identify, effectively can provide the efficiency of PDF document editor.
See Fig. 8 ~ Figure 10, it is the embody rule schematic diagram of PDF document editing machine provided by the invention.
In the present embodiment, selection tool is selected to be described for user.
When user have selected as selection tool in Fig. 2, cursor of mouse shows as shown in Figure 8 in PDF document, when detecting that PDF document content information is content of text, cursor of mouse shows as shown in Figure 9 in PDF document, and now PDF document editing machine can identify text content automatically; As Figure 10, identify the content of text and provide user to select.Thus, selection tool provided by the invention both can realize identifying the content of text of PDF document, also can realize the identification to notes content and operation (not shown).And prior art respectively by text selection tool and annotation selection tool realize, therefore, the present invention is more convenient than prior art, be more conducive to operation.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, all should be considered as belonging to protection scope of the present invention.