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
Describe the bug
When we use not real io file with name attribute partition_pdf failed with no such file or directory.
This can happen, for example, when you extract files from a zip file with ZipFile and open
To Reproduce
importio# Create a 'fake' filefile=io.BytesIO()
file.name='tmp.pdf'# Call the partition_pdf functionresult=partition_pdf(file=file)
Expected behavior
Same experience than spooltempfile with no attribute name
Screenshots
...
Environment Info
...
Additional context
This issue occurs when using a file object with an assigned name.
The bug can be reproduced when extracting a file from a ZIP archive, where the file has a name but does not exist in the filesystem.
The text was updated successfully, but these errors were encountered:
Describe the bug
When we use not real io file with name attribute partition_pdf failed with
no such file or directory
.This can happen, for example, when you extract files from a zip file with ZipFile and open
To Reproduce
Expected behavior
Same experience than spooltempfile with no attribute name
Screenshots
...
Environment Info
...
Additional context
The text was updated successfully, but these errors were encountered: