CN115618806A - PPT document processing method and device - Google Patents
PPT document processing method and device Download PDFInfo
- Publication number
- CN115618806A CN115618806A CN202211060913.3A CN202211060913A CN115618806A CN 115618806 A CN115618806 A CN 115618806A CN 202211060913 A CN202211060913 A CN 202211060913A CN 115618806 A CN115618806 A CN 115618806A
- Authority
- CN
- China
- Prior art keywords
- ppt
- information
- module
- document
- company
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/117—Tagging; Marking up; Designating a block; Setting of attributes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Bioethics (AREA)
- Document Processing Apparatus (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
The invention provides a PPT document processing method and a PPT document processing device, wherein the PPT document processing method comprises the following steps: determining the basic content of the PPT master plate according to the basic information of a company, and carrying out font design, typesetting and color matching on the basic content to obtain the PPT master plate; designing a content tag for each module in the PPT master plate, classifying and extracting information to be inserted based on the content tag to obtain sub-information, and inputting the sub-information into the corresponding module to obtain a PPT document; the invention provides a PPT document processing method and a PPT document processing device, wherein the PPT document is manufactured and encrypted on the basis of a PPT master plate, and the efficiency of PPT document manufacturing, the adaptation degree to a company and the safety are improved.
Description
Technical Field
The invention relates to the field of slide design and manufacture, in particular to a PPT document processing method and device.
Background
The English of the slide is called PowerPoint, abbreviated as PPT, which is a graphic presentation software promoted by Microsoft corporation, and is usually used in various conferences and training, so that the conferences and training contents can be displayed more vividly and intuitively. In the current work, an exquisite PPT facing the interior of a company can make the reporting content of a reporter more attractive, so that work key points and bright spots of the reporter are led out, and finally a deep impression is left on the work result of the reporter. The exquisite PPT facing the outside of the company can clearly reflect the characteristics of products, show the specialty of the company from the specialty manufactured by PPT and effectively transmit company brands to the outside. Since PPT is so helpful to work, how can a fine and professional PPT woolen be quickly and effectively manufactured? The PPT is required to be rapidly manufactured, the specialty of a company is embodied, and meanwhile the brand of the company can be delivered, so that the design of a slide master plate is not required. The PPT reporter can design a slide master plate suitable for the PPT reporter according to the characteristics of the report content and the report object, and the content of each module is added on the basis of the master plate, so that the commercial PPT which can show the specialty of a company and transfer the brand sense of the company can be rapidly completed.
Through retrieval, a Chinese patent application No. 201510620821.X discloses a big data classification method, which comprises a big data criminal conspire screening system, wherein an acquisition module is used for acquiring signaling data, a preprocessing module is used for performing association analysis on the signaling data, a summarizing module is used for summarizing the association analysis data, and a page display module is used for displaying according to a query result; a big data criminal partnership screening system and method in the patent comprise the steps of collecting signaling data of a designated user, carrying out correlation analysis and summarization on the signaling data, and displaying criminal partnership tracks through a geographic information platform, wherein the big data criminal partnership screening system and method have the following defects:
(1) The PPT master lacks basic content elements, and usually commercial PPT needs to contain company logo, but the content is not given in the publication.
(2) The PPT lacks a protection mode, the commercial PPT has certain confidentiality, and if no protection measures are adopted, the commercial PPT can be used by competitors in the same industry once the PPT is streamed out, so that the watermarking of the PPT is an effective mode for protecting the PPT.
(3) The PPT master plate lacks color matching, the exquisite PPT usually needs the uniformity of color tones, and the uniform color tones can not be separated from the color matching design of the slide master plate.
Disclosure of Invention
The invention provides a PPT document processing method and device, which are used for improving the efficiency of PPT document manufacturing, the adaptation degree to a company and the safety by manufacturing the PPT document on the basis of a PPT master matrix and encrypting the PPT document.
A method of processing a PPT document, comprising:
step 1: determining the basic content of the PPT master plate according to the basic information of a company, and carrying out font design, typesetting and color matching on the basic content to obtain the PPT master plate;
step 2: designing a content tag for each module in the PPT master plate, classifying and extracting information to be inserted based on the content tag to obtain sub-information, and inputting the sub-information into the corresponding module to obtain a PPT document;
and 3, step 3: and encrypting the PPT document based on the company personnel information to obtain an encrypted document.
Preferably, in step 1, determining the basic content of the PPT master according to the basic information of the company includes:
determining corresponding company characteristic content of the PPT master plate according to the basic information of the company;
performing attribute extraction on the contents of a common mother board to obtain the conventional contents of the PPT mother board;
the company characteristic content and the conventional content form the basic content of the PPT master plate.
Preferably, in step 1, performing font design, layout and color matching on the basic content to obtain a PPT master plate includes:
designing the font size of the basic content according to the first attribute of the basic content, and designing the font and the color of the basic content according to the second attribute of the basic content;
selecting a typesetting mode with the highest format matching degree with the basic content from a typesetting database, and typesetting the basic content;
determining the main color of the company according to the basic information of the company, and performing color matching on the basic content according to the third attribute of the basic content by taking the main color as a reference;
and carrying out font design, typesetting and color matching on the basic content to obtain the PPT master plate.
Preferably, in step 2, designing a content tag for each module in the PPT master includes:
setting module levels according to the sequence of the font sizes from large to small in the PPT master plate, performing module division on the basic content of the PPT master plate according to the font sizes and the corresponding module levels thereof, dividing the basic content into a plurality of modules, and determining the module level of each module;
for modules with the same module grade, designing a content label for each module according to the characteristics of the corresponding basic content of the module; the module rating and content label for each module are obtained.
Preferably, in step 2, based on the content tag, classifying and extracting the information to be inserted, and obtaining the sub-information includes:
establishing an information structure of the inserted information according to the content tag, and establishing a node relation between nodes in the information structure;
selecting a main node from the information structure, traversing the information to be inserted according to the node characteristics of the main node, and extracting first information corresponding to the node characteristics;
determining a keyword corresponding to each node according to the node relation and the first information, and extracting the information to be inserted based on the keywords to obtain second information corresponding to each node;
and taking the first information and the second information as the sub information.
Preferably, in step 2, inputting the sub-information into a corresponding module, and obtaining the PPT document includes:
acquiring the page number of each module in the PPT master plate and the position of each module in the corresponding page number, and setting an input sequence for each module based on the page number and the position of each module in the corresponding page number;
based on a content tag of a module, marking sub information corresponding to the module, specifically, performing first marking on a head end of the sub information, and performing second marking on a tail end of the sub information;
performing third marking on the whole sub-information based on the input sequence, performing fourth marking on a module based on the input sequence, and establishing a corresponding relation between the third marking and the fourth marking;
manually inputting the sub-information into a corresponding module based on the first mark, the second mark and the corresponding relation to obtain a first PPT document;
inputting the first PPT document into a preset text detection model, and carrying out upper and lower logic detection and internal logic detection on the sub information in each module to obtain a detection result of the sub information in each module;
acquiring first sub information with upper and lower logic abnormality from the detection result, replacing the first sub information, acquiring second sub information with internal logic abnormality, and deleting the second sub information to obtain a second PPT document;
acquiring the document position and format requirement of each module in the second PPT document, establishing a format detection model based on the document position and format requirement, and inputting the second PPT document into the format detection model to obtain a format detection result;
obtaining third sub information with an incorrect format from the format detection result, and carrying out fourth marking on the third sub information;
according to the fourth mark, format modification is manually carried out on the third sub-information to obtain a third PPT document;
the third PPT document is a final PPT document.
Preferably, in step 2, obtaining the PPT document further includes adding a company watermark to the PPT document, where the adding includes:
designing a company watermark for a company and a PPT document based on a logo of the company and a color system of the PPT document;
acquiring a carrier image in the PPT document, performing discrete cosine transform on the carrier image to obtain transformed image data, dividing the carrier image into a plurality of data blocks according to frequency components of the image data, and selecting the data blocks with the frequency components within a preset range as data blocks to be selected;
performing characteristic analysis on the data block to be selected to obtain a characteristic value, and selecting the data block with the characteristic value within a preset range as a target data block;
performing gray level transformation on the target data block to obtain a gray level image, acquiring a gray level equilibrium histogram corresponding to the gray level image, and determining a median gray level value and an average gray level value of the gray level image based on the gray level equilibrium histogram;
processing the median gray value and the average gray value based on the gray level of the median gray value and the average gray value in the gray balance histogram to obtain a first gray value;
setting a second gray value based on the watermark gray image of the company watermark, and setting a target gray value based on the first gray value and the second gray value;
determining the gray images with gray values larger than the target gray value as first images, determining the gray images with gray values smaller than the target gray value as second images, and setting the other images as third images;
for the first image, performing negative energy conversion on the watermark gray image based on the target gray value to obtain a first watermark image, and adding the first watermark image to the first image to obtain a loaded watermark image;
for the second image, performing negative energy conversion on the watermark gray image based on the target gray value to obtain a second watermark image, and adding the second watermark image to the second image to obtain a loaded watermark image;
for the third image, adding the watermark gray images to the third image to obtain a watermark loading image;
and restoring the watermark loading image to obtain a carrier image in the PPT document after the watermark is added, and finishing adding the watermark to the PPT document company.
Preferably, the processing the median gray value and the average gray value based on the gray level of the median gray value and the average gray value in the gray balance histogram to obtain the first gray value includes:
acquiring the gray level difference level of the median gray value and the average gray value;
if the difference level is within a preset difference level range, acquiring an average value of the median gray value and the average gray value as a first gray value;
and otherwise, taking the gray value corresponding to the higher gray level in the median gray value and the average gray value as a first gray value.
Preferably, in step 3, encrypting the PPT document based on company personnel information to obtain an encrypted document includes:
determining the authority of the company personnel to the PPT document based on the company personnel information;
according to the authority, the PPT document is encrypted by utilizing the identity information of the company personnel, and the method specifically comprises the following steps:
carrying out authority division on the personnel by utilizing the personnel identity information to obtain the corresponding authority of the company personnel;
acquiring first person identity information with only readable authority, and based on the first person identity information, carrying out readable encryption on the PPT document to generate read-only authentication;
acquiring second personnel identity information with the right having both readable right and modifiable right, and performing modifiable encryption on the PPT document based on the second personnel identity information to generate modifiable authentication;
completing encryption of the PPT document based on the readable authentication and the modifiable authentication;
meanwhile, the method also comprises another encryption mode, namely, the PPT document is encrypted only by reading through the first password, and is encrypted in a modifiable mode through the second password, so that the encryption of the PPT document is completed.
A processing apparatus for a PPT document, comprising:
the master plate manufacturing module is used for determining the basic content of the PPT master plate according to the basic information of a company, and performing font design, typesetting and color matching on the basic content to obtain the PPT master plate;
the document making module is used for designing a content tag for each module in the PPT master matrix, classifying and extracting information to be inserted based on the content tag to obtain sub-information, and inputting the sub-information into the corresponding module to obtain a PPT document;
and the document encryption module is used for encrypting the PPT document based on the company personnel information to obtain an encrypted document.
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 the 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.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which 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 description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a method for processing a PPT document according to an embodiment of the present invention;
FIG. 2 is another flow chart in an embodiment of the present invention;
fig. 3 is a block diagram of a processing device for PPT documents in an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Example 1
An embodiment of the present invention provides a method for processing a PPT document, as shown in fig. 1, including:
step 1: determining the basic content of the PPT master plate according to the basic information of a company, and carrying out font design, typesetting and color matching on the basic content to obtain the PPT master plate;
and 2, step: designing a content tag for each module in the PPT master plate, classifying and extracting information to be inserted based on the content tag to obtain sub-information, and inputting the sub-information into the corresponding module to obtain a PPT document;
and step 3: and encrypting the PPT document based on the company personnel information to obtain an encrypted document.
In this embodiment, the basic information of the company includes, for example, company name, company logo, company address, and other information for specifying company characteristics.
In this embodiment, the content tag of each module in the PPT master is related to the content placed under the module, for example, the title corresponding to the module, where the content tag is a title tag, and the corresponding sub-information is a title name to be inserted into the information.
In this embodiment, the PPT document is encrypted based on the corporate personnel information, that is, the authority of the corporate personnel to the PPT document is determined according to the corporate personnel information, and then the information for encrypting the PPT document is distributed to the corresponding corporate personnel according to the authority, so as to encrypt the PPT document.
The beneficial effect of above-mentioned design is: the method has the advantages that the display of company information in the PPT master plate is realized by carrying out font design, typesetting and color matching on the PPT master plate according to the basic information of a company, so that the whole PPT has uniform additional content, typesetting and color matching, in the declaration of external products, the company name and the company logo can be continuously strengthened according to the content and the typesetting mode in the master plate, meanwhile, the specialty of the company is embodied through the specialty of the PPT, and in the color matching method of the master plate, the PPT can be ensured to be simple and beautiful, the strong brand sense of the whole interface product can be realized, and the effect of transmitting the brand can be realized; the comprehensiveness and the delicacy of the content of the PPT master plate are guaranteed, the quality of the PPT master plate is guaranteed, corresponding information is inserted into each module by designing a content tag for each module in the PPT master plate, the efficiency and the accuracy of PPT document manufacturing are improved, the PPT document manufactured is encrypted according to company personnel information, and the safety of the PPT document is guaranteed.
Example 2
Based on embodiment 1, an embodiment of the present invention provides a method for processing a PPT document, where in step 1, determining basic content of a PPT master according to basic information of a company includes:
determining corresponding company feature content of the PPT master plate according to the basic information of the company;
performing attribute extraction on the contents of a common mother board to obtain the conventional contents of the PPT mother board;
the company characteristic content and the conventional content form the basic content of the PPT master plate.
In this embodiment, the company feature content includes a company name, a company logo, a company address, and the like, and the basic content includes a header and a footer, and a watermark and a page number label.
The beneficial effect of above-mentioned design is: the basic content of the PPT master plate is determined according to the content of the common master plate and the basic information of a company, so that the method has universality in each page of PPT, plays a role in explanation and ensures the quality of the PPT master plate.
Example 3
Based on embodiment 1, an embodiment of the present invention provides a processing method for a PPT document, where in step 1, performing font design, layout, and color matching on the basic content to obtain a PPT master template includes:
designing the font size of the basic content according to the first attribute of the basic content, and designing the font and the color of the basic content according to the second attribute of the basic content;
selecting a typesetting mode with the highest format matching degree with the basic content from a typesetting database, and typesetting the basic content;
determining the main color of the company according to the basic information of the company, and performing color matching on the basic content according to the third attribute of the basic content by taking the main color as a reference;
and carrying out font design, typesetting and color matching on the basic content to obtain the PPT master plate.
In this embodiment, the first attribute of the basic content is a content rating, the second attribute is a content tag, such as a body tag, an explanation tag, and the like, and the third attribute is a type of the content.
In the embodiment, after the contents contained in the PPT master are clarified, the establishment of the typeface of the text part in the contents is needed. The dimensions that are typically considered for a typeface are: font, font size, and color. In general, the font of the PPT should be kept consistent, and the font size and color can be adjusted differently according to different contents.
In this embodiment, after contents required to be included in the PPT master are determined, the contents need to be uniformly typeset, so that the contents of the master can be displayed more neatly and beautifully. For the header and the footer, the header is at the top end of the PPT master plate, and the header can be generally at the left position or the middle position of the top end; the pin is at the lower end of the PPT master plate, and is usually at the position right to the lower end of the PPT master plate. For company logo, it is usually placed in the upper right corner of the PPT master.
In this embodiment, after the composition of the contents of the PPT master is designed, a set of appropriate color matching of the PPT master needs to be selected to ensure the uniformity of the overall PPT color system and to highlight the texture of the PPT. Generally, color matching mainly considers three aspects of main color, auxiliary color and color system. The main color of the master plate should be selected from company logo, so that the hierarchy of PPT color can be kept simple, and the brand feeling can be highlighted. The secondary color of the master mask can be selected from logo of a company or a color matched with the main color, so that the highlighting of the main color can be assisted under the condition of not influencing the PPT theme color, and the whole picture is richer and fuller. For the selection of the color system of the master plate, the color system of the company logo also needs to be determined according to the color system of the company logo, the color system which is the same as the company logo or the color system with the color saturation slightly lower than that of the logo is selected as much as possible, and the company brand can be better highlighted through the color system selection.
The beneficial effect of above-mentioned design is: through the design and the manufacture of a commercial PPT master plate, the following effects can be achieved: (1) The PPT can be conveniently and rapidly manufactured, so that the whole PPT has uniform additional content, typesetting and color matching. (2) In the external product declaration, the company name and the company logo can be continuously strengthened according to the content and the typesetting mode in the master mask, and meanwhile, the specialty of the company is embodied through the specialty of the PPT. (3) In the color matching method of the master mask, the PPT is simple and attractive, the brand feeling of the whole interface product is strong, and the effect of transmitting the brand is achieved. (4) Meanwhile, the invention has high flexibility and expandability and can be migrated to various commercialized scenes.
Example 4
Based on embodiment 1, an embodiment of the present invention provides a method for processing a PPT document, where in step 1 and step 2, designing a content tag for each module in a PPT master includes:
setting module levels according to the sequence of font sizes in the PPT master plate from large to small, performing module division on the basic content of the PPT master plate according to the font sizes and the corresponding module levels thereof, dividing the basic content into a plurality of modules, and determining the module level of each module;
for modules with the same module grade, designing a content label for each module according to the characteristics of the corresponding basic content of the module; the module rating and content label for each module are obtained.
In this embodiment, the font size in the PPT master is determined according to the level of the content, for example, the first-level module corresponding to the title, the second-level module corresponding to the first-level title, the third-level module corresponding to the second-level title, and the like, and the content tag is the first-level title, the second first-level title, and the like in the second-level module.
The beneficial effect of above-mentioned design is: and designing a content tag for each module in the PPT master plate to provide a basis for manufacturing a PPT document.
Example 5
Based on embodiment 1, an embodiment of the present invention provides a method for processing a PPT document, where in step 2, as shown in fig. 2, based on the content tag, classifying and extracting information to be inserted, and obtaining sub-information includes:
step 21: establishing an information structure of the inserted information according to the content tag, and establishing a node relation between nodes in the information structure;
step 22: selecting a main node from the information structure, traversing the information to be inserted according to the node characteristics of the main node, and extracting first information corresponding to the node characteristics;
step 23: determining a keyword corresponding to each node according to the node relation and the first information, and extracting the information to be inserted based on the keywords to obtain second information corresponding to each node;
step 24: and taking the first information and the second information as the sub information.
In this embodiment, the node characteristics are associated with the content tags.
The beneficial effect of above-mentioned design is: the information structure of the inserted information is established according to the content label, so that the information of the inserted information is convenient to extract and classify, and the classification efficiency and accuracy of the inserted information are improved.
Example 6
Based on embodiment 1, an embodiment of the present invention provides a method for processing a PPT document, where in step 2, the inputting the sub-information into a corresponding module to obtain the PPT document includes:
acquiring the page number of each module in the PPT master plate and the position of each module in the corresponding page number, and setting an input sequence for each module based on the page number and the position of each module in the corresponding page number;
based on a content tag of a module, marking sub information corresponding to the module, specifically, performing first marking on a head end of the sub information, and performing second marking on a tail end of the sub information;
based on the input sequence, carrying out third marking on the whole sub information, carrying out fourth marking on a module based on the input sequence, and establishing a corresponding relation between the third marking and the fourth marking;
manually inputting the sub-information into a corresponding module based on the first mark, the second mark and the corresponding relation to obtain a first PPT document;
inputting the first PPT document into a preset text detection model, and performing upper-lower logic detection and internal logic detection on the sub information in each module to obtain a detection result of the sub information in each module;
acquiring first sub information with upper and lower logic abnormality from the detection result, replacing the first sub information, acquiring second sub information with internal logic abnormality, and deleting the second sub information to obtain a second PPT document;
acquiring the document position and format requirement of each module in the second PPT document, establishing a format detection model based on the document position and format requirement, and inputting the second PPT document into the format detection model to obtain a format detection result;
obtaining third sub information with an incorrect format from the format detection result, and carrying out fourth marking on the third sub information;
according to the fourth mark, format modification is manually carried out on the third sub-information, and a third PPT document is obtained;
the third PPT document is a final PPT document.
In this embodiment, the sub information is manually and sequentially input into the corresponding module according to the input sequence, so as to ensure the input efficiency of the sub information.
In this embodiment, the first mark and the second mark are used to specify which sub information is specifically included, which facilitates manual interception and input of the sub information into the corresponding module.
In this embodiment, the corresponding relationship between the third mark and the fourth mark visually shows the position of the sub-information in the module in the PPT master, so that the worker can recognize the sub-information, and the PPT manufacturing efficiency is improved.
In this embodiment, the text detection model is a logic requirement for determining module self-construction and module internal input sub-information according to module presetting.
In this embodiment, the upper and lower logics are logical relationships between modules, the internal logic is a logical relationship of sub information inside the modules, the corresponding first sub information is information in the whole module, and the second sub information is partial information in the module.
The beneficial effect of above-mentioned design is: by setting a reasonable input sequence according to the position of each module in the PPT master, and marking the head and tail of each piece of sub information, a basis is provided for manually inputting the sub information into the corresponding module, and the input efficiency is ensured. And secondly, the efficiency of manufacturing the PPT is improved, meanwhile, the detection of the content and the format of the sub-information in each module is detected by establishing a detection model part, the detection efficiency and the accuracy of the sub-information are improved, and Nie Rong modification and format modification are carried out on the sub-information according to the detection result, so that the quality of the PPT document is ensured.
Example 7
Based on embodiment 1, an embodiment of the present invention provides a method for processing a PPT document, where in step 2, a PPT document is obtained, and adding a company watermark to the PPT document includes:
designing a company watermark for a company and a PPT document based on a logo of the company and a color system of the PPT document;
acquiring a carrier image in the PPT document, performing discrete cosine transform on the carrier image to obtain transformed image data, dividing the carrier image into a plurality of data blocks according to frequency components of the image data, and selecting the data blocks with the frequency components within a preset range as data blocks to be selected;
performing characteristic analysis on the data block to be selected to obtain a characteristic value, and selecting the data block with the characteristic value within a preset range as a target data block;
performing gray level transformation on the target data block to obtain a gray level image, acquiring a gray level equilibrium histogram corresponding to the gray level image, and determining a median gray level value and an average gray level value of the gray level image based on the gray level equilibrium histogram;
processing the median gray value and the average gray value based on the gray level of the median gray value and the average gray value in the gray balance histogram to obtain a first gray value;
setting a second gray value based on the watermark gray image of the company watermark, and setting a target gray value based on the first gray value and the second gray value;
determining the gray images with the gray values larger than the target gray value as first images, determining the gray images with the gray values smaller than the target gray value as second images, and setting the other images as third images;
for the first image, performing negative energy conversion on the watermark gray image based on the target gray value to obtain a first watermark image, and adding the first watermark image to the first image to obtain a loaded watermark image;
for the second image, performing negative energy conversion on the watermark gray image based on the target gray value to obtain a second watermark image, and adding the second watermark image to the second image to obtain a loaded watermark image;
for the third image, adding the watermark gray images to the third image to obtain a watermark loading image;
and restoring the loaded watermark image to obtain the carrier image in the PPT document after the watermark is added, and finishing adding the watermark to the PPT document company.
In this embodiment, one page in the PPT document corresponds to one carrier image.
In this embodiment, the eigenvalue of the data block to be selected is related to the sub-information on the data block to be selected.
In this embodiment, the first gray value ball protection method is to obtain a gray level difference level between the median gray value and the average gray value; if the difference level is within a preset difference level range, acquiring an average value of the median gray value and the average gray value as a first gray value; and otherwise, taking the gray value corresponding to the higher gray level in the median gray value and the average gray value as a first gray value.
In this embodiment, the target gradation value is set by subtracting the sum of the first gradation value and the second gradation value from 255.
In this embodiment, the watermark grayscale image is subjected to negative energy conversion, so that the grayscale value of the watermark grayscale image can be reduced, and it is ensured that after the converted watermark grayscale image is added to the first image, the grayscale value obtained by theoretically overlapping does not exceed 255, and the robustness of watermark addition is ensured and cannot be easily damaged.
In this embodiment, the watermark grayscale image is subjected to forward energy conversion, so that the watermark grayscale image grayscale value can be increased, and it is ensured that after the converted watermark grayscale image is added to the first image, the grayscale value obtained by theoretically overlapping is not less than 0, and the robustness of watermark addition is ensured and cannot be easily damaged.
The beneficial effect of above-mentioned design is: the watermark gray image is correspondingly processed according to the relation between the gray value of each pixel point of the gray image and the target gray value, so that the robustness and the safety of the image after the watermark is added are ensured, the quality of the image after the watermark is added is ensured, the image cannot be easily damaged, and the PPT document cannot be illegally used from the watermark.
Example 8
Based on embodiment 7, an embodiment of the present invention provides a processing method for a PPT document, where processing is performed on a median gray scale value and an average gray scale value based on a gray scale of the median gray scale value and the average gray scale value in a gray scale equalization histogram to obtain a first gray scale value, and the processing method includes:
acquiring the gray level difference level of the median gray value and the average gray value;
if the difference level is within a preset difference level range, acquiring an average value of the median gray value and the average gray value as a first gray value;
and otherwise, taking the gray value corresponding to the higher gray level in the median gray value and the average gray value as a first gray value.
The beneficial effect of above-mentioned design does: the first gray value is determined according to the median gray value and the average gray value, so that the first gray value can accurately guarantee the characteristics of the gray image, and a foundation is provided for adding the watermark.
Example 9
Based on embodiment 1, an embodiment of the present invention provides a method for processing a PPT document, where in step 3, based on company personnel information, the method for encrypting the PPT document to obtain an encrypted document includes:
determining the authority of the company personnel to the PPT document based on the company personnel information;
according to the authority, the PPT document is encrypted by utilizing the identity information of the company personnel, and the method specifically comprises the following steps:
carrying out authority division on the personnel by utilizing the personnel identity information to obtain the corresponding authority of the company personnel;
acquiring first person identity information with only readable authority, and based on the first person identity information, performing readable encryption on the PPT document to generate a read-only authentication range;
the calculation formula of the read-only authentication range is as follows:
R 1 ∈[R 1min ,R 1max ]
wherein R is 1 Represents the read-only authentication range, R 1min Represents the minimum value of the read-only authentication range, R 1max Represents the maximum value of the read-only authentication range, P min A minimum parameter value, P, representing the identity information of the first person max The maximum parameter value representing the first person identity information is (0,1), H represents the right authentication value of the readable right and is (0,0.5), and tau a The authority detection value representing the readable authority is (0,1);
acquiring second personnel identity information with the right having both readable right and modifiable right, and performing modifiable encryption on the PPT document based on the second personnel identity information to generate a modifiable authentication range;
the calculation formula of the modifiable authentication range is as follows:
R 2 ∈[R 2min ,R 2max ]
wherein R is 2 Presentation instrumentSaid modifiable authentication range, R 2min Represents the minimum value of the modifiable authentication range, R 2max Represents the maximum value of the modifiable authentication range, τ b The authority detection value representing the modifiable authority is (0,1), the value is (0,1), G represents the authority authentication value representing the modifiable authority and the value is (0.5,1), T min A minimum parameter value, T, representing the second person identity information max A maximum parameter value representing the second person identity information;
completing encryption of the PPT document based on the readable authentication and the modifiable authentication;
meanwhile, the method also comprises another encryption mode, namely, the PPT document is encrypted only by reading through the first password, and is encrypted in a modifiable mode through the second password, so that the encryption of the PPT document is completed.
In the embodiment, the identity information of the logged-in personnel is directly authenticated by utilizing a read-only authentication range and a modifiable authentication range, when the identity information of the personnel is detected to be in the read-only authentication range, the corresponding personnel is endowed with read-only authority, and when the identity information of the personnel is detected to be in the modifiable authentication range, the corresponding personnel is endowed with modifiable authority. The password authentication can be avoided from being manually input, and the authentication efficiency is improved.
In this embodiment, the another encryption manner is to perform read-only encryption on the PPT document by using the first password, perform modifiable encryption by using the second password, and encrypt the document by means of password authentication, so as to provide an authentication manner for the unregistered person, thereby avoiding that the unregistered person cannot check and modify the PPT document.
In this embodiment, different persons correspond to different parameter values, and the parameter values of the person identity information are related according to the job ranks of the persons in the company.
In this embodiment, the permission authentication value is associated with the permission type of the authentication.
In this embodiment, the privilege detection value is associated with a detection process, and different privileges correspond to different detection processes.
The beneficial effect of above-mentioned design is: by encrypting the document according to the identity information of the company personnel, the automatic authentication process can be realized, the security of the document is ensured, and the authentication efficiency is improved.
Example 10
The invention provides a PPT document processing device, as shown in FIG. 3, comprising:
the master plate manufacturing module is used for determining the basic content of the PPT master plate according to the basic information of a company, and performing font design, typesetting and color matching on the basic content to obtain the PPT master plate;
the document making module is used for designing a content tag for each module in the PPT master matrix, classifying and extracting information to be inserted based on the content tag to obtain sub-information, and inputting the sub-information into the corresponding module to obtain a PPT document;
and the document encryption module is used for encrypting the PPT document based on the company personnel information to obtain an encrypted document.
In this embodiment, the basic information of the company includes, for example, company name, company logo, company address, and other information for specifying company characteristics.
In this embodiment, the content tag of each module in the PPT master is related to the content placed under the module, for example, the title corresponding to the module, where the content tag is a title tag, and the corresponding sub-information is a title name to be inserted into the information.
In this embodiment, the PPT document is encrypted based on the corporate personnel information, that is, the authority of the corporate personnel to the PPT document is determined according to the corporate personnel information, and then the information for encrypting the PPT document is distributed to the corresponding corporate personnel according to the authority, so as to encrypt the PPT document.
The beneficial effect of above-mentioned design is: the method has the advantages that the display of company information in the PPT master plate is realized by carrying out font design, typesetting and color matching on the PPT master plate according to the basic information of a company, so that the whole PPT has uniform additional content, typesetting and color matching, in the declaration of external products, the company name and the company logo can be continuously strengthened according to the content and the typesetting mode in the master plate, meanwhile, the specialty of the company is embodied through the specialty of the PPT, and in the color matching method of the master plate, the PPT can be ensured to be simple and beautiful, the strong brand sense of the whole interface product can be realized, and the effect of transmitting the brand can be realized; the comprehensiveness and the delicacy of the content of the PPT master plate are guaranteed, the quality of the PPT master plate is guaranteed, corresponding information is inserted into each module by designing a content tag for each module in the PPT master plate, the efficiency and the accuracy of PPT document manufacturing are improved, the PPT document manufactured is encrypted according to company personnel information, and the safety of the PPT document is guaranteed.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A method for processing a PPT document, comprising:
step 1: determining the basic content of the PPT master plate according to the basic information of a company, and carrying out font design, typesetting and color matching on the basic content to obtain the PPT master plate;
and 2, step: designing a content tag for each module in the PPT master plate, classifying and extracting information to be inserted based on the content tag to obtain sub-information, and inputting the sub-information into the corresponding module to obtain a PPT document;
and step 3: and encrypting the PPT document based on the company personnel information to obtain an encrypted document.
2. The method for processing the PPT document according to claim 1, wherein in step 1, determining the basic content of the PPT master according to the basic information of the company comprises:
determining corresponding company feature content of the PPT master plate according to the basic information of the company;
performing attribute extraction on the contents of a common mother board to obtain the conventional contents of the PPT mother board;
the company characteristic content and the conventional content form the basic content of the PPT master plate.
3. The method as claimed in claim 1, wherein in step 1, the font design, the layout and the color matching are performed on the basic content to obtain the PPT master, and the method comprises:
designing the font size of the basic content according to the first attribute of the basic content, and designing the font and the color of the basic content according to the second attribute of the basic content;
selecting a typesetting mode with the highest format matching degree with the basic content from a typesetting database, and typesetting the basic content;
determining the main color of the company according to the basic information of the company, and performing color matching on the basic content according to the third attribute of the basic content by taking the main color as a reference;
and carrying out font design, typesetting and color matching on the basic content to obtain the PPT master plate.
4. The method for processing the PPT document according to claim 1, wherein in step 1 and in step 2, designing a content tag for each module in the PPT master comprises:
setting module levels according to the sequence of the font sizes from large to small in the PPT master plate, performing module division on the basic content of the PPT master plate according to the font sizes and the corresponding module levels thereof, dividing the basic content into a plurality of modules, and determining the module level of each module;
for modules with the same module grade, designing a content label for each module according to the characteristics of the corresponding basic content of the module; the module rating and content label for each module are obtained.
5. The method as claimed in claim 1, wherein in step 2, the classification and extraction of the information to be inserted is performed based on the content tag, and the obtaining of the sub-information includes:
establishing an information structure of the inserted information according to the content tag, and establishing a node relation between nodes in the information structure;
selecting a main node from the information structure, traversing the information to be inserted according to the node characteristics of the main node, and extracting first information corresponding to the node characteristics;
determining a keyword corresponding to each node according to the node relation and the first information, and extracting the information to be inserted based on the keywords to obtain second information corresponding to each node;
and taking the first information and the second information as the sub information.
6. The method as claimed in claim 1, wherein the step 2 of inputting the sub-information into the corresponding module to obtain the PPT document comprises:
acquiring the page number of each module in the PPT master plate and the position of each module in the corresponding page number, and setting an input sequence for each module based on the page number and the position of each module in the corresponding page number;
based on a content tag of a module, marking sub information corresponding to the module, specifically, performing first marking on a head end of the sub information, and performing second marking on a tail end of the sub information;
performing third marking on the whole sub-information based on the input sequence, performing fourth marking on a module based on the input sequence, and establishing a corresponding relation between the third marking and the fourth marking;
manually inputting the sub-information into a corresponding module based on the first mark, the second mark and the corresponding relation to obtain a first PPT document;
inputting the first PPT document into a preset text detection model, and performing upper-lower logic detection and internal logic detection on the sub information in each module to obtain a detection result of the sub information in each module;
acquiring first sub information with upper and lower logics abnormal from the detection result, replacing the first sub information, acquiring second sub information with internal logics abnormal, and deleting the second sub information to obtain a second PPT document;
acquiring the document position and format requirement of each module in the second PPT document, establishing a format detection model based on the document position and format requirement, and inputting the second PPT document into the format detection model to obtain a format detection result;
obtaining third sub information with an incorrect format from the format detection result, and carrying out fourth marking on the third sub information;
according to the fourth mark, format modification is manually carried out on the third sub-information, and a third PPT document is obtained;
the third PPT document is a final PPT document.
7. The method as claimed in claim 1, wherein the step 2 of obtaining the PPT document further includes adding a company watermark to the PPT document, and includes:
designing a company watermark for a company and a PPT document based on a logo of the company and a color system of the PPT document;
acquiring a carrier image in the PPT document, performing discrete cosine transform on the carrier image to obtain transformed image data, dividing the carrier image into a plurality of data blocks according to frequency components of the image data, and selecting the data blocks with the frequency components within a preset range as data blocks to be selected;
performing characteristic analysis on the data block to be selected to obtain a characteristic value, and selecting the data block with the characteristic value within a preset range as a target data block;
performing gray level transformation on the target data block to obtain a gray level image, acquiring a gray level equilibrium histogram corresponding to the gray level image, and determining a median gray level value and an average gray level value of the gray level image based on the gray level equilibrium histogram;
processing the median gray value and the average gray value based on the gray level of the median gray value and the average gray value in the gray balance histogram to obtain a first gray value;
setting a second gray value based on the watermark gray image of the company watermark, and setting a target gray value based on the first gray value and the second gray value;
determining the gray images with the gray values larger than the target gray value as first images, determining the gray images with the gray values smaller than the target gray value as second images, and setting the other images as third images;
for the first image, performing negative energy conversion on the watermark gray level image based on the target gray level value to obtain a first watermark image, and adding the first watermark image to the first image to obtain a loaded watermark image;
for the second image, performing negative energy conversion on the watermark gray image based on the target gray value to obtain a second watermark image, and adding the second watermark image to the second image to obtain a loaded watermark image;
for the third image, adding the watermark gray images to the third image to obtain a watermark loading image;
and restoring the watermark loading image to obtain a carrier image in the PPT document after the watermark is added, and finishing adding the watermark to the PPT document company.
8. The method as claimed in claim 7, wherein processing the median gray value and the average gray value based on the gray levels of the median gray value and the average gray value in the gray-level equalization histogram to obtain a first gray value comprises:
acquiring the gray level difference level of the median gray value and the average gray value;
if the difference level is within a preset difference level range, acquiring an average value of the median gray value and the average gray value as a first gray value;
and otherwise, taking the gray value corresponding to the higher gray level in the middle gray value and the average gray value as a first gray value.
9. The method as claimed in claim 1, wherein in step 3, the encrypting the PPT document based on the corporate staff information to obtain an encrypted document comprises:
determining the authority of the company personnel to the PPT document based on the company personnel information;
according to the authority, the PPT document is encrypted by utilizing the identity information of the company personnel, and the method specifically comprises the following steps:
carrying out authority division on the personnel by utilizing the personnel identity information to obtain the corresponding authority of the company personnel;
acquiring first person identity information with only readable authority, and based on the first person identity information, carrying out readable encryption on the PPT document to generate read-only authentication;
acquiring second personnel identity information with the right having both readable right and modifiable right, and performing modifiable encryption on the PPT document based on the second personnel identity information to generate modifiable authentication;
completing encryption of the PPT document based on the readable authentication and the modifiable authentication;
meanwhile, the method also comprises another encryption mode, namely, the PPT document is encrypted in a read-only mode by using a first password, and is encrypted in a modifiable mode by using a second password, so that the encryption of the PPT document is completed.
10. A processing apparatus for PPT documents, comprising:
the master plate manufacturing module is used for determining the basic content of the PPT master plate according to the basic information of a company, and performing font design, typesetting and color matching on the basic content to obtain the PPT master plate;
the document making module is used for designing a content tag for each module in the PPT master matrix, classifying and extracting information to be inserted based on the content tag to obtain sub-information, and inputting the sub-information into the corresponding module to obtain a PPT document;
and the document encryption module is used for encrypting the PPT document based on the company personnel information to obtain an encrypted document.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211060913.3A CN115618806B (en) | 2022-09-01 | 2022-09-01 | PPT document processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211060913.3A CN115618806B (en) | 2022-09-01 | 2022-09-01 | PPT document processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115618806A true CN115618806A (en) | 2023-01-17 |
CN115618806B CN115618806B (en) | 2023-06-27 |
Family
ID=84856951
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211060913.3A Active CN115618806B (en) | 2022-09-01 | 2022-09-01 | PPT document processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115618806B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113704828A (en) * | 2020-05-22 | 2021-11-26 | 永中软件股份有限公司 | System and method for preventing file from being tampered and leaked through watermark encryption |
CN114282499A (en) * | 2021-12-28 | 2022-04-05 | 北京天融信网络安全技术有限公司 | Document generation method and device with customized chart, electronic equipment and medium |
-
2022
- 2022-09-01 CN CN202211060913.3A patent/CN115618806B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113704828A (en) * | 2020-05-22 | 2021-11-26 | 永中软件股份有限公司 | System and method for preventing file from being tampered and leaked through watermark encryption |
CN114282499A (en) * | 2021-12-28 | 2022-04-05 | 北京天融信网络安全技术有限公司 | Document generation method and device with customized chart, electronic equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN115618806B (en) | 2023-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8520889B2 (en) | Automated generation of form definitions from hard-copy forms | |
US9514103B2 (en) | Effective system and method for visual document comparison using localized two-dimensional visual fingerprints | |
CN107590491B (en) | Image processing method and device | |
US20110141521A1 (en) | Preserving user applied markings made to a hardcopy original document | |
CN110427972B (en) | Certificate video feature extraction method and device, computer equipment and storage medium | |
CN110888881B (en) | Picture association method and device, computer equipment and storage medium | |
CN110321881B (en) | System and method for identifying images containing identification documents | |
Benalcazar et al. | Synthetic ID card image generation for improving presentation attack detection | |
CN104978565A (en) | Universal on-image text extraction method | |
CN111898520A (en) | Certificate authenticity identification method and device, computer readable medium and electronic equipment | |
EP3869472A1 (en) | Detecting identification tampering using ultra-violet imaging | |
JP2010204733A (en) | Device, method, program and system for managing found article information | |
CN109872282A (en) | A kind of image desensitization method based on computer vision and system | |
CN112200844A (en) | Method, device, electronic equipment and medium for generating image | |
Mello et al. | Generation of images of historical documents by composition | |
US20020054706A1 (en) | Image retrieval apparatus and method, and computer-readable memory therefor | |
WO2021129289A1 (en) | Image processing method and apparatus, electronic device, and storage medium | |
Abdallah et al. | A new color image database for benchmarking of automatic face detection and human skin segmentation techniques | |
CN101261636A (en) | Search device, search system, and search device control method | |
CN115618806A (en) | PPT document processing method and device | |
CN113434912B (en) | Material compliance verification method and device | |
Chen | The image retrieval algorithm based on color feature | |
JP3903436B2 (en) | Imprint authentication system | |
CN108734167B (en) | Method for recognizing characters on contaminated film | |
Malviya et al. | Region duplication detection using color histogram and moments in digital image |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |