Skip to content

Error extracting highlights #232

@edanerg

Description

@edanerg

When adding a highlight from firefox, this error appears in the docker debug log.

Traceback (most recent call last):
File "/home/nonroot/pdfding/pdf/service.py", line 292, in set_highlights_and_comments
date_time_string = f'{annotation_object["/CreationDate"].split(':')[-1]}-+00:00'
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/home/nonroot/.venv/lib/python3.12/site-packages/pypdf/generic/_data_structures.py", line 472, in getitem
return dict.getitem(self, key).get_object()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '/CreationDate'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions