The Metadata constructor accepts a file path, a binary stream, or a URI, and auto-detects the format. Pass an optional LoadOptions to override the format or supply a password.
LoadOptions property
Type
Purpose
file_format
FileFormat
Skip auto-detection by stating the format explicitly.
password
str
Open a password-protected document.
For more details, please refer to the following guides: