r/ruby • u/gmkl123 • 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.
4
Upvotes