Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
pdf-image-text9-test
Advanced tools
A library to get data from standalone images and images present inside pdf. Powered by fitz and OpenAI.
This library provides below two functionalities:
pip install pdf-image-text
pdf_to_text = PdfToText(open_ai_key='<>', model='<>')
image_to_text = ImageToText(open_ai_key='<>', model='<>')
Note: The parameters are not required if already present in environment variables as 'OPEN_AI_KEY' and 'MODEL'
From file -
pdf_to_text.load_data(file_name='<Path to file>')
image_to_text.load_data(file_name='<Path to file>')
From file object -
pdf_to_text.load_data(file_bytes_object='<file content>')
image_to_text.load_data(file_bytes_object='<file content>')
image_filter = ImageFilter(lower_height=<int>, upper_height=<int>, lower_width=<int>, upper_width=<int>)
output = pdf_to_text.get_pdf_content(image_filter=image_filter, page_index=<optional field: int>, include_formatted_content=<optional field: bool>)
output = image_to_text.get_image_transcription()
The output response contains a list of Page object. The page object consists of below attributes -
The response contains a string representing the transcription of the provided image.
FAQs
A python package to generate text from pdf and images
We found that pdf-image-text9-test demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.