Update _markup_annotations.py#2447
Conversation
Change NameObject to NumberObject in lines 328 and 330
It will pass the array as a string and not an int if it is a NameObject and will cause a warning in the Class NameObject
method renumber "Incorrect first char in cute NameObject:({self})" line 592 _base.py (pypdf.generic)
|
Could you please add a corresponding test case as well which shows the previous issue and demonstrates that your fix does indeed solve this? |
Change NameObject to NumberObject in lines 328 and 330 It will pass the array as a string and not an int if it is a NameObject and will cause a warning in the Class NameObject method renumber "Incorrect first char in NameObject:({self})" line 592 _base.py (pypdf.generic)
resolves py-pdf#2444 Issue
|
link test code.txt |
Change NameObject to NumberObject in lines 328 and 330 It will pass the array as a string and not an int if it is a NameObject and will cause a warning in the Class NameObject method renumber "Incorrect first char in NameObject:({self})" line 592 _base.py (pypdf.generic)
resolves #2444 Issue