pymupdf / PyMuPDF

PyMuPDF is a high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.
https://pymupdf.readthedocs.io
GNU Affero General Public License v3.0
5.8k stars 536 forks source link

Cannot add Widgets containing inter-field-calculation JavaScript #3402

Closed JorjMcKie closed 6 months ago

JorjMcKie commented 7 months ago

Description of the bug

When adding a widget containing an AA/C JavaScript entry (inter field calculation), an exception like this occurs: fitz.mupdf.FzErrorArgument: code=4: not an array (null).

How to reproduce the bug

Executing this script produces the exception: interfield-calculation.zip

PyMuPDF version

1.24.2

Operating system

All

Python version

All

julian-smith-artifex-com commented 6 months ago

Fixed in 1.24.3.