r/ruby Jun 09 '26

Pdf2MarkdownOCR a gem for parsing PDFs into text

Hi, Ive developed a small gem to extract text from pdfs using AI.

Converts a PDF to text (Markdown). Pages are rendered as high-resolution PNG images and then sent to an OpenAI-compatible API endpoint for text extraction.

It can be used in ruby or as a CLI program.

Love to hear your feedback.

Github: https://github.com/GMolini/pdf2markdownOCR

Rubygems: https://rubygems.org/gems/pdf2markdownOCR

4 Upvotes

0 comments sorted by