CN110765072A - Method and device for saving file - Google Patents

Method and device for saving file Download PDF

Info

Publication number
CN110765072A
CN110765072A CN201810844566.0A CN201810844566A CN110765072A CN 110765072 A CN110765072 A CN 110765072A CN 201810844566 A CN201810844566 A CN 201810844566A CN 110765072 A CN110765072 A CN 110765072A
Authority
CN
China
Prior art keywords
file
font
index
character
content
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
Application number
CN201810844566.0A
Other languages
Chinese (zh)
Inventor
邓斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201810844566.0A priority Critical patent/CN110765072A/en
Publication of CN110765072A publication Critical patent/CN110765072A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention provides a method and a device for saving files, and relates to the technical field of computer office, wherein the method comprises the following steps: determining the font index of each character in the font file in the file content of the target file; and storing the font index of each character in the file content according to the arrangement of the characters in the file content, thereby realizing the storage of the target file. By applying the scheme provided by the embodiment of the invention to save the file, the storage space occupied by the file can be reduced while the content of the file is prevented from being copied.

Description

Method and device for saving file
Technical Field
The invention relates to the technical field of computer office work, in particular to a method and a device for saving files.
Background
For documents with high security requirements, the publisher of the document generally does not want the reader of the document to directly copy the text in the document. At present, the method for preventing the text in the file from being copied is to convert the content of the file into a picture, and then store the picture into a file with a preset format, such as a file with a PDF format.
After the file content is converted into the picture, the data size is larger than the original file content, so that the file with the preset format obtained by applying the method is larger than the file with the preset format obtained by directly storing the file content, and further the storage space is large.
Disclosure of Invention
An object of embodiments of the present invention is to provide a method and an apparatus for saving a file, so as to reduce a storage space occupied by the file while preventing the content of the file from being copied. The specific technical scheme is as follows:
the embodiment of the invention provides a method for saving files, which comprises the following steps:
determining the font index of each character in the font file in the file content of the target file;
and storing the font index of each character in the file content according to the arrangement of the characters in the file content, thereby realizing the storage of the target file.
In an implementation manner of the present invention, the determining a font index of each character in a font file in the file content of the target file includes:
analyzing the target file to obtain an analysis result of the corresponding relation between the font index and the code of each character in the font file, wherein the corresponding relation of the code is as follows: the corresponding relation between the font index code and the ten-thousand state code of each character in the file content;
obtaining the font index of each character in the file content in the font file from the analysis result;
the storing of the target file by storing the font index of each character in the file content according to the arrangement of the characters in the file content comprises the following steps:
and storing the obtained font index according to the arrangement of the characters in the file content, and deleting the code corresponding relation to realize the storage of the target file.
In an implementation manner of the present invention, before storing the obtained font index according to the arrangement of the characters in the file content, and deleting the code correspondence, and implementing storage of the target file, the method further includes:
backing up the code corresponding relation;
after the storing the target file by storing the obtained font index according to the arrangement of the characters in the file content and deleting the code corresponding relation, the method further comprises the following steps:
obtaining a storage mode conversion instruction for the target file, wherein the storage mode conversion instruction is used for indicating that the target file is converted from a text copy prevention mode to a text copy permission mode;
and storing the code corresponding relation as a part of the target file.
In an implementation manner of the present invention, before storing the font index of each character in the file content according to the arrangement of the characters in the file content, the method further includes:
judging whether the file is stored in a text anti-copy mode or not;
if so, executing the step of storing the font index of each character in the file content according to the arrangement of the characters in the file content.
In an implementation manner of the present invention, the target file is a file in a PDF format.
An embodiment of the present invention further provides a device for saving a file, including:
the index determining module is used for determining the font index of each character in the font file in the file content of the target file;
and the index storage module is used for storing the font index of each character in the file content according to the arrangement of the characters in the file content, so as to realize the storage of the target file.
In an implementation manner of the present invention, the index determining module includes:
the file analysis submodule is used for analyzing the target file and obtaining an analysis result of the font index and the code corresponding relation of each character in the file content of the target file in the font file, wherein the code corresponding relation is as follows: the corresponding relation between the font index code and the ten-thousand state code of each character in the file content;
the index obtaining submodule is used for obtaining the font index of each character in the file content in the font file from the analysis result;
the index storage module comprises:
and the index storage submodule is used for storing the obtained font index according to the arrangement of the characters in the file content, deleting the code corresponding relation and realizing the storage of the target file.
In an implementation manner of the present invention, the index storage sub-module further includes:
a data backup unit, configured to backup the code correspondence relationship before storing the obtained font index according to the arrangement of the characters in the file content and deleting the code correspondence relationship;
the device for saving files further comprises:
the instruction obtaining module is used for obtaining a storage mode conversion instruction aiming at the target file after the index storage submodule realizes file saving, wherein the storage mode conversion instruction is used for indicating that the target file is converted from a character copy prevention mode to a character copy permission mode;
and the file storage module is used for storing the code corresponding relation as a part of the target file after the storage mode conversion instruction for the target file is obtained.
In an implementation manner of the present invention, the apparatus for saving a file further includes:
and the mode judging module is used for judging whether the file is stored in a text anti-copying mode or not before the index storage module realizes file storage, and if so, triggering the index storage module.
In an implementation manner of the present invention, the target file is a file in a PDF format.
The embodiment of the invention also provides electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the steps of the file saving method when executing the program stored in the memory.
In yet another aspect of the present invention, the present invention further provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform any of the above-mentioned steps of the file saving method.
In yet another aspect of the present invention, an embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the above-mentioned methods for saving a file.
The method and the device for saving the file provided by the embodiment of the invention can store the font index of each character according to the arrangement of the characters in the file content to finish the saving of the file.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for saving a file according to an embodiment of the present invention;
FIG. 2 is another flowchart of a method for saving a file according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a file saving apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method and a device for saving files, and concepts related to the embodiment of the invention are explained first.
The font index code is an identification code for indicating characters in the file content, and the font can be found in the font file according to the identification code when the file reading software displays the characters and then the characters are displayed.
Ten thousand codes are an industry standard in the field of computer science, including character sets and encoding schemes. The ten-thousand-state code sets a uniform and unique binary code for each character in each language so as to meet the requirements of cross-language and cross-platform text conversion and processing.
The following describes in detail the method for saving a file according to an embodiment of the present invention with reference to specific embodiments.
Referring to fig. 1, fig. 1 is a flowchart of a method for saving a file according to an embodiment of the present invention, including the following steps:
step S101, determining the font index of each character in the font file in the file content of the target file.
The target file may be a file already stored in the local hard disk, or may be a file being edited that is not yet stored in the local hard disk.
For the target file stored in the local hard disk, the content stored in the target file includes the font index of each character in the font file in the file content of the target file, and the font index can be obtained by analyzing the target file. For the target file which is being edited and is not stored in the local hard disk, the font index of each character of the target file in the font file used in the editing process can be obtained.
The font file may be internal to the target file, i.e., the font file may be part of the target file. The font file may be a file stored in a local hard disk, that is, a font file not included in the target file, and may be a font file stored in a local hard disk when the file editing software is installed, for example.
And S102, storing the font index of each character in the file content according to the arrangement of the characters in the file content, and realizing the storage of the target file.
The arrangement of the characters in the file content refers to the sequencing of the characters in the file content according to the reading sequence.
In one implementation of the present invention, the arrangement of the text in the document content can be represented by using the page number of the text in the document content and the planar coordinate position within the page. Based on this, when storing the font index of each character in the document content according to the arrangement of the characters in the document content, the font index can be stored based on the page number of the character in the document content and the planar coordinate position in the page. The plane coordinate position in the page refers to the position of the characters in the page.
For example, the font index of the text included in each page is stored in order by page number. When storing the font index of the text included in each page, the font index of each text may be sequentially stored in the order of arrangement of the planar coordinate positions in the page of each text. In this case, when the same character appears multiple times in one page of the document content, the font index of the character may be stored multiple times at the planar coordinate position in the page corresponding to the position where the character appears.
In view of the above description, after storing the font index based on the page number of the text in the file content and the planar coordinate position within the page, the saving of the target file is completed.
After the target file is stored based on the above steps S101 and S102, since the stored file includes the font index of each character in the file content, and the character corresponding to the font index can be found in the font file according to the font index, the target file can be displayed or printed based on the font index, but since the copy operation needs to be implemented by acquiring the ten thousand codes of the copied content, only the font index can be acquired from the stored file, and the ten thousand codes of the copied content cannot be acquired, the characters in the stored file cannot be copied.
The method for saving the file provided by the embodiment of the invention can store the font index of each character according to the arrangement of the characters in the file content to finish the saving of the file.
In an implementation manner of the present invention, when the font index of each character in the font file in the file content of the target file is determined in step S101, the target file may be analyzed first to obtain an analysis result including a correspondence between the font index and the code in the font file of each character in the file content of the target file, and then the font index in the font file of each character in the file content is obtained from the analysis result.
In the step S102, the font index of each character in the file content is stored according to the arrangement of the characters in the file content, and when the target file is stored, the obtained font index may be stored according to the arrangement of the characters in the file content, and the corresponding relationship of the codes is deleted, so that the target file is stored.
Wherein, the code corresponding relation is as follows: the corresponding relation between the font index code and the ten thousand state code of each character in the file content.
The universal codes are globally uniform and can be identified by a plurality of programs, when a user copies the text content in the target file, the program can firstly determine the universal codes corresponding to the selected text content in the target file, and then store the determined universal codes in a data transfer station of the system, such as a shear plate.
For a file allowing characters to be copied, the code corresponding relation is stored in the file, the font index and the code corresponding relation of each character in the font file can be used in the process of copying the characters, and the font index and the code corresponding relation of each character in the font file can be analyzed by a method for copying the characters.
In the implementation mode, the font index and the code corresponding relation of each character in the font file are obtained through analysis, the font index is stored, the code corresponding relation is deleted, the characters can be prevented from being copied after the existing file capable of copying the characters is stored through the implementation mode, and the storage space occupied by the file can be reduced due to the fact that the code corresponding relation is deleted.
Based on the above implementation manner, in another implementation manner of the present invention, the code correspondence may be backed up before the storage of the target file is implemented by storing the obtained font index and deleting the code correspondence according to the arrangement of the characters in the file content. After the target file is stored, the storage mode conversion instruction for the target file can be obtained first, and then the code corresponding relation is stored as a part of the target file.
The storage mode conversion instruction is used for indicating that the target file is converted from the text copy prevention mode to the text copy permission mode. The storage mode switching instruction may be implemented by a virtual button in the editing software or reading software of the target file.
The code correspondence relationship can be encrypted for backup so as to prevent the backup code correspondence relationship from being found by other programs before a storage mode conversion instruction for the target file is obtained, thereby cracking the limitation that the characters in the target file cannot be copied.
The contents of the backup may not be under the same storage path of the target file to prevent easy finding of the backup.
According to the implementation mode, the corresponding relation is stored as a part of the target file after the storage mode conversion instruction for the target file is obtained through the corresponding relation of the backup codes. The confidentiality requirement of the file is not always constant, if the reader is allowed to copy after the confidentiality of the file is reduced, the scheme provided by the implementation mode can be applied, and the stored file for preventing the file content from being copied can be changed into a state for allowing the text to be copied.
In an implementation manner of the present invention, in the above step S102, the font index of each character in the file content is stored according to the arrangement of the characters in the file content, before the target file is stored, it may be determined whether the file is stored in a character copy prevention manner, if so, the step S102 is executed, and the font index of each character in the file content is stored according to the arrangement of the characters in the file content, so as to store the target file.
In the implementation mode, a virtual button for storing the file in a text copy prevention mode can be set in software, the button is in a pressed state and represents that the file is stored in the text copy prevention mode, and the button is in a released state and does not store the file in the text copy prevention mode.
The method adds the judgment on whether the file is stored in the character copy prevention mode before the file is stored in the character copy prevention mode, and can flexibly switch between two modes of preventing or allowing the characters to be copied.
In one implementation of the present invention, the target file is a file in PDF format.
A PDF formatted file is a display-based file that may be stored with the file in glyphs or fonts and transmitted. If the font style or font of a text is not commonly used, the font file carried by the system may not have the font style of the text, and the PDF format file usually embeds the font file into the PDF format file itself. For PDF format files, the invention can ensure that the font index of each character in the font file in the file content of the target file can be determined.
The following describes the above-mentioned method for saving files in detail with reference to the accompanying drawings.
Fig. 2 is another flowchart of a file saving method according to an embodiment of the present invention, which may specifically include the following steps:
step 201, analyzing the target PDF format file to obtain an analysis result of the corresponding relationship between the font index and the code of each character in the font file of the file content containing the target PDF format file.
Step 202, obtaining the font index of each character in the file content in the font file from the analysis result.
In the embodiment of the invention, if the font of a character can be determined by the font file stored in the local hard disk, the font index of the character is obtained by the font file. If the font of a character cannot be determined by the font file stored in the local hard disk, the font index of the character can be obtained from the font file in the PDF format character.
Step 203, backup code corresponding relation.
In the embodiment of the invention, the backup code corresponding relation can be stored in an encrypted manner under the file storage path of the program product.
And step 204, storing the obtained font index according to the arrangement of the characters in the file content, and deleting the corresponding relation of the codes.
Step 205, obtaining a storage mode conversion instruction for the target PDF format file.
And step 206, storing the code corresponding relation as a part of the target PDF format file.
In the embodiment of the invention, the code corresponding relation and the original font index can be stored together, and the code corresponding relation and the original font index are stored as a new PDF format file in an additional storage mode without covering the original target PDF format file.
Based on the same inventive concept, according to the method for saving a file provided in the above embodiment of the present invention, correspondingly, an embodiment of the present invention further provides a device for saving a file, a schematic structural diagram of which is shown in fig. 3, and the method specifically includes:
an index determining module 301, configured to determine a font index of each character in the font file in the file content of the target file;
and an index storage module 302, configured to store the font index of each character in the file content according to the arrangement of the characters in the file content, so as to store the target file.
The device for saving the file provided by the embodiment of the invention can store the font index of each character according to the arrangement of the characters in the file content to finish the saving of the file.
In an implementation manner of the present invention, the index determining module 301 includes:
the file analysis submodule is used for analyzing the target file and obtaining an analysis result of the font index and the code corresponding relation of each character in the file content of the target file in the font file, wherein the code corresponding relation is as follows: the corresponding relation between the font index code and the ten-thousand state code of each character in the file content;
the index obtaining submodule is used for obtaining the font index of each character in the file content in the font file from the analysis result;
the index storage module 302 includes:
and the index storage submodule is used for storing the obtained font index according to the arrangement of the characters in the file content, deleting the code corresponding relation and realizing the storage of the target file.
In the implementation mode, the font index and the code corresponding relation of each character in the font file are obtained through analysis, the font index is stored, the code corresponding relation is deleted, the characters can be prevented from being copied after the existing file capable of copying the characters is stored through the implementation mode, and the storage space occupied by the file can be reduced due to the fact that the code corresponding relation is deleted.
In an implementation manner of the present invention, the index storage sub-module further includes:
a data backup unit, configured to backup the code correspondence relationship before storing the obtained font index according to the arrangement of the characters in the file content and deleting the code correspondence relationship;
the device for saving files further comprises:
the instruction obtaining module is used for obtaining a storage mode conversion instruction aiming at the target file after the index storage submodule realizes file saving, wherein the storage mode conversion instruction is used for indicating that the target file is converted from a character copy prevention mode to a character copy permission mode;
and the file storage module is used for storing the code corresponding relation as a part of the target file after the storage mode conversion instruction for the target file is obtained.
According to the implementation mode, the corresponding relation is stored as a part of the target file after the storage mode conversion instruction for the target file is obtained through the corresponding relation of the backup codes. The confidentiality requirement of the file is not always constant, if the reader is allowed to copy after the confidentiality of the file is reduced, the scheme provided by the implementation mode can be applied, and the stored file for preventing the file content from being copied can be changed into a state for allowing the text to be copied.
In an implementation manner of the present invention, the apparatus for saving a file further includes:
and a mode judging module, configured to judge whether to store the file in a text anti-copy mode before the index storage module 302 implements file storage, and if so, trigger the index storage module.
The method adds the judgment on whether the file is stored in the character copy prevention mode before the file is stored in the character copy prevention mode, and can flexibly switch between two modes of preventing or allowing the characters to be copied.
In an implementation manner of the present invention, the target file is a file in a PDF format.
A PDF formatted file is a display-based file that may be stored with the file in glyphs or fonts and transmitted. If the font style or font of a text is not commonly used, the font file carried by the system may not have the font style of the text, and the PDF format file usually embeds the font file into the PDF format file itself. For PDF format files, the invention can ensure that the font index of each character in the font file in the file content of the target file can be determined.
Based on the same inventive concept, according to the method for saving a file provided by the above embodiment of the present invention, correspondingly, the embodiment of the present invention further provides an electronic device, as shown in fig. 4, which includes a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401 is configured to implement the steps of any of the file saving methods in the above embodiments when executing the program stored in the memory 403.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The electronic equipment for storing the file provided by the embodiment of the invention can store the font index of each character according to the arrangement of the characters in the file content to finish the storage of the file.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which has instructions stored therein, and when the instructions are executed on a computer, the instructions cause the computer to perform the steps of any of the above-mentioned file saving methods.
In yet another embodiment, a computer program product containing instructions is provided, which when run on a computer causes the computer to perform any of the above-described methods for saving files.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to them, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method of saving a file, comprising:
determining the font index of each character in the font file in the file content of the target file;
and storing the font index of each character in the file content according to the arrangement of the characters in the file content, thereby realizing the storage of the target file.
2. The method of claim 1, wherein determining the glyph index of each text in the font file in the file content of the target file comprises:
analyzing the target file to obtain an analysis result of the corresponding relation between the font index and the code of each character in the font file, wherein the corresponding relation of the code is as follows: the corresponding relation between the font index code and the ten-thousand state code of each character in the file content;
obtaining the font index of each character in the file content in the font file from the analysis result;
the storing of the target file by storing the font index of each character in the file content according to the arrangement of the characters in the file content comprises the following steps:
and storing the obtained font index according to the arrangement of the characters in the file content, and deleting the code corresponding relation to realize the storage of the target file.
3. The method according to claim 2, wherein before storing the obtained glyph index according to the arrangement of the characters in the file content, deleting the code correspondence, and implementing the storage of the target file, the method further comprises:
backing up the code corresponding relation;
after the storing the target file by storing the obtained font index according to the arrangement of the characters in the file content and deleting the code corresponding relation, the method further comprises the following steps:
obtaining a storage mode conversion instruction for the target file, wherein the storage mode conversion instruction is used for indicating that the target file is converted from a text copy prevention mode to a text copy permission mode;
and storing the code corresponding relation as a part of the target file.
4. The method according to claim 1, further comprising, before storing the glyph index for each text in the document content according to the arrangement of the text in the document content:
judging whether the file is stored in a text anti-copy mode or not;
if so, executing the step of storing the font index of each character in the file content according to the arrangement of the characters in the file content.
5. The method according to any one of claims 1-4, wherein the target file is a PDF formatted file.
6. An apparatus for saving a file, comprising:
the index determining module is used for determining the font index of each character in the font file in the file content of the target file;
and the index storage module is used for storing the font index of each character in the file content according to the arrangement of the characters in the file content, so as to realize the storage of the target file.
7. The apparatus of claim 6, wherein the index determination module comprises:
the file analysis submodule is used for analyzing the target file and obtaining an analysis result of the font index and the code corresponding relation of each character in the file content of the target file in the font file, wherein the code corresponding relation is as follows: the corresponding relation between the font index code and the ten-thousand state code of each character in the file content;
the index obtaining submodule is used for obtaining the font index of each character in the file content in the font file from the analysis result;
the index storage module comprises:
and the index storage submodule is used for storing the obtained font index according to the arrangement of the characters in the file content, deleting the code corresponding relation and realizing the storage of the target file.
8. The apparatus of claim 7, wherein the index storage submodule further comprises:
the data backup unit is used for backing up the code corresponding relation before the index storage submodule deletes the code corresponding relation;
the device for saving files further comprises:
the instruction obtaining module is used for obtaining a storage mode conversion instruction aiming at the target file after the index storage submodule realizes file saving, wherein the storage mode conversion instruction is used for indicating that the target file is converted from a character copy prevention mode to a character copy permission mode;
and the file storage module is used for storing the code corresponding relation as a part of the target file after the storage mode conversion instruction for the target file is obtained.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN201810844566.0A 2018-07-27 2018-07-27 Method and device for saving file Pending CN110765072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810844566.0A CN110765072A (en) 2018-07-27 2018-07-27 Method and device for saving file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810844566.0A CN110765072A (en) 2018-07-27 2018-07-27 Method and device for saving file

