forked from py-pdf/pypdf
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fix incorrect tm_matrix in call to visitor_text (py-pdf#2060)
Supply the old tm_matrix when flushing out `text` to the `visitor_text` in `crlf_space_check`. The new one might already be changed and unrelated to the current text. Also add a test for the tm_matrix and cm_matrix that are given to `visitor_text` when extracting text. The test computes the coordinates of three letters in different parts of a test page based on the matrices and checks, if they are roughly where they should be. Fixes py-pdf#2059
- Loading branch information
Showing
4 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters