partition_pdf fails on an open binary file handle: fixed by PR 3395
If partition_pdf throws when you pass it an already-opened binary file handle with the hi_res strategy, upgrade to a build that includes PR #3395, which fixed the binary-file loading path.
_Source: gh:Unstructured-IO/unstructured#3097 (Unstructured)_