{
  "id": 17415392,
  "title": "Extracting structured data from PDFs using Gemini 2.0 and Genkit in Firebase: Web Architecture & Implementation Guide",
  "url": "https://urgent.news/2026/10/31/extracting-structured-data-from-pdfs-using-gemini-2-0-and-genkit-in",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-31T14:37:09.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/codingcatdev/extracting-structured-data-from-pdfs-using-gemini-20-and-genkit-in-firebase-web-architecture--2oil"
  },
  "original_language": "en",
  "account": "Google released Gemini 2.0, and after reading a blog post about parsing PDFs using Gemini 2.0, the author decided to rebuild the sample using Genkit. Genkit is an AI integration framework that simplifies implementing AI features for web applications. It provides strongly typed flows, dotprompt templates, local developer UI trace inspection, and production observability. The author focuses on Genkit for Node.js, but the framework supports Go (alpha) and Python (under development) runtimes.\n\nTo use Gemini 2.0 Flash in Genkit, install Genkit and the Google AI SDK plugin. Instantiate Genkit and define a default model, which will be used for all subsequent API calls. The author provides an example of Extracting structured data from PDFs using Gemini 2.0 and Genkit in a simple command-line utility written in TypeScript. The utility processes an invoice PDF and extracts various details such as invoice number, date, line items, and summary.\n\nTo enforce a specific data structure, the author utilizes Zod schemas in Genkit. By defining a schema, the generated output will conform to the specified structure, providing a consistent format for further processing.",
  "summary": "Original: https://codingcat.dev/post/firebase-2025-02-gemini-genkit-pdf-structured-data Building AI features in TypeScript or Go quickly turns into spaghetti when you try to bolt structured output validation, tool calling, and OpenTelemetry tracing onto raw model API calls. Following the announcement of Extracting structured data from PDFs using Gemini 2.0 and Genkit by Peter Friese on the…",
  "key_points": [
    "Google released Gemini 2.0 for structured data extraction from PDFs",
    "Author rebuilds sample using Genkit, an AI integration framework",
    "TypeScript utility extracts invoice details like number, date, line items"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}