Skip to content
Back to skills

Pdf Ocr Using Gemini Llm

ASecurity

Extract text from PDFs using Google Gemini OCR. Use when extracting text from PDFs, performing OCR on scanned documents, or processing image-based PDFs.

  • 33 stars
  • 0 votes
  • 1 copy
  • 7 views
  • Added September 5, 2026
developmentpythongobashtestingapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 12 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill pdf-ocr-using-gemini-llm --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pdf Ocr Using Gemini Llm?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pdf Ocr Using Gemini Llm
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-pdf-ocr-using-gemini-llm/badge)](https://www.skillsdirectory.com/skills/dvcrn-pdf-ocr-using-gemini-llm)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: PDF OCR using Gemini LLM
description: "Extract text from PDFs using Google Gemini OCR. Use when extracting text from PDFs, performing OCR on scanned documents, or processing image-based PDFs."
---

## Purpose

Use geminipdfocr to extract text from PDF documents via OCR (Google Gemini).

## Data and privacy

**Full page images/files are sent to Google's API.** PDFs are split into single-page files and each page is uploaded to Google Gemini for OCR. There are no hidden exfiltration endpoints or other data collection. Do not use with highly sensitive documents unless you accept that content is sent to Google.

## Setup (venv installation)

Before first use, create and activate the virtual environment:

```bash
cd geminipdfocr && python -m venv venv && source venv/bin/activate && pip install -r requirements.txt
```

Set `GOOGLE_API_KEY` in your environment before running (e.g. `export GOOGLE_API_KEY=your-key`).

## How to use

When requested to extract text or perform OCR on a PDF:

1. Run: `cd geminipdfocr && source venv/bin/activate && python -m geminipdfocr <path-to-pdf> [--json] [--output <file>]`
2. Use `--json` for structured data.
3. Use `--max-pages N` for testing or very long documents.
4. Use `--quiet` to suppress progress logs.

## Requirements

- A valid PDF file path.
- `GOOGLE_API_KEY` set in the process environment (e.g. `export GOOGLE_API_KEY=your-key`).

## CLI options

| Option | Description |
|--------|-------------|
| `pdf_path` | One or more PDF file paths (positional) |
| `--max-pages N` | Limit pages per PDF |
| `--json` | Output structured JSON instead of plain text |
| `--output FILE` | Write result to file (default: stdout) |
| `--quiet` | Suppress INFO/DEBUG logs |

Files in this skill

  • SKILL.md1.7 KB
  • __init__.py58 B
  • __main__.py399 B
  • config.py420 B
  • file_service.py1.6 KB
  • gemini_client.py1.8 KB
  • main.py3.1 KB
  • requirements.txt159 B
  • schemas.py1.2 KB
  • service.py6.3 KB
  • skill.json384 B
  • utils.py2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.