# PDF to Structured Data

> Extract structured JSON from PDFs using natural language instructions and Gemini

This open-source web application extracts structured JSON data from uploaded PDFs using Google's Gemini 2.0 Flash model. Users describe what they want to pull out in plain text, and the system automatically generates an extraction schema and returns clean JSON. It removes the need for custom parsing scripts or fixed templates.

Website: https://huggingface.co/spaces/philschmid/pdf-to-structured-data

## What it is for

- Extract specific fields from scanned invoices and receipts into JSON format
- Parse handwritten or unstructured government forms without writing regex rules
- Convert legacy PDF documents into standardized schema-based records

## Features

- Natural language prompting to define required extraction fields
- Automatic schema generation based on user instructions
- Gemini 2.0 Flash integration for fast multimodal document processing
- Direct JSON output export
- Open-source Next.js stack deployable via Docker or locally

## Pricing

Free Hugging Face Space; requires a Gemini API key if self-hosted

## Details

- Type: Web app
- Category: [AI](https://xiry.app/topics/ai.md)
- Open source: yes
- Platforms: Web, Self-hosted
- For: Developers, data engineers, and researchers handling unstructured PDF documents
- Alternative to: Textract, Docsumo, LlamaParse
- Tags: pdf, json, gemini, data extraction, multimodal, huggingface

## Why it was saved

- [@_philschmid, 27 February 2025](https://x.com/_philschmid/status/1895171183521214821): Turns messy or handwritten PDFs (forms, invoices) into clean structured data without building a custom parser. The schema view shows how the tool maps your description to fields like formNumber, formStartDate, liabilityStartDate and liabilityEndDate.

## Related

- [Agentic Video in Gemini](https://xiry.app/resources/agentic-video-in-gemini): Dynamic video inspection for Gemini models that cuts token usage and cost (AI model, Paid)
- [Agentic video understanding in Gemini: Developer Guide](https://xiry.app/resources/agentic-video-understanding-in-gemini-developer-guide): Developer guide for on-demand, agentic video analysis in the Gemini API (Article or course, Freemium)
- [Gemini Omni](https://xiry.app/resources/gemini-omni): Conversational multimodal AI model for step-by-step video editing and generation (AI model, Freemium)
- [Google AI Studio](https://xiry.app/resources/google-ai-studio): Web playground for prototyping and building Gemini-powered applications. (Web app, Freemium)
- [Google AI Studio Live](https://xiry.app/resources/google-ai-studio-live): Real-time multimodal voice and screen-sharing AI assistant powered by Gemini 2.0 (AI model, Freemium)
- [Reducto](https://xiry.app/resources/reducto): Agentic document parsing and extraction platform for AI pipelines. (Web app, Freemium)

Updated 10 October 2026. Page: https://xiry.app/resources/pdf-to-structured-data

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
