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

Support uploading context files #8

Merged
merged 4 commits into from
Jul 24, 2023
Merged

Support uploading context files #8

merged 4 commits into from
Jul 24, 2023

Conversation

clarkmcc
Copy link
Owner

@clarkmcc clarkmcc commented Jul 24, 2023

image

@clarkmcc clarkmcc linked an issue Jul 24, 2023 that may be closed by this pull request
@clarkmcc clarkmcc added the enhancement New feature or request label Jul 24, 2023
Comment on lines +32 to +36
fn extract_pdf(bytes: &[u8]) -> Result<String> {
catch_unwind(|| pdf_extract::extract_text_from_mem(&bytes))
.map_err(|err| anyhow!("PDF extraction panicked: {:#?}", get_panic_message(err)))?
.map_err(|err| err.into())
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revisit if jrmuizel/pdf-extract#65 gets resolved.

@clarkmcc clarkmcc merged commit cea0303 into main Jul 24, 2023
1 check passed
@clarkmcc clarkmcc deleted the 5-upload-context-files branch July 24, 2023 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upload files for context
1 participant