hottub.patents
US 12,657,372 B2#3215837 Most CitedActiveUnited States (USPTO)Utility

Method, device, computer equipment and storage medium for editing PDF files

0Forward Citations (#3215837 Global)
0.0/yrCitation Velocity (#3215837 Global)
0.00Citation PageRank (#3215837 Global)
73Prior Art Cited
8Claims (3 Indep. · 5 Dep.)
0Drawings / Sheets

Abstract

There is provided a device for editing a PDF file, including a display, a non-volatile storage medium, a memory and a processor. The non-volatile storage medium stores a computer program. The memory provides an environment for operations of the computer program in the non-volatile storage medium. The processor runs the computer program to parse the PDF file to obtain information of characters, generate character sets according to features of the characters, generate line sets according to heights and horizontal positions of the character sets, generate paragraph sets according to a height and a horizontal position of each line of the line sets, generate text region sets according a height and a horizontal position of each paragraph of the paragraph sets, and control the display to show the text region sets in the PDF file as editable text regions.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 73 · Forward citations: 0.

Claims (8 — 3 Independent, 5 Dependent)

  1. Claim 1Independent Claim

    A method for recognizing a portable document format (PDF) file, comprising: parsing text objects of the PDF file to obtain information of characters; identifying features of adjacent characters in a horizontal direction, and merging characters having identical features to obtain character sets, wherein one character set is generated upon encountering a space, which indicates a feature change; determining line sets according to first vertical pitches and first horizontal pitches of adjacent character sets to group the adjacent character sets within a first predetermined height distance and within a first predetermined horizontal distance as one line set using corresponding points of boundaries of the adjacent character sets; determining paragraph sets according to second vertical pitches and second horizontal pitches of adjacent lines of the line sets to group adjacent line sets within a second predetermined height distance and within a second predetermined horizontal distance as one pa

  2. Claim 2Depends on #1

    The method as claimed in claim 1, further comprising: parsing graphic objects of the PDF file and taking each picture as a graphic region.

  3. Claim 3Depends on #1

    The method as claimed in claim 1, wherein the first vertical pitches and the first horizontal pitches are calculated according to two corresponding points of two first set boundaries of the adjacent character sets; the second vertical pitches and the second horizontal pitches are calculated according to two corresponding points of two second set boundaries of the adjacent lines of the line sets; and the third vertical pitches and the third horizontal pitches are calculated according to two corresponding points of two third set boundaries of the adjacent paragraphs of the paragraph sets.

  4. Claim 4Depends on #1

    The method as claimed in claim 1, further comprising: sequentially arranging the all character sets of the PDF file from top to bottom and from left to right according to lower sides of the first set boundaries of the every character set; sequentially arranging all lines of the PDF file from top to bottom and from left to right according to lower sides of the second set boundaries of every line; and sequentially arranging all paragraphs of the PDF file from top to bottom and from left to right according to lower sides of the third set boundaries of every paragraph.

  5. Claim 5Depends on #1

    The method as claimed in claim 1, wherein the features comprise a font, a size and a color of the characters.

  6. Claim 6Independent Claim

    A device configured to provide an editable PDF file, the device comprising: a display, configured to show a PDF file; a non-volatile storage medium, configured to record a computer program; a memory, configured to provide an environment for operations of the computer program in the non-volatile storage medium; and a processor, configured to run the computer program to parse the PDF file to obtain information of characters, generate character sets according to features of the characters, wherein one character set is generated upon encountering a space, which indicates a feature change, generate line sets according to heights and horizontal positions of the character sets to group adjacent character sets within a first predetermined height distance and within a first predetermined horizontal distance as one line set using corresponding points of boundaries of the adjacent character sets, generate paragraph sets according to a height and a horizontal position of each line of the line sets

  7. Claim 7Depends on #6

    The device as claimed in claim 6, wherein the processor is further configured to parse graphic objects in the PDF file and take each picture parsed from the PDF file as one graphic region, and control the display to show the one graphic region as an editable graphic region in the PDF file.

  8. Claim 8Independent Claim

    A computer equipment, comprising a storage device, configured to record a computer program; and a processor, configured to run the computer program recorded in the storage device to perform a method for recognizing a PDF file, comprising: parsing text objects of the PDF file to obtain information of characters; identifying features of adjacent characters in a horizontal direction, and merging characters having identical features to obtain character sets, wherein one character set is generated upon encountering a space, which indicates a feature change; determining line sets according to first vertical pitches and first horizontal pitches of adjacent character sets to group the adjacent character sets within a first predetermined height distance and within a first predetermined horizontal distance as one line set using corresponding points of boundaries of the adjacent character sets; determining paragraph sets according to second vertical pitches and second horizontal pitches of adjace

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the priority benefit of Chinese Patent Application Serial Number 202211649226.5, filed on Dec. 20, 2022, the full disclosure of which is incorporated herein by reference. FIELD OF THE DISCLOSURE This disclosure generally relates to the file processing and, more particularly, to a method, a device, a computer equipment and a storage medium that transform a portable document format (PDF) to an editable PDF file which includes multiple text regions and/or graphic regions. BACKGROUND OF THE DISCLOSURE The PDF files are generally used electronic files. Although a PDF file can be read almost on any operating system, the PDF file cannot be edited directly. During editing a PDF file, the prior art is to transform the PDF file to a document having another format, e.g., Office Software. Therefore, if a PDF file requires only a little amendment, it is still necessary to transform the whole PDF file to a document having another format. After the editing is completed, the edited document is converted back to a PDF file again such that it is inconvenient and time wasting. SUMMARY Accordingly, the present disclosure provides a method, a device, a computer equipment and a storage medium that transform a PDF to an editable PDF file which includes multiple text regions and/or graphic regions. In editing the editable PDF file, a user only needs to select one text region or one graphic region in the editable PDF file for little amendment directly. After the editing is completed, the edited file is restored as a PDF file. The present disclosure provides an editable PDF file in which a region for editing is directly selected in the editable PDF file. Because no transformation of document format is required, the user experience is improved. The present disclosure further provides a method, a device, a computer equipment and a storage medium that transform a PDF file to an editable PDF file. The present disclosure provides a m

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.