Skip to content

Identifying paragraphs in PDF files #3132

@CaiSamuelsFSA

Description

@CaiSamuelsFSA

Description of the bug

I am trying to extract paragraphs of text from PDF files, and as far as I'm aware, blocks seem to be the only way to identify paragraphs in PyMuPDF. The problem is that blocks often cut off paragraphs and separate them into multiple blocks.

How to reproduce the bug

Paragraphs are being cut off when extracting text in blocks.

PyMuPDF version

1.23.21

Operating system

Windows

Python version

3.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions