block_no and block_type are switched in get_text("block") (original) (raw)

Please provide all mandatory information!

Describe the bug (mandatory)

A clear and concise description of what the bug is.
get_text("block") should give (x0, y0, x1, y1, "lines in block", block_type, block_no) (according to https://pymupdf.readthedocs.io/en/latest/app1.html), but gives back (x0, y0, x1, y1, "lines in block", block_no, block_type)

To Reproduce (mandatory)

Explain the steps to reproduce the behavior, For example, include a minimal code snippet, example files, etc.

        with fitz.open(path) as document:
                for page in document:
                    paragraphs = page.get_text("blocks")
                    for paragraph in paragraphs:
                        print(paragraph)

Expected behavior (optional)

Describe what you expected to happen (if not obvious).

Screenshots (optional)

If applicable, add screenshots to help explain your problem.

Your configuration (mandatory)

windows10 home
python3.7
PyMuPDF-1.20.2-cp37-cp37m-win_amd64.whl

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.