Systems and methods for extracting text from portable document format data
AssigneeCanva Pty Ltd
InventorsStephan Schwiebert, Velislava Yanchina, Henry Iguaro
Life of this patent
Estimating the term…
Abstract
Described herein is a computer implemented method. The method includes accessing, by a computer system including a processing unit, portable document format (PDF) data defining a plurality of glyphs, sorting the plurality of glyphs into one or more glyph sets, and calculating an expanded glyph bounding box for each glyph. Each glyph set is processed to determine one or more text areas, each text area being associated with one or more glyphs from the glyph set which have collectively overlapping expanded bounding boxes.
Claims20
A computer implemented method including:
- accessing, by a computer system including a processing unit, portable document format (PDF) data defining a plurality of glyphs;
- sorting, by the processing unit the plurality of glyphs into one or more glyph sets;
- calculating, for each glyph, an expanded glyph bounding box;
- processing each of the one or more glyph sets to determine, for each glyph set, one or more text areas, each text area being associated with one or more glyphs, and wherein processing a given glyph set to determine one or more text areas includes:
- identifying distinct groups of glyphs from the particular glyph set, each distinct group of glyphs including one or more glyphs from the particular glyph set which have collectively overlapping expanded bounding boxes;
- and
- associating each distinct group of glyphs from the given glyph set with a separate text area.
A computer processing system including:
- a processing unit;
- a communication interface;
- and
- non-transitory computer-readable storage medium storing instructions, which when executed by the processing unit, cause the processing unit to:
- access portable document format (PDF) data defining a plurality of glyphs;
- sort the plurality of glyphs into one or more glyph sets;
- calculate, for each glyph, an expanded glyph bounding box;
- process each of the one or more glyph sets to determine, for each glyph set, one or more text areas, each text area being associated with one or more glyphs, and wherein processing a given glyph set to determine one or more text areas includes:
- identifying distinct groups of glyphs from the particular glyph set, each distinct group of glyphs including one or more glyphs from the particular glyph set which have collectively overlapping expanded bounding boxes;
- and
- associating each distinct group of glyphs from the given glyph set with a separate text area.
A non-transitory storage medium storing instructions executable by a processing unit to cause the processing unit to:
- access portable document format (PDF) data defining a plurality of glyphs;
- sort the plurality of glyphs into one or more glyph sets;
- calculate, for each glyph, an expanded glyph bounding box;
- process each of the one or more glyph sets to determine, for each glyph set, one or more text areas, each text area being associated with one or more glyphs, and wherein processing a given glyph set to determine one or more text areas includes:
- identifying distinct groups of glyphs from the particular glyph set, each distinct group of glyphs including one or more glyphs from the particular glyph set which have collectively overlapping expanded bounding boxes;
- and
- associating each distinct group of glyphs from the given glyph set with a separate text area.
Dependencies are inferred from the claim text.