Skip to content

Extracting text through dict gets rid of Spaces #978

Discussion options

You must be logged in to vote

You need to play with the flags argument:

11 = 8 + 2 + 1
fitz.TEXT_INHIBIT_SPACES = 8  # <==  this is the problem!
fitz.TEXT_PRESERVE_WHITESPACE = 2
fitz.TEXT_PRESERVE_LIGATURES = 1

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@tristancatteeuw
Comment options

Answer selected by tristancatteeuw
Comment options

You must be logged in to vote
1 reply
@tristancatteeuw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants