Skip to content

Filetype "txt" becomes the only supported value#4460

Closed
JorjMcKie wants to merge 3 commits into
mainfrom
restrict-open-with-filetype
Closed

Filetype "txt" becomes the only supported value#4460
JorjMcKie wants to merge 3 commits into
mainfrom
restrict-open-with-filetype

Conversation

@JorjMcKie
Copy link
Copy Markdown
Collaborator

After the introduction of a complete file content recognizer, the only remaining relevant value for PyMuPDF's open parameter "filetype" is "txt". This change will implement this such that specifying filetype="txt" will open files or memory data as plain text Documents. Other values will be silently ignored and no longer lead to confusing behavior.

Comment thread docs/how-to-open-a-file.rst Outdated
Comment thread docs/how-to-open-a-file.rst Outdated
Comment thread docs/how-to-open-a-file.rst Outdated
Comment thread docs/how-to-open-a-file.rst Outdated
After the introduction of a complete file content recognizer, the only relevant value for PyMuPDF's open parameter "filetype" remaining is "txt".
This change will implement this such that specifying filetype="txt" will open files or memory data as plain text Documents.
Other values will be silently ignored and no longer lead to confusing behavior.
@JorjMcKie JorjMcKie force-pushed the restrict-open-with-filetype branch from dd84cec to 0101907 Compare April 21, 2025 23:00
Updating file open tests to reflect logic adjusted to file recognizer.
@JorjMcKie JorjMcKie requested a review from jamie-lemon April 22, 2025 15:05
@JorjMcKie
Copy link
Copy Markdown
Collaborator Author

Closing this as no longer relevant.

@JorjMcKie JorjMcKie closed this Apr 24, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants