layout-analyzer

Analyze document layout and reading order using the Surya OCR system.

368|75|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/claude-office-skills/skills --skill layout-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: layout-analyzer
Source: https://github.com/claude-office-skills/skills/tree/main/layout-analyzer
Command: npx skills add https://github.com/claude-office-skills/skills --skill layout-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires surya-ocr, pdf2image, Pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the complex task of understanding the visual layout and structural elements within documents, making it easier to process and extract information from PDFs and images.

Core Features & Use Cases

  • Layout Detection: Identifies text blocks, tables, figures, headings, and other elements.
  • Reading Order Determination: Establishes the logical flow of content on a page.
  • Use Case: Automatically analyze a scanned research paper to identify sections, figures, and tables, then determine the correct reading order for accurate summarization.

Quick Start

Analyze the layout of this document page and detect all tables and text blocks.

Frequently Asked Questions about layout-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract document structure and reading order from a scanned PDF?

To extract document structure and reading order from a scanned PDF, this Skill uses the Surya OCR system to identify text blocks, tables, figures, and headings, establishing the logical content flow for accurate processing and summarization.

What is document layout analysis and how does it identify tables and figures?

Document layout analysis is the process of detecting visual elements on a page. This Skill automates layout analysis by identifying text blocks, tables, figures, and headings within complex documents to prepare them for information extraction.

Can I use Surya OCR for layout detection on image inputs?

Yes, you can use Surya OCR for layout detection on image inputs. The Skill supports both PDF and image formats, automatically analyzing structural elements and determining the correct reading order for accurate information extraction.

What's the best way to analyze a research paper layout for accurate summarization?

The best way to analyze a research paper layout for summarization is using an automated layout analyzer. This Skill detects sections, figures, and tables, and determines the correct reading order to ensure downstream summarization captures the logical content flow accurately.

Does this PDF layout analyzer support visualization of detected text blocks?

Yes, this PDF layout analyzer supports visualization of detected text blocks. Alongside identifying structural elements and reading order using Surya OCR, it includes capabilities for visualizing the analyzed layout elements within your documents.

Do I need to install pdf2image and Pillow to determine reading order in complex documents?

Yes, you need pdf2image and Pillow installed to determine reading order in complex documents. These dependencies, alongside surya-ocr, provide the necessary environment for processing PDFs and images to identify structural elements and logical content flow.