Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document new parameter "add_lines" #3091

Merged
merged 1 commit into from
Jan 25, 2024
Merged

document new parameter "add_lines" #3091

merged 1 commit into from
Jan 25, 2024

Conversation

JorjMcKie
Copy link
Collaborator

Support specification of arbitrary "virtual" vector graphics.

@JorjMcKie JorjMcKie requested a review from jamie-lemon January 24, 2024 15:08
docs/page.rst Outdated
@@ -413,12 +413,14 @@ In a nutshell, this is what you can do with PyMuPDF:

:arg float text_tolerance: Characters will be combined into words only if their distance is no larger than this value (points). Default is 3. Instead of this value, separate values can be specified for the dimensions using `text_x_tolerance` and `text_y_tolerance`.

:arg tuple,list add_lines: Specify a list of "lines" (i.e. pairs of :data:`point_like` objects) as **additional**, "virtual" vector graphics. These lines may help with table and / or cell detection and will not otherwise influence the detection strategy. Especially, in contrast to parameters `horizontal_lines` and `horizontal_lines`, they will not prevent detecting rows or columns in other ways. These lines will be treated exactly like "real" vector graphics in terms of joining, snapping, intersectiing, minimum length and containment in the `clip` rectangle. Similarly, lines not parallel to any of the coordinate axes will be ignored.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

horizontal_lines and horizontal_lines. Repetition?

Support specification of arbitrary "virtual" vector graphics.
@JorjMcKie JorjMcKie merged commit 7ce0673 into main Jan 25, 2024
2 checks passed
@JorjMcKie JorjMcKie deleted the table-add-lines branch January 25, 2024 02:44
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants