memory saturation problem #2621
Unanswered
PaoloPerrotta
asked this question in
Looking for help
Replies: 1 comment 1 reply
-
This is weird! It works for fontsize 3 and fontsize 2. So I need to find the time for debugging this obviously unfortunate fontsize value. Values up to 2.85 work ... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello, lately we have been using fitz a lot in order to paste some text on pdf files.
yesterday we encountered a problem, when executing the following snippet:
If you run it locally, you will notice how this operation which normally ends instantly, continues indefinitely and, the local computer memory dramatically increases.
It seems that the sizes of the various objects it has to create are conflicting. Putting
int(font_size)
, which is rounded down, seems to solve the question for this document.But it is very strange because by experimenting by also putting
font_size = 3
(which is therefore still greater than 2.87 ...) everything still works 🤔 .For this case, stripping the
.round()
from therect
orpos
argument also seems to work. However, these modifications cause the pasting of other texts to fail.is this a bug? or are we making a wrong use of the fill_textbox method?
this happens on
pymupdf = 1.21.1
on both Windows and Unix OSBeta Was this translation helpful? Give feedback.
All reactions