Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Features and better resource handling #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

m-abdi
Copy link

@m-abdi m-abdi commented Mar 9, 2024

Updates:

  1. Add support for BytesIO object as source and target of conversion. This allows in-memory conversion when needed, such as in web server endpoints, where the content needs to be directly read in-memory and transferred.
  2. Add support for HTML content text as source. This enables direct use of HTML strings for conversion.
  3. Introduce PrintOptions as a TypedDict for print options. This change is due to the provided documentation link in the comments being empty, ensuring type safety and clarity in print option specifications.
  4. Move driver.quit() to the finally block. This ensures that, in every scenario, the resources are released, preventing potential resource leaks.
  5. Remove unused sys import. Streamlining the code by eliminating unnecessary imports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant