You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with parsing filenames of file specifications:
For example, when I run:
dumppdf.py -E /tmp/ sample.pdf
I get:
Traceback (most recent call last):
File "./build/scripts-2.7/dumppdf.py", line 275, in <module>
if __name__ == '__main__': sys.exit(main(sys.argv))
File "./build/scripts-2.7/dumppdf.py", line 272, in main
dumpall=dumpall, codec=codec, extractdir=extractdir)
File "./build/scripts-2.7/dumppdf.py", line 200, in extractembedded
extract1(obj)
File "./build/scripts-2.7/dumppdf.py", line 173, in extract1
filename = os.path.basename(obj['UF'] or obj['F'])
KeyError: 'UF'
Possible fix:
filename = obj.get('UF') or obj.get('F') or <some_default_string>
There is an issue with parsing filenames of file specifications:
For example, when I run:
I get:
Possible fix:
The pdf is attached:
7c127eb6889074efbfac63d35ba0b69cfae22d56bfa2755ef0e925b6c032c4b0.pdf
The text was updated successfully, but these errors were encountered: