Skip to content

words extracted from pdf getting split #1159

Description

@nischithac

Please provide all mandatory information!

Describe the bug (mandatory)

Few words are getting split into half . Example beneficiaries word is split into 'benefi', 'ciaries' . But there is no space between this words in pdf

To Reproduce (mandatory)

doc = fitz.open(input_file)
page = doc[0]
page.getText()
Output: The discounts are not available to benefi ciaries of \nMedicare, Medicaid or other federal or state healthcare programs or residents of Massachusetts, Puerto Rico and other US territories.

Expected behavior (optional)

words shouldn't get split.
Expected Output: The discounts are not available to beneficiaries of \nMedicare, Medicaid or other federal or state healthcare programs or residents of Massachusetts, Puerto Rico and other US territories.

Screenshots (optional)

Your configuration (mandatory)

  • Operating system, potentially version and bitness: Ubuntu
  • Python version, bitness: Python 3.6
  • PyMuPDF version, installation method (wheel or generated from source). Pymupdf 1.18.9

For example, the output of print(sys.version, "\n", sys.platform, "\n", fitz.__doc__) would be sufficient (for the first two bullets).

Additional context (optional)

Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

not a bugnot a bug / user error / unable to reproduce

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions