CN112800718A - PDF document display method, computer equipment and storage medium - Google Patents

PDF document display method, computer equipment and storage medium Download PDF

Info

Publication number
CN112800718A
CN112800718A CN202110100154.8A CN202110100154A CN112800718A CN 112800718 A CN112800718 A CN 112800718A CN 202110100154 A CN202110100154 A CN 202110100154A CN 112800718 A CN112800718 A CN 112800718A
Authority
CN
China
Prior art keywords
displayed
picture
content
image
contents
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
CN202110100154.8A
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.)
Shanghai Hudun Information Technology Co ltd
Original Assignee
Shanghai Hudun Information 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 Shanghai Hudun Information Technology Co ltd filed Critical Shanghai Hudun Information Technology Co ltd
Priority to CN202110100154.8A priority Critical patent/CN112800718A/en
Publication of CN112800718A publication Critical patent/CN112800718A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/169Annotation, e.g. comment data or footnotes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/32Indexing scheme for image data processing or generation, in general involving image mosaicing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30176Document

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention is applicable to the field of computers, and provides a PDF display method, computer equipment and a storage medium, wherein the PDF display method comprises the following steps: acquiring a target PDF document to be displayed; extracting a plurality of contents to be displayed from the target PDF document and splicing the contents into a picture to be displayed; fuzzy processing is carried out on splicing traces among the contents to be displayed on the picture to be displayed; outputting and displaying the picture to be displayed; according to the method, after the contents to be displayed are spliced into the pictures to be displayed, the splicing positions of the pictures are subjected to fuzzy processing, splicing traces of the pictures to be displayed are eliminated, and the pictures to be displayed form a whole.

Description

PDF document display method, computer equipment and storage medium
Technical Field
The invention belongs to the field of computers, and particularly relates to a PDF display method, computer equipment and a storage medium.
Background
In an outdoor large content display projection wall or a large screen bulletin board, due to the limitation of a display area and the requirement of a visual effect, a lot of content is often required to be displayed at one time.
For privacy or other reasons, the content presented is often from a PDF document; under a common condition, a worker manually captures a required page in each PDF document, then utilizes the existing drawing software to establish a large canvas, then sequentially puts each picture in the canvas, adjusts specific details such as spacing and the like, and finally stores the canvas as a picture for display.
According to the method, after the contents to be displayed are spliced into the pictures for display, the spliced positions of the pictures are not subjected to fuzzy processing, so that the splicing traces are obvious, and the integrity of the pictures is poor.
Disclosure of Invention
The embodiment of the invention aims to provide a PDF display method, and aims to solve the problems that the splicing position of a picture is not subjected to fuzzy processing by the conventional method for splicing the content in a PDF file into the picture, so that the splicing trace is obvious, and the integrity of the picture is poor.
The embodiment of the invention is realized in such a way that a PDF display method comprises the following steps:
acquiring a target PDF document to be displayed;
extracting a plurality of contents to be displayed from the target PDF document and splicing the contents into a picture to be displayed;
fuzzy processing is carried out on splicing traces among the contents to be displayed on the picture to be displayed;
and outputting and displaying the picture to be displayed.
It is another object of an embodiment of the present invention to provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the PDF displaying method.
It is another object of an embodiment of the present invention to provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, causes the processor to execute the steps of the PDF displaying method.
According to the PDF display method provided by the embodiment of the invention, the contents to be displayed are automatically extracted from the target PDF document and spliced into the picture to be displayed, and the picture to be displayed is output and displayed after fuzzy processing is carried out at the spliced part.
Drawings
Fig. 1 is an application environment diagram of a PDF displaying method according to an embodiment of the present invention;
fig. 2 is a flowchart of a PDF displaying method according to an embodiment of the present invention;
fig. 3 is a flowchart for extracting a plurality of contents to be displayed from a target PDF document and splicing the contents into a picture to be displayed according to the embodiment of the present invention;
fig. 4 is a flowchart illustrating a process of blurring a splicing trace between contents to be displayed on a picture to be displayed according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating further processing of a picture to be displayed according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating highlighting and adding labels to content meeting set conditions in a picture to be displayed according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a modification operation performed on the to-be-displayed picture according to an embodiment of the present invention;
fig. 8 is a block diagram of an internal structure of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of the present application.
Fig. 1 is an application environment diagram of a PDF presentation method according to an embodiment of the present invention, as shown in fig. 1, in the application environment, an external storage medium 110, a computer device 120, and an output device 130 are included.
The external storage medium 110 may be a floppy disk memory, a hard disk memory, a usb disk memory, a tape memory, an optical disk memory, etc.
The computer device 120 may be an independent physical server or terminal, may also be a server cluster formed by a plurality of physical servers, and may be a cloud server providing basic cloud computing services such as a cloud server, a cloud database, a cloud storage, and a CDN; the terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal 110 and the computer device 120 may be connected through a network, and the present invention is not limited thereto.
The output device 130 may be a display screen, or may be a projection device and a projection receiving screen matched with the projection device.
As shown in fig. 2, in an embodiment, a PDF presentation method is provided, and this embodiment is mainly illustrated by applying the method to the computer device 120 in fig. 1. A PDF display method specifically comprises the following steps:
step S202, obtaining a target PDF document to be displayed;
the target PDF document is a PDF document containing content to be presented by the user, and the external storage medium 110 storing the target PDF document is connected to the computer device 120, so that the computer device 120 obtains the PDF document containing the content to be presented.
Step S204, extracting a plurality of contents to be displayed from the target PDF document and splicing the contents into a picture to be displayed;
the content to be displayed is contained in the target PDF document, the content to be displayed is extracted according to the setting of a user, and the content to be displayed is a PDF page containing image content and/or text content required to be displayed by the user; when the content to be displayed is extracted, reading a target PDF document from back to front by taking a PDF format standard document ISO 32000-1:2008 as a basis and a binary stream method, wherein the PDF format standard document comprises standard information in various aspects such as fonts, character spacing, page size and the like, and the reading standardization of the target PDF document can be improved; in addition, when the target PDF document is read, one or a plurality of keywords and/or composition elements set by a user are matched with the text content and the image content in the target PDF document in an identifying way so as to determine the PDF page where the content to be displayed is located; if the content to be displayed is located on all PDF pages, reading all PDF pages; if the content to be displayed is only located on part of the PDF pages, setting page parameters, such as '1, 3, 7-11', on the PDF pages containing the content to be displayed, and reading the PDF pages one by one according to the page parameters;
step S206, performing fuzzy processing on splicing traces among the contents to be displayed on the picture to be displayed;
step S206 is to remove the stitching trace between the first pictures to improve the integrity of the obtained picture to be displayed, where the first picture includes the content to be displayed, and the extracted PDF page including the image content and/or text content that the user needs to display and the carrier carrying the PDF page are jointly stored.
And S208, outputting and displaying the picture to be displayed.
The image to be displayed is output and displayed through the output device 130 connected with the computer device, the output device 130 may be a display screen, including a desktop computer display screen, a tablet computer display screen, a television, an outdoor LED display screen, and the like, which is an optional specific implementation manner, and the invention is not particularly limited to this; the output device 130 may also be a projection device and a projection receiving screen thereof, and the projection device connected to the computer device 120 projects the picture to be displayed onto the projection receiving screen for display.
In an embodiment, as shown in fig. 3, step S204 may specifically include:
step S302, configuring a corresponding first canvas for each content to be displayed;
the first canvas is a carrier for a PDF page containing image content and/or text content required to be displayed by a user, the size of the first canvas is determined according to a PDF page size standard specified in a PDF format specification document, wherein the measurement unit of the PDF format specification document for the page size is 'inch'.
Step S304, writing the contents to be displayed into corresponding first canvas respectively, and storing the contents to be displayed as first pictures respectively;
the first pictures can be rotated and adjusted according to the setting of a user, and the sizes of the first pictures can be adjusted, so that the first pictures can be spliced in a matching manner in various forms.
Step S306, determining the size of a second canvas for writing the first picture, and introducing the second canvas;
the second canvas is a carrying carrier of the first pictures, each second canvas carries a plurality of first pictures, and the size of the second canvas is set according to the size of the pictures to be displayed set by a user; or when the user does not limit the size of the picture to be displayed, calculating according to the number of the first pictures and the standard size of the first pictures to obtain the size of the second canvas, wherein the standard size of the first pictures is a preset default first picture storage size; specifically, the number of rows and the number of columns in the standard arrangement of the first pictures are determined according to the total number of the first pictures and a preset picture arrangement standard, the length size of the second canvas is obtained by calculation according to the standard length and the number of rows of the first pictures, and the width size of the second canvas is obtained by calculation according to the standard width and the number of columns of the first pictures.
Step S308, writing part or all of the first pictures in the second canvas, and saving the first pictures as the pictures to be displayed.
Wherein, if the user sets the picture to be displayed as the full screen picture, the first pictures are written into the second canvas line by line from left to right: if the user sets the picture to be displayed as a blank picture, namely a picture with blank space, determining the placement position of the first picture according to the blank position set on the second canvas by the user, and writing each first picture into the blank position on the second canvas; in the process of writing the first picture into the second canvas, if the first picture exceeds the range of the second canvas, the size of the second canvas is adjusted in real time to adapt to the size of the first picture, and all the first pictures are ensured to be in the range of the second canvas.
In one embodiment, as shown in fig. 4, step 206 may specifically include:
step S402, determining the connection position between the first pictures, wherein the connection position is a region to be blurred;
the connection position of the first picture is the superposition position of the long edge or the wide edge of each first picture in the second canvas and the long edge or the wide edge of one or more other first pictures.
Step S404, a preset fuzzy algorithm is executed in a loop to perform fuzzy processing on each fuzzy region one by one until all the fuzzy regions are processed.
The preset fuzzy algorithm is a Gaussian fuzzy algorithm, a granular fuzzy algorithm and a shot fuzzy algorithm; after the fuzzy processing, the overlapped boundary lines between the first pictures in the second canvas are removed, namely the splicing traces between the first pictures are removed, so that the first pictures form a whole by simple splicing combination.
Furthermore, the Gaussian blur algorithm is a data smoothing technology, the pixel color values around a certain point of the picture can be counted according to a Gaussian curve, the pixel color values of the point are obtained by adopting a mathematical weighted average calculation method, the pixel color values of the point are similar to the pixel color values around the point, and the picture blur effect is further achieved; wherein, the density function of the Gaussian curve is a Gaussian function, and the one-dimensional form is as follows:
Figure BDA0002914025240000071
where μ is the mean of x, σ is the variance of x, and x is the horizontal distance of the surrounding pixels from the central pixel; when calculating the average value, the center point is 0, i.e., μ ═ 0 formula (1) can be:
Figure BDA0002914025240000072
the one-dimensional gaussian function is integrated, and a two-dimensional gaussian function can be deduced:
Figure BDA0002914025240000073
where y is the vertical distance of the surrounding pixels from the central pixel.
In one embodiment, as shown in fig. 5, a PDF displaying method may further include:
step S502, optimizing the picture to be displayed;
the method comprises the following steps that optimization processing is carried out on a picture to be displayed, wherein the optimization processing comprises picture de-noising processing, picture defogging processing and picture brightness adjustment; the image denoising processing is carried out through a denoising convolutional neural network and/or a convolutional blind denoising network so as to reduce the interference of imaging equipment or external noise on the image to be displayed in the digital transmission process; the image defogging treatment is carried out through a dark channel prior defogging algorithm so as to improve the range of different brightness level differences between the brightest white and the darkest black in a bright and dark area in the image, and further improve the contrast ratio of the image, so that the image display color is more vivid and rich; in addition, the brightness of the picture to be displayed is adjusted through a logarithmic image enhancement algorithm, so that the brightness degree of the picture to be displayed meets the display requirement.
Step S504, highlighting and adding marks to the content meeting the set conditions in the picture to be displayed;
the implementation premise of step S504 is that the first picture spliced into the picture to be displayed includes both image content and text content, and the purpose of this is to combine the text content with the corresponding pictureThe image content is linked and highlighted, so that audiences can intuitively and conveniently obtain the content meeting the set condition in the picture to be displayed, wherein the content meeting the set condition is the content which is preset by the user and is to be displayed in a key way, and the user can set the standard frequency (for example, 3 times, 5 times in the prior art) of the outgoing frequency of the keyword of the content to be displayedThis is achieved byNot specifically limited), if the number of outgoing lines of the keyword in a certain section of text content in the picture to be displayed reaches the standard number, the text content can be determined as the content meeting the set condition.
Step S506, the picture to be displayed is decorated.
The implementation premise of step S506 is that the first picture spliced into the picture to be displayed includes text content and/or image content, and the purpose is to obtain the overall theme and style characteristics of the picture to be displayed according to the text content and/or image content in the first picture, and select adaptive modification elements to modify the overall theme and style characteristics based on the theme and style characteristics, so as to enhance the aesthetic property of the picture to be displayed and enhance the attraction of the picture to audiences; the modification elements are elements for decorating image contents and text contents in the picture to be displayed and for decorating the picture to be displayed, and the modification elements can be picture frames, cartoon images, scene decoration elements of the image contents and text modification elements marked on the picture.
In an embodiment, step S504 may specifically include:
step S602, if the first text content meets the set conditions, marking the first text content by using identification symbols, wherein different text contents respectively correspond to the identification symbols with different shapes and/or colors;
the set condition is the standard number of outgoing line frequency of the keywords of the contents to be displayed set by the user, the first text contents reaching the standard number are marked by identification symbols, so that different text contents are distinguished by audiences, different types of identifier numbers are adopted for different text contents, and the identification symbols are different in shape and/or color; for example, the first text content box satisfying the setting condition is selected by a red rectangular box, the first text content satisfying the setting condition is bracketed by a blue middle bracket, and the first text content satisfying the setting condition is marked by a yellow wavy line.
Step S604, determining a first image content corresponding to the description content of the first text content according to the first text content, and marking the image content by using an identifier corresponding to the first text content;
wherein, in step S604, the domain of the whole content of the target PDF document is identified according to the keywords of the whole content, and the image database of the domain is introduced, by identifying the first text content keyword and matching the keyword with the image name in the imported image database, to determine the image subject described by the content of the keyword, and match the image subject with the first image content in the picture to be displayed, locking the corresponding image main body in the first image content, and marking the image main body by the identification symbol marking the corresponding first character content, so that the first character content and the first image content are linked, therefore, the audience can quickly find the image content described by the audience through the first text content, and understanding of the content displayed by the picture to be displayed by the audience is accelerated.
Step S606, add a label to the first image content, where the labeled content is the first text content corresponding to the first image content and/or the keyword of the first text content.
Wherein, the label can be a label frame or a character label; when the marking frame is adopted as a mark, the marked content is led into the marking frame; when the character marking is adopted, the color of the character is adaptively adjusted according to the color of the surrounding image, and the character is highlighted; in addition, when the first text content exceeds the set number of words (for example, 10 words, 20 words, or other numbers of words, without limitation), the keyword of the first text content may be used as the labeled content; when the first character content does not exceed the set number of characters, the first character content and/or the keywords of the first character content can be used as the labeled content; through the step 603, the first text content or the keyword thereof is marked beside the corresponding first image content, so that the user can obtain the core content to be displayed of the picture to be displayed by directly watching the first image content, and the understanding speed of the audience to the content to be displayed of the picture to be displayed is further improved.
In an embodiment, step S506 may specifically include:
step S702, if the first picture comprises text contents, identifying keywords of the text contents;
according to the setting of the user, the number of the recognized keywords of the text content can be one or a plurality of; if the number of the keywords to be matched is set to be one, taking out the word with the largest number of times as the keyword; if the number of the keywords to be matched is set to be a plurality, for example, 3, then the words 3 before the current ranking are taken out as the keywords.
Step S704, if the first picture comprises image content, identifying composition elements of the image content;
the composition elements are organized and coordinated, and can express the idea of the image main body, including the main body, the accompanying body, the environment, the foreground, the background and other elements of the image, and according to the setting of the user, the composition elements of the identified image content can be one or a plurality of; if the number of the composition elements to be matched is set to be one, the composition element with the most use times is taken as the composition element to be matched; if the number of the composition elements to be matched is set to be a plurality, for example, 3, the composition element with the top 3 of the usage times is taken as the composition element to be matched.
Step S706, matching the identified keywords and/or the composition elements with modification elements in an image modification element database, and modifying the image to be displayed by adopting the adaptive modification elements;
if the identified content only contains the keywords, matching the keywords with the types and names of the modification elements in the picture modification element database to determine one or more modification elements for modifying the picture to be displayed; if the identified content only contains composition elements, matching the composition elements with modification elements in the picture modification element database to determine one or more modification elements for modifying the picture to be displayed; and if the identified content comprises both the keywords and the composition elements, modifying the picture to be displayed by taking the crossed elements of the modification elements determined by the two methods.
The method realizes automatic extraction of the contents to be displayed in the target PDF document, splices and synthesizes the contents to be displayed into the picture to be displayed, then carries out fuzzy processing on the picture to be displayed to remove splicing traces, carries out optimization processing, highlight labeling and modification operation on key contents on the picture to be displayed, and finally outputs and displays the picture.
In one embodiment, a computer device is proposed, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a target PDF document to be displayed;
extracting a plurality of contents to be displayed from the target PDF document and splicing the contents into a picture to be displayed;
fuzzy processing is carried out on splicing traces among the contents to be displayed on the picture to be displayed;
and outputting and displaying the picture to be displayed.
Wherein, the computer equipment also comprises a network interface, an input device and a display screen. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program, which, when executed by the processor, causes the processor to implement the PDF presentation method. The internal memory may also store a computer program, and the computer program, when executed by the processor, may cause the processor to perform the PDF presentation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the structure shown in fig. 8 is a block diagram of only a portion of the structure relevant to the present application, and does not constitute a limitation on the computer device to which the present application is applied, and that a particular computer device may includeThis is achieved byMore or fewer components are shown in the figures, or certain components may be combined, or have a different arrangement of components.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of:
acquiring a target PDF document to be displayed;
extracting a plurality of contents to be displayed from the target PDF document and splicing the contents into a picture to be displayed;
fuzzy processing is carried out on splicing traces among the contents to be displayed on the picture to be displayed;
outputting and displaying the picture to be displayed
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in various embodiments may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A PDF display method is characterized by comprising the following steps:
acquiring a target PDF document to be displayed;
extracting a plurality of contents to be displayed from the target PDF document and splicing the contents into a picture to be displayed;
fuzzy processing is carried out on splicing traces among the contents to be displayed on the picture to be displayed;
and outputting and displaying the picture to be displayed.
2. The method according to claim 1, wherein the extracting and integrating the content to be displayed from the target PDF document into the picture to be displayed comprises:
configuring a corresponding first canvas for each content to be displayed;
respectively writing the contents to be displayed into corresponding first canvas, and respectively storing the contents to be displayed as first pictures;
determining the size of a second canvas for writing the first picture, and introducing the second canvas;
and writing part or all of the first pictures in the second canvas, and storing the first pictures as the pictures to be displayed.
3. The method according to claim 2, wherein the blurring the splicing trace between the contents to be displayed on the picture to be displayed comprises:
determining a connection position between the first pictures, wherein the connection position is a region to be subjected to fuzzy processing;
and circularly executing a preset fuzzy algorithm to perform fuzzy processing on each fuzzy area one by one until all the fuzzy areas are processed.
4. The method according to claim 3, wherein the predetermined fuzzy algorithm is a Gaussian fuzzy algorithm, a granular fuzzy algorithm, or a shot fuzzy algorithm.
5. The method of claim 2, further comprising:
optimizing the picture to be displayed;
highlighting the content meeting the set conditions in the picture to be displayed and adding marks;
and carrying out modification operation on the picture to be displayed.
6. The method according to claim 5, wherein the optimizing the picture to be displayed comprises:
carrying out image denoising processing on the image to be displayed through a denoising convolutional neural network and/or a convolutional blind denoising network so as to reduce the interference of imaging equipment or external noise on the image to be displayed in the digital transmission process;
carrying out picture defogging treatment on the picture to be displayed through a dark channel prior defogging algorithm so as to improve the contrast of the picture to be displayed;
and adjusting the brightness of the picture to be displayed through a logarithmic image enhancement algorithm.
7. The method according to claim 5, wherein when a first picture spliced into the pictures to be displayed includes both image content and text content, highlighting and adding a label to the content meeting a set condition in the pictures to be displayed comprises:
if the first text content meets the set conditions, marking the first text content by using identification symbols, wherein different text contents respectively correspond to the identification symbols with different shapes and/or colors;
according to the first text content, determining first image content corresponding to the description content of the first text content, and marking the image content by using an identification symbol corresponding to the first text content;
adding a label to the first image content, wherein the labeled content is the first text content corresponding to the first image content and/or the keyword of the first text content.
8. The method according to claim 5, wherein the first picture spliced into the picture to be displayed includes text content and/or image content, and the modifying operation performed on the picture to be displayed includes:
if the first picture comprises the text content, identifying a keyword of the text content;
if the first picture comprises image content, identifying composition elements of the image content;
matching the identified keywords and/or the composition elements with modification elements in an image modification element database, and modifying the image to be displayed by adopting the adaptive modification elements.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the PDF presentation method according to any one of claims 1 to 8.
10. A computer-readable storage medium, having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of the PDF presentation method according to any one of claims 1 to 8.
CN202110100154.8A 2021-01-25 2021-01-25 PDF document display method, computer equipment and storage medium Pending CN112800718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110100154.8A CN112800718A (en) 2021-01-25 2021-01-25 PDF document display method, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110100154.8A CN112800718A (en) 2021-01-25 2021-01-25 PDF document display method, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112800718A true CN112800718A (en) 2021-05-14

Family

ID=75811661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110100154.8A Pending CN112800718A (en) 2021-01-25 2021-01-25 PDF document display method, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112800718A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113253904A (en) * 2021-05-17 2021-08-13 维沃移动通信有限公司 Display method, display device and electronic equipment
CN114995727A (en) * 2022-05-23 2022-09-02 Oppo广东移动通信有限公司 Method for locally operating drawing content, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104637040A (en) * 2013-11-12 2015-05-20 携程计算机技术(上海)有限公司 Method and device utilizing Photoshop to realize picture splicing
CN105701764A (en) * 2016-01-05 2016-06-22 曲阜裕隆生物科技有限公司 Splicing method used for medical image
CN108509396A (en) * 2017-12-25 2018-09-07 平安科技(深圳)有限公司 Pdf document turns method, electronic device and the computer readable storage medium of picture
CN110969594A (en) * 2019-11-29 2020-04-07 广东优世联合控股集团股份有限公司 Image splicing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104637040A (en) * 2013-11-12 2015-05-20 携程计算机技术(上海)有限公司 Method and device utilizing Photoshop to realize picture splicing
CN105701764A (en) * 2016-01-05 2016-06-22 曲阜裕隆生物科技有限公司 Splicing method used for medical image
CN108509396A (en) * 2017-12-25 2018-09-07 平安科技(深圳)有限公司 Pdf document turns method, electronic device and the computer readable storage medium of picture
CN110969594A (en) * 2019-11-29 2020-04-07 广东优世联合控股集团股份有限公司 Image splicing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113253904A (en) * 2021-05-17 2021-08-13 维沃移动通信有限公司 Display method, display device and electronic equipment
CN114995727A (en) * 2022-05-23 2022-09-02 Oppo广东移动通信有限公司 Method for locally operating drawing content, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP5477196B2 (en) Display object generation method, digital media providing system, computer program therefor, and display object
US10198801B2 (en) Image enhancement using self-examples and external examples
CN110222694B (en) Image processing method, image processing device, electronic equipment and computer readable medium
CN109803172B (en) Live video processing method and device and electronic equipment
CN112800718A (en) PDF document display method, computer equipment and storage medium
US11978216B2 (en) Patch-based image matting using deep learning
US8830251B2 (en) Method and system for creating an image
CN111833234B (en) Image display method, image processing apparatus, and computer-readable storage medium
US10043298B2 (en) Enhanced document readability on devices
CN113436222A (en) Image processing method, image processing apparatus, electronic device, and storage medium
CN114332895A (en) Text image synthesis method, text image synthesis device, text image synthesis equipment, storage medium and program product
CN110442313B (en) Display attribute adjusting method and related equipment
WO2020125481A1 (en) Method for generating identification pattern, and terminal device
CN107122785B (en) Text recognition model establishing method and device
CN113762235A (en) Method and device for detecting page overlapping area
US10691884B2 (en) System and method for cheque image data masking using data file and template cheque image
US8629883B2 (en) Method and system for generating online cartoon outputs
CN110533020A (en) A kind of recognition methods of text information, device and storage medium
US9886629B2 (en) Techniques for restoring content from a torn document
CN111107264A (en) Image processing method, image processing device, storage medium and terminal
CN113391779B (en) Parameter adjusting method, device and equipment for paper-like screen
US10049425B2 (en) Merging filters for a graphic processing unit
CN111914850B (en) Picture feature extraction method, device, server and medium
CN110996026B (en) OSD display method, device, equipment and storage medium
CN113989404A (en) Picture processing method, device, equipment, storage medium and program product

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