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

added function to stream pdf file #626

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

PaperBoardOfficial
Copy link
Contributor

This PR closes #298

Changes done:
added new action: read_pdf_content() in controller/service.py to stream pdf file content.
added ReadPdfAction in controller/views.py
created read_pdf_file.py in example/features to test the flow.

results:
gif
logs
pdf file

@MagMueller
Copy link
Collaborator

@PaperBoardOfficial
Super cool!

I am just not sure if we should use include_in_memory=True because PDFs can be gigantic.

Should we do it the same as in extract_content?

@MagMueller MagMueller merged commit ef825a2 into browser-use:main Feb 12, 2025
2 checks passed
@steventen
Copy link

Have we removed this feature? I saw it was released in 0.1.37, but I couldn't find it in recent code.

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.

[Enhancement] Detect download and read PDF
3 participants