Call to Page.apply_redactions doesn't complete for widget annotation #1289
-
Describe the bug (mandatory)
To Reproduce (mandatory)Redact annotation positioning is not important to reproduce; the error happens when
import fitz
filename = './standard-form-180.pdf'
doc = fitz.Document(filename=filename)
for page in doc:
x0, y0 = (150, 120)
x1, y1 = (300, 170)
rect = fitz.Rect(x0, y0, x1, y1)
page.add_redact_annot(rect,
text='text',
fontname="helv",
fontsize=12,
align=1,
text_color=(1, 1, 1),
fill=(0, 0, 0))
page.apply_redactions()
doc.save('./out.pdf') Expected behavior (optional)The call to C code should return a result; Screenshots (optional)When you comment out the Your configuration (mandatory)
Additional context (optional)Creating a new PDF with
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This seems to be an long-known upstream bug. It works on my local Windows system, where I have backported the respective MuPDF fix - and it works there.
|
Beta Was this translation helpful? Give feedback.
-
Confirming: the same PyMuPDF version on Linux as on Windows does not work. |
Beta Was this translation helpful? Give feedback.
-
I have test this successfully with the new v1.19.0 on Linux and Windows. |
Beta Was this translation helpful? Give feedback.
-
Confirmed. This now works as expected in v1.19.0 on Linux. |
Beta Was this translation helpful? Give feedback.
I have test this successfully with the new v1.19.0 on Linux and Windows.