4 PDF Parsing Strategies for RAG: Part 2 | Unstructured

Mastering PDF Transformation Strategies with Unstructured: Part 2

May 20, 2025

Authors

Tarun Narayanan

DevRel Engineer, Unstructured

In this article

  1. Fast Strategy: For Speed and Simplicity
  2. Hi-Res Strategy: The Workhorse for Visually Complex Digital PDFs
  3. VLM (Vision Language Model) Strategy: The Heavy Artillery for the Toughest Cases
  4. Auto Strategy: The Smart Orchestrator

Working Example: Hi-Res vs. VLM for Tables
Key Technical Tradeoffs: Speed, Cost and Accuracy
Beyond Basic Parsing: Preparing Data for AI/RAG
Enterprise Grade Security and Parsing
Conclusion

Welcome to Part 2 of our deep dive into PDF processing with Unstructured! In Part 1, we laid the groundwork by exploring how Unstructured dissects complex PDFs, transforming them from challenging, visually-focused documents into a structured, developer-friendly list of document elements. We saw that whether it's a Title, NarrativeText, Table, or an Image, each element comes with rich metadata, providing context and making the data AI-ready.

However, the journey from a raw PDF to these clean elements isn't always straightforward. PDFs vary wildly: some are clean, digitally-native documents, while others are scanned, have complex multi-column layouts, or contain intricate tables and forms. A one-size-fits-all approach to parsing simply won't cut it. This is where the power of Unstructured's different parsing strategies comes into play.

This second part of our guide will focus on these strategies. We'll explore the various methods Unstructured offers, from fast and simple to highly sophisticated, to generate the document elements we learned about in Part 1. Our goal is to equip you with the knowledge to choose the best strategy—or combination of strategies—for your specific PDF processing tasks, balancing considerations of speed, cost, and accuracy.

PDF Parsing Strategies: Choosing Your Weapon

PDFs aren't one-size-fits-all, and neither are the methods to parse them. Unstructured offers multiple parsing strategies because, let's face it, a strategy optimized for a clean, text-based technical manual would probably struggle with a scanned, coffee-stained invoice. Picking the right one depends on your PDF's complexity, its origin (digital-native vs. scanned), the quality of the document itself, and, critically, your own project's requirements for speed, cost, and accuracy.

Now, we'll explore how these elements are generated by looking at the main strategies Unstructured puts at your disposal.

1. Fast Strategy: For Speed and Simplicity

Think of it as: The quick, lightweight option. It’s designed for speed when you're dealing with documents that have relatively straightforward structures or when you primarily need to pull out text without intense layout analysis.

Best For:

How It Works (Under the Hood):

Pros:

Not the Best Option for:

2. Hi-Res Strategy: The Workhorse for Visually Complex Digital PDFs

Think of it as: Your go-to for most digitally-born PDFs that contain a mix of text, tables, and images where layout matters. It leverages computer vision methods to understand the page structure.

Best For:

How It Works (Under the Hood):

Pros:

Cons & Common Pitfalls for Developers:

3. VLM (Vision Language Model) Strategy: The Heavy Artillery for the Toughest Cases

Think of it as: Calling in the big guns when other methods struggle, especially for documents that are primarily images of text or have extremely challenging layouts.

Best For:

How It Works (Under the Hood):

Pros:

Cons & Developer Considerations:

4. Auto Strategy: The Smart Orchestrator

Think of it as: An intelligent manager dynamically choosing the best parsing approach per page to optimize for quality and cost.

Best For:

How It Works (Under the Hood):

Pros:

Working Example: Hi-Res vs. VLM for Tables

Extracting tables accurately from PDFs is challenging due to complex structures like merged cells, missing borders, and multi-level headers. The Hi-Res and VLM strategies offer different strengths here. Consider the example below:

Original Table: The example shows a complex table with multi-level column headers (e.g., "Population," "Population Share %" spanning sub-categories), varied alignments, and implicit groupings.

Hi-Res Output: Hi-Res uses object detection and table transformers. For such tables:

VLM Output: VLM treats the table as an image, applying a vision-language model for a more holistic understanding:

Key Differences & When to Choose:

Key Technical Tradeoffs: Speed, Cost and Accuracy

Strategy Speed Cost Accuracy (Layout) Accuracy (Text) Handles Images Handles Tables OCR Capable Key Use Case
Fast Fastest Lowest Low-Medium Medium-High No Basic No "Simple, text-heavy, digitally-born PDFs; HTML, TXT"
Hi-Res Medium Medium High High Yes Complex Yes Most complex digital PDFs with visuals/tables. Higher granularity into results.
VLM Slowest Highest Highest Highest Yes (describes) Most Complex Implicitly "Extremely challenging/damaged documents. Scanned, handwritten text."
Auto Variable Variable Optimized per page Optimized Yes Yes Yes "General purpose, mixed-quality collections. Intelligent per-page routing."

Beyond Basic Parsing: Preparing Data for AI/RAG

Getting structured elements out of your PDFs using the right parsing strategy is a massive win, but for many AI-driven applications, especially RAG systems, it's just the first crucial step. Once Unstructured has dissected your document into meaningful pieces like Title, NarrativeText, and Table elements, you'll often want to further prepare this data to make it optimally useful for LLMs.

Here’s a look at common next steps and features Unstructured provides to get your data AI-ready:

By leveraging these capabilities, you move beyond basic parsing, ensuring access to high-quality, contextually rich, and easily retrievable information.

Enterprise Grade Security and Parsing

Handling sensitive documents in enterprise environments demands robust security and strict compliance. Unstructured’s Enterprise ETL+ platform is purpose-built to meet these high standards, offering both flexibility and peace of mind.

Key features include:

Conclusion

Across this two-part series, we've journeyed from the complexities of PDF structures to the sophisticated strategies Unstructured employs to tame them. In Part 1, we established the importance of a structured, element-based output. In this Part 2, you've gained insight into the different parsing strategies—Fast, Hi-Res, VLM, and Auto—understanding their trade-offs in speed, cost, and accuracy, particularly for challenging elements like tables.

The ability to choose the right strategy, or let Auto intelligently decide, empowers you to convert diverse PDF landscapes into clean, AI-ready data. Coupled with features for chunking, embedding, enrichment, and secure enterprise deployment, Unstructured provides a comprehensive toolkit to unlock the valuable information within your documents.