Giter VIP home page Giter VIP logo

Comments (7)

mario-stoeckli avatar mario-stoeckli commented on May 25, 2024 1

Then it's probably a macOS specific error. Thank you for checking.

I confused the error I got on Linux with a different problem and was able to resolve it, but the error on Mac persists.

from pymupdf.

JorjMcKie avatar JorjMcKie commented on May 25, 2024

We do need a reproducing file in order to deal with this post.
So you must find a failing example that you can share.

from pymupdf.

JorjMcKie avatar JorjMcKie commented on May 25, 2024

Just a reminder:
We will need to close this issue soon if we are unable to reproduce the problem with an example file.

from pymupdf.

mario-stoeckli avatar mario-stoeckli commented on May 25, 2024

Give me a second, I hope I will be able to generate an anonymized Version today. Thank you for your fast reply.

from pymupdf.

mario-stoeckli avatar mario-stoeckli commented on May 25, 2024

This here segfaults:
5.1.0 - Rücknahme - Protokoll - Schaden - FR.pdf

from pymupdf.

JorjMcKie avatar JorjMcKie commented on May 25, 2024

Sorry, still cannot reproduce. Here is my script:

import fitz

print(f"{fitz.version=}\n")
doc = fitz.open("test.pdf")
page = doc[0]
tessdata = fitz.get_tessdata()
print(f"{tessdata=}")
tp = page.get_textpage_ocr(full=False, dpi=300, tessdata=tessdata)
print(page.get_text(textpage=tp, sort=True))

Here is the output in Linux (don't have OSX). Works in Windows in the same way.
Also successfully tested full=True.

fitz.version=('1.24.2', '1.24.1', '20240417000001')

tessdata='/usr/share/tesseract-ocr/4.00/tessdata'
{{Anzahl_Schaden}}. {{Schaden}}
Pièces endommagées: {{Beschädigte Teile}}
Type de dommage: {{Schadensart}}
. >=
i
—
—
——
=
a
7
a
— =
-
\. =
:
‘S|
ae
|
ay] a"
‘ | )
;
| a
+
7
‘A \
A
™“
;
(1
>
. =

\
74
=
7
Nera
~
.
7 / (hfs
.
a
=)
/
wa, -— be <—
iv aq
Ee
f sa

iY)
J )
z <i

ea
LHX
eee
X
eo)
ve Seed |
Si
¥ :
ES
.
4
~~ <{
4 —_ = = <<.
2x4
\”
|
f a @ sae be “ie Tote
=~
ay
7.4
\, =e
< oe
_
=
—S
se
wo...
cy ——
a
rr
Fig 1: {{Schaden}} {{Beschädigte Teile Detail}}
. >=
i


——
=
a
7
a
— =
-
\. =
:
‘S|
ae
|
ay] a"| )
;
| a
+
7
‘A \
A
™“
;
(1
>
. =
’
\
74
=
7
Nera
~
.
7 / (hfs
.
a
=)
/
wa, -— be <—
iv aq
Ee
f sa
‘
iY)
J )
z <i
—
ea
LHX
eee
X
eo)
ve Seed |
Si
¥ :
ES
.
4
~~ <{
4 —_ = = <<.
2x4
\”
|
f a @ sae be “ie Tote
=~
ay
7.4
\, =e
< oe
_
=
—S
se
wo...
cy ——
a
rr
Fig 2: {{Schaden}} {{Beschädigte Teile Detail}}
Carvolution AG - Neufeldweg 2 - 4913 Bannwil - carvolution.com

from pymupdf.

JorjMcKie avatar JorjMcKie commented on May 25, 2024

Thanks for letting us know.
I am closing this issue for now.
Of course you can open another one once evidence suggests this.

from pymupdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.