Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of document processing method and device, computer-readable deposit
Storage media can enhance user to the processing capacity of the picture in document.
In order to reach the object of the invention, the technical solution of the embodiment of the present invention is achieved in that
A kind of document processing method of the embodiment of the present invention, comprising:
The request for receiving the intercalation model of picture in modification document from the user, by the intercalation model of the picture in document
It is revised as any one of being only inserted, only linking, be inserted into and link these three modes;
If being revised as being only inserted mode, the picture that intercalation model is a linking scheme is saved into document, and is disconnected
Intercalation model is not the link of the picture for the mode that is only inserted;
If being revised as a linking scheme, the picture in document is saved in the catalogue specified to user, and will be in document
The chained address of picture be revised as the address of the catalogue specified comprising user;
If being revised as insertion and linking scheme, the picture in document is saved to the mesh that into document and user specifies simultaneously
In record, and the address for the catalogue that the chained address of the picture in document is revised as specifying comprising user.
Further, the catalogue that the user specifies is defaulted as storing the local disk catalogue of the document.
Further, in the modification document from the user in the request of the intercalation model of picture, modification object is
All pictures in the document.
Further, it is described receive it is from the user modification document in picture intercalation model request the step of it
Before, the method also includes:
List all pictures in the document for selection by the user, the attribute of the listed picture includes institute
State the page number, the picture name of picture.
Further, the attribute of the listed picture further includes the chained address of the picture.
The embodiment of the invention also provides a kind of document processing device, document processings, including interface unit and processing unit, in which:
The interface unit will be described for receiving the request of the intercalation model of picture in modification document from the user
Request is sent to processing unit;
The processing unit is used for the request based on the received, and the intercalation model of the picture in document is revised as only
Any one of be inserted into, only link, be inserted into and link these three modes;
If being revised as being only inserted mode, the processing unit saves the picture that intercalation model is a linking scheme to text
In shelves, and disconnect intercalation model not and be the link of the picture for the mode that is only inserted;
If being revised as a linking scheme, the picture in document is saved the catalogue specified to user by the processing unit
In, and the address for the catalogue that the chained address of the picture in document is revised as specifying comprising user;
If being revised as insertion and linking scheme, the picture in document is saved to document simultaneously and is neutralized by the processing unit
In the catalogue that user specifies, and the address for the catalogue that the chained address of the picture in document is revised as specifying comprising user.
Further, the catalogue that the user specifies is defaulted as storing the local disk catalogue of the document.
Further, the interface unit is also used to:
List all pictures in the document for selection by the user, the attribute of the listed picture includes institute
State the page number, the picture name of picture.
Further, the attribute of the listed picture further includes the chained address of the picture.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage
There is one or more program, one or more of programs can be executed by one or more processor, following to realize
Step:
The request for receiving the intercalation model of picture in modification document from the user, by the intercalation model of the picture in document
It is revised as any one of being only inserted, only linking, be inserted into and link these three modes;
If being revised as being only inserted mode, the picture that intercalation model is a linking scheme is saved into document, and is disconnected
Intercalation model is not the link of the picture for the mode that is only inserted;
If being revised as a linking scheme, the picture in document is saved in the catalogue specified to user, and will be in document
The chained address of picture be revised as the address of the catalogue specified comprising user;
If being revised as insertion and linking scheme, the picture in document is saved to the mesh that into document and user specifies simultaneously
In record, and the address for the catalogue that the chained address of the picture in document is revised as specifying comprising user.
Technical solution of the present invention has the following beneficial effects:
Document processing method and device provided by the invention, computer readable storage medium, by allow user according to from
Body demand modifies the intercalation model of the picture in document, and when the intercalation model modified is the mode comprising link, will scheme
Piece saves the catalogue specified to user, facilitates user to carry out the pictures processing such as replacement, size compression, the profession beautification of picture, increases
Strong processing capacity of the user to the picture in document, and it is easy to operate.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
As shown in Figure 1, a kind of document processing method according to the present invention, includes the following steps:
The request for receiving the intercalation model of picture in modification document from the user, by the intercalation model of the picture in document
It is revised as any one of being only inserted, only linking, be inserted into and link these three modes;
If being revised as being only inserted mode, the picture that intercalation model is a linking scheme is saved into document, and is disconnected
Intercalation model is not the link of the picture for the mode that is only inserted;
If being revised as a linking scheme, the picture in document is saved in the catalogue specified to user, and will be in document
The chained address of picture be revised as the address of the catalogue specified comprising user;
If being revised as insertion and linking scheme, the picture in document is saved to the mesh that into document and user specifies simultaneously
In record, and the address for the catalogue that the chained address of the picture in document is revised as specifying comprising user.
It should be noted that picture is copied in document in being only inserted mode, become a part of document, this
It is the inserted mode of the office softwares such as Office, WPS Office default, when saving document, the picture of insertion can be with document one
It rises and saves, and when original picture file changes, the picture in document will not follow variation;
In only linking scheme, by " reference " into document, the picture of insertion is still stored in original picture file picture,
Document is the location information for saving the picture, not will increase the length of document;When original picture file changes, document
In picture will follow and change;
In insertion and linking scheme, picture is copied in document, while also being established link with original picture file and being closed
System, when original picture file changes, document can be automatically updated, and when saving document, graphic file is saved together with document,
Therefore, Document Length obviously increases.
Further, the catalogue that the user specifies is defaulted as storing the local disk catalogue of the document.
In an embodiment of the present invention, the document processing method can pop up the first dialog box, and in the first dialog box
In be supplied to the address of the specified catalogue of user's selection.
In an embodiment of the present invention, in the modification document from the user in the request of the intercalation model of picture,
Modifying object is all pictures in document.
Further, it is described receive it is from the user modification document in picture intercalation model request the step of it
Before, the method also includes:
List all pictures in document for selection by the user, the attribute of listed picture includes the page number of picture, figure
Piece title.
In an embodiment of the present invention, the document processing method can pop up the second dialog box, and in the second dialog box
In list all pictures in document for selection by the user, the attribute of listed picture includes the page number of picture, picture name
Information, it is preferable that the attribute of listed picture can also include the information such as the chained address of picture.Second dialog box is also
Full choosing can be provided or cancel the button selected entirely.
As shown in Fig. 2, the invention also discloses a kind of document processing device, document processing, including interface unit and processing unit, in which:
The interface unit will be described for receiving the request of the intercalation model of picture in modification document from the user
Request is sent to processing unit;
The processing unit is used for the request based on the received, and the intercalation model of the picture in document is revised as only
Any one of be inserted into, only link, be inserted into and link these three modes;
If being revised as being only inserted mode, the processing unit saves the picture that intercalation model is a linking scheme to text
In shelves, and disconnect intercalation model not and be the link of the picture for the mode that is only inserted;
If being revised as a linking scheme, the picture in document is saved the catalogue specified to user by the processing unit
In, and the address for the catalogue that the chained address of the picture in document is revised as specifying comprising user;
If being revised as insertion and linking scheme, the picture in document is saved to document simultaneously and is neutralized by the processing unit
In the catalogue that user specifies, and the address for the catalogue that the chained address of the picture in document is revised as specifying comprising user.
In an embodiment of the present invention, the interface unit is also used to: the first dialog box of pop-up, and in the first dialog box
It is supplied to the address of the specified catalogue of user's selection.
Further, the catalogue that the user specifies is defaulted as storing the local disk catalogue of the document.
Further, the interface unit is also used to:
List all pictures in document for selection by the user, the attribute of listed picture includes the page number of picture, figure
Piece title.
In an embodiment of the present invention, the interface unit can pop up the second dialog box, and arrange in the second dialog box
For selection by the user, the attribute of listed picture includes the page number of picture, picture name information to all pictures in document out,
Preferably, the attribute of listed picture can also include the information such as the chained address of picture.Second dialog box can be with
Full choosing is provided or cancels the button selected entirely.
In an embodiment of the present invention, in the modification document from the user in the request of the intercalation model of picture,
Modifying object is all pictures in document.
The invention also discloses a kind of computer readable storage medium, the computer-readable recording medium storage has one
Or multiple programs, one or more of programs can be executed by one or more processor, to perform the steps of
The request for receiving the intercalation model of picture in modification document from the user, by the intercalation model of the picture in document
It is revised as any one of being only inserted, only linking, be inserted into and link these three modes;
If being revised as being only inserted mode, the picture that intercalation model is a linking scheme is saved into document, and is disconnected
Intercalation model is not the link of the picture for the mode that is only inserted;
If being revised as a linking scheme, the picture in document is saved in the catalogue specified to user, and will be in document
The chained address of picture be revised as the address of the catalogue specified comprising user;
If being revised as insertion and linking scheme, the picture in document is saved to the mesh that into document and user specifies simultaneously
In record, and the address for the catalogue that the chained address of the picture in document is revised as specifying comprising user.
Further, the catalogue that the user specifies is defaulted as storing the local disk catalogue of the document.
In an embodiment of the present invention, the picture by document save the step in the catalogue specified to user it
Before, one or more of programs can also be executed by one or more of processors, to perform the steps of
The first dialog box is popped up, and is supplied to the address of the specified catalogue of user's selection in the first dialog box.
In an embodiment of the present invention, in the modification document from the user in the request of the intercalation model of picture,
Modifying object is all pictures in document.
Further, it is described receive it is from the user modification document in picture intercalation model request the step of it
Before, one or more of programs can also be executed by one or more of processors, to perform the steps of
List all pictures in document for selection by the user, the attribute of listed picture includes the page number of picture, figure
Piece title.
In an embodiment of the present invention, in the step of listing all pictures in document for selection by the user, described one
A or multiple programs can also be executed by one or more of processors, to perform the steps of
The second dialog box is popped up, and lists in the second dialog box all pictures in document for selection by the user, it is listed
The attribute of picture out includes the page number of picture, picture name information, it is preferable that the attribute of listed picture can also include
The information such as the chained address of picture.Second dialog box can also provide full choosing or cancel the button selected entirely.
Document processing method and device provided by the invention, computer readable storage medium, by allow user according to from
Body demand modifies the intercalation model of the picture in document, and when the intercalation model modified is the mode comprising link, will scheme
Piece saves the catalogue specified to user, facilitates user to carry out the pictures processing such as replacement, size compression, the profession beautification of picture, increases
Strong processing capacity of the user to picture in document, and it is easy to operate.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program
Related hardware is completed, and described program can store in computer readable storage medium, such as read-only memory, disk or CD
Deng.Optionally, one or more integrated circuits also can be used to realize, accordingly in all or part of the steps of above-described embodiment
Ground, each module/unit in above-described embodiment can take the form of hardware realization, can also use the shape of software function module
Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.