Publications (1)

Publication Number Publication Date
CN110765072A true CN110765072A (en) 2020-02-07

Family

ID=69327768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810844566.0A Pending CN110765072A (en) 2018-07-27 2018-07-27 Method and device for saving file

Country Status (1)

Country Link
CN (1) CN110765072A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060285138A1 (en) * 2005-06-21 2006-12-21 Thomas Merz Method of determining unicode values corresponding to text in digital documents
CN101187939A (en) * 2007-11-22 2008-05-28 北大方正集团有限公司 A font file built-in method and device
CN101625848A (en) * 2009-07-28 2010-01-13 宁波新然电子信息科技发展有限公司 Realization method of vector font library oriented to embedded platform
US20100302078A1 (en) * 2007-11-02 2010-12-02 Symbol Technologies, Inc. Efficient encoding and decoding of mixed data strings in rfid tags and other media
CN101996160A (en) * 2009-08-10 2011-03-30 北大方正集团有限公司 Method and system for processing script data
CN103870583A (en) * 2014-03-25 2014-06-18 东方电气集团东方汽轮机有限公司 Relational-database-based online and controllable browsing method for PDF document
CN105488471A (en) * 2015-11-30 2016-04-13 北大方正集团有限公司 Character pattern recognition method and device
CN105740267A (en) * 2014-12-10 2016-07-06 北大方正集团有限公司 PDF (Portable Document Format) file processing method and apparatus
CN106844313A (en) * 2017-02-20 2017-06-13 济南浪潮高新科技投资发展有限公司 A kind of method and apparatus that Word file is converted into html file
CN106845159A (en) * 2015-12-03 2017-06-13 福建福昕软件开发股份有限公司 A kind of PDF texts mess code method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060285138A1 (en) * 2005-06-21 2006-12-21 Thomas Merz Method of determining unicode values corresponding to text in digital documents
US20100302078A1 (en) * 2007-11-02 2010-12-02 Symbol Technologies, Inc. Efficient encoding and decoding of mixed data strings in rfid tags and other media
CN101187939A (en) * 2007-11-22 2008-05-28 北大方正集团有限公司 A font file built-in method and device
CN101625848A (en) * 2009-07-28 2010-01-13 宁波新然电子信息科技发展有限公司 Realization method of vector font library oriented to embedded platform
CN101996160A (en) * 2009-08-10 2011-03-30 北大方正集团有限公司 Method and system for processing script data
CN103870583A (en) * 2014-03-25 2014-06-18 东方电气集团东方汽轮机有限公司 Relational-database-based online and controllable browsing method for PDF document
CN105740267A (en) * 2014-12-10 2016-07-06 北大方正集团有限公司 PDF (Portable Document Format) file processing method and apparatus
CN105488471A (en) * 2015-11-30 2016-04-13 北大方正集团有限公司 Character pattern recognition method and device
CN106845159A (en) * 2015-12-03 2017-06-13 福建福昕软件开发股份有限公司 A kind of PDF texts mess code method
CN106844313A (en) * 2017-02-20 2017-06-13 济南浪潮高新科技投资发展有限公司 A kind of method and apparatus that Word file is converted into html file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
随心更博: "PDF复制乱码 -- 原因及解决方案", 《CSDN博客HTTPS://BLOG.CSDN.NET/FXQ8866/ARTICLE/DETAILS/51627607》 *

Similar Documents

Publication Publication Date Title
US10742833B2 (en) Scan privacy tool for printing operations
US20070236717A1 (en) Printer, Print Data Output Device, Method, Computer Readable Medium, And Computer Data Signal
CN111444750B (en) PDF document identification method and device and electronic equipment
US20150169508A1 (en) Obfuscating page-description language output to thwart conversion to an editable format
JP2008137233A (en) Duplicating system, duplicator, information processor, method for duplicating, duplicated manuscript forming method, program, and recording medium
US10110771B2 (en) Managing printed documents in a document processing system
CN112506883A (en) Document tracing method and device, electronic equipment and storage medium
CN110765072A (en) Method and device for saving file
CN111695327B (en) Method and device for repairing messy codes, electronic equipment and readable storage medium
CN111553130A (en) Chapter title style conversion method and device, electronic equipment and storage medium
KR101794169B1 (en) Personal data detecting and masking system and method based on printed position of hwp file
CN111079399B (en) Image-text data processing method, image-text data processing device, computer equipment and storage medium
CN111563364B (en) Chapter title style conversion method and device, electronic equipment and storage medium
CN113590564A (en) Data storage method and device, electronic equipment and storage medium
CN112597851A (en) Signature acquisition method and device, electronic equipment and storage medium
JP6190549B1 (en) Document processing system
CN113627129A (en) Character copying method and device, electronic equipment and readable storage medium
CN103970799A (en) Electronic document generating method, electronic document generating device and client-side
US11190661B2 (en) Scan privacy tool using a mobile device for printing operations
CN112784542B (en) Document editing method and device
US11550934B2 (en) Systems and methods for the efficient detection of improperly redacted electronic documents
CN111428210B (en) Method and device for editing watermark and electronic equipment
WO2003073360A1 (en) 2-dimensional bar code print method with summary information
US20230161891A1 (en) Information processing apparatus, non-transitory computer readable medium storing information processing program, and information processing method
CN110457659B (en) Clause document generation method and terminal equipment

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: 20200207