Skip to content
Discussion options

You must be logged in to vote

I got the same same result even when setting the flags=0. But I also tried to use the same version that you are using for testing, 1.18.14, and I got the blocks with linebreaks:

>>> fitz.version
('1.18.14', '1.18.0', '20210601081138')
>>> from pprint import pprint
>>> pprint(file[0].getText('blocks')[:3])
[(56.691890716552734,
  55.67547607421875,
  765.3434448242188,
  214.10137939453125,
  '<image: DeviceGray, width: 1492, height: 330, bpc: 8>',
  0,
  1),
 (56.558387756347656,
  881.2556762695312,
  712.5414428710938,
  898.0530395507812,
  'Este documento pode ser verificado\n'
  'no endereço eletrônico http://www.in.g o v. b r / a u t e n t i c i d a d e '
  '. h t m l ,\n'
  'pelo c…

Replies: 6 comments 4 replies

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@JorjMcKie
Comment options

@Lary15
Comment options

Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1361 on November 01, 2021 22:15.