Generic processing error #498
Unanswered
rosnaramohd
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
when I run this code,I get the below error,not sure if its something wrong with the packages installed.
C:\Users\HSA\Documents\Ros\Pyhanko>pyhanko --verbose sign addfields --field 3/100,200,300,400/MySignature input.pdf output.pdf
2024-11-28 11:11:17,181 - root - DEBUG - Running with --verbose
2024-11-28 11:11:17,182 - root - DEBUG - There was no configuration to parse.
2024-11-28 11:11:17,184 - cli - ERROR - Generic processing error.
Traceback (most recent call last):
File "C:\Users\HSA\anaconda3\Lib\site-packages\pyhanko\cli\runtime.py", line 50, in pyhanko_exception_manager
yield
File "C:\Users\HSA\anaconda3\Lib\site-packages\pyhanko\cli\commands\fields.py", line 63, in add_sig_field
fields.append_signature_field(writer, spec)
File "C:\Users\HSA\anaconda3\Lib\site-packages\pyhanko\sign\fields.py", line 1713, in append_signature_field
page_ref = pdf_out.find_page_for_modification(sig_field_spec.on_page)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HSA\anaconda3\Lib\site-packages\pyhanko\pdf_utils\rw_common.py", line 171, in find_page_for_modification
return self._walk_page_tree(page_ix, retrieve_parent=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HSA\anaconda3\Lib\site-packages\pyhanko\pdf_utils\rw_common.py", line 88, in _walk_page_tree
raise PdfError('Page index out of range')
pyhanko.pdf_utils.misc.PdfError: Page index out of range
Error: Generic processing error.
Beta Was this translation helpful? Give feedback.
All reactions