# PDF routing is hard

> Public PDF parsing examples show how LlamaIndex’s LiteParse and Firecrawl’s pdf-inspector can miss content on pages routed to lightweight extraction.

Published 2026-09-05 by Raunak Chowdhuri · Reducto Engineering

We’ve tried building PDF routing at Reducto several times. The motivation is straightforward: some documents should be cheaper and faster to process, and we’d like to pass those savings on to users. Each time, though, we found enough edge cases that we weren’t comfortable shipping it.

The difficult part was deciding when we could trust the cheaper path. A PDF could have extractable text and still contain information that the parser missed. If we offered a router, users would reasonably expect us to make that decision accurately. They shouldn’t have to compare the extracted output with every page to find out whether it worked.

Recent work on pdf-inspector and LiteParse prompted us to revisit the question using public documents. A few examples show the kinds of failures that have made us cautious.

<SocialPost
    url="https://x.com/nickscamara_/status/2083295265793212827"
    author="Nicolas Camara"
    excerpt="we built pdf-inspector so agents can process PDFs without waiting on OCR."
/>

Both Firecrawl’s pdf-inspector and LlamaIndex’s LiteParse expose signals specifically to help developers route documents between native PDF text extraction and OCR or a heavier parsing pipeline. pdf-inspector classifies documents and identifies pages that need OCR. LiteParse exposes separate OCR and layout-complexity signals. These signals inform whether a page should go through the lite path in the first place.

We ran both tools on a sample of public PDFs from Common Crawl and used their signals to route selected pages to their respective lite paths. We used an [LLM judge](/engineering/posts/llm-judges-table-ocr-false-positives/) to compare the extracted outputs with R-1’s, checking both against the original page images to identify issues.

On most of our internal datasets, which more closely reflect our customers’ document mix, we’ve found these issues to be worse than on the public sample. We’re using public documents here so we can show the pages and their extracted output.

## Pages routed to LiteParse and pdf-inspector

This menu was routed to LlamaIndex’s LiteParse using its own routing signals. It returned two headings, omitting all the dishes and prices.

<ParseComparison
    id="missing-menu"
    title="LiteParse: a menu reduced to headings"
    parser="LlamaIndex LiteParse"
    image="https://cdn.reducto.ai/blog/pdf-routing/palazzo-menu-page-2-122d5c3d191a.jpg"
    width={864}
    height={1248}
    alt="Page 2 of a Palazzo menu, with main courses and desserts, descriptions, prices, and a contact footer."
    output={"# Hauptspeisen\n\n# Desserts"}
    page="Page 2 of 2"
    source="https://www.palazzo-gourmet.de/"
    sourceLabel="Palazzo Gourmet"
    caption="Routed to LiteParse with neither OCR nor complex-layout handling flagged. The output contains only the headings for main courses and desserts."
    regions={[
        { x: 12, y: 12, width: 79, height: 39 },
        { x: 12, y: 58, width: 79, height: 32 },
        { x: 15, y: 95, width: 70, height: 3.5 },
    ]}
/>

This announcement was also routed to LiteParse. The output skips both disclaimer paragraphs and retains the source and contact information.

<ParseComparison
    id="missing-paragraphs"
    title="LiteParse: missing paragraphs"
    parser="LlamaIndex LiteParse"
    image="https://cdn.reducto.ai/blog/pdf-routing/bluerush-page-2-316fe6882d57.jpg"
    width={980}
    height={1268}
    crop={0.5}
    alt="Page 2 of a BlueRush financial-results announcement. Forward-looking-information and exchange disclaimer paragraphs appear above the source, contact information, and article URL."
    output={
        "SOURCE BlueRush Inc. For further information: Steve Taylor, CEO, Tel: 416-457-9391, steve.taylor@bluerush.com; Dave Badun, CFO, Tel: 416-203-0618, dave.badun@bluerush.com\n\n[https://bluerush.mediaroom.com/2019-12-19-BlueRush-Reports-Fiscal-2020-First-Quarter-Financial-Results](https://bluerush.mediaroom.com/2019-12-19-BlueRush-Reports-Fiscal-2020-First-Quarter-Financial-Results)"
    }
    page="Page 2 of 2"
    source="https://bluerush.mediaroom.com/2019-12-19-BlueRush-Reports-Fiscal-2020-First-Quarter-Financial-Results"
    sourceLabel="BlueRush announcement"
    caption="Routed to LiteParse because its own signals returned needs_ocr=false and layout.is_complex=false. Both highlighted paragraphs are missing. The top half of the page is shown; the full image is available above."
    regions={[{ x: 5.3, y: 3.5, width: 89.2, height: 33.1 }]}
/>

Using pdf-inspector’s signals, we routed this report to native extraction. It missed the table, returning its title and the page footer.

<ParseComparison
    id="missing-table"
    title="pdf-inspector: a missing table"
    parser="pdf-inspector"
    image="https://cdn.reducto.ai/blog/pdf-routing/waste-report-page-50-1f9286589fe1.jpg"
    width={1348}
    height={953}
    alt="Page 50 of a Portuguese waste-management report. A large table lists municipalities, collection and treatment volumes, costs, and revenues."
    output={
        "**Quadro 21 – Recolha Seletiva (BAIXA) e Tratamento ( ALTA) de biorresíduos**\n\nRELATÓRIO PRELIMINAR"
    }
    page="Page 50 of 61"
    source="https://www.residuosdonordeste.pt/"
    sourceLabel="Resíduos do Nordeste"
    caption="Routed to pdf-inspector’s native extraction path based on its text-based classification and OCR signals. The highlighted table is absent from the output."
    regions={[{ x: 4.7, y: 21.8, width: 88.5, height: 62.7 }]}
/>

## What we need from a PDF router

In each case, the tool’s own signals were the basis for routing the page to the lite path. The parser then returned readable text with substantial omissions. A downstream application relying on that routing decision could accept the output and continue processing it.

A text layer tells you about the content represented in that layer. A page can also contain text inside an image, equations drawn with graphics, or a table whose meaning depends on how the values line up. Even when characters are available, extracting them in the right order and preserving their relationships is another part of the job.

A router can check for these cases. LiteParse already checks for embedded images, garbled text, and layout complexity. But an absence of flags still leaves us with the question these examples raise: will the selected parser capture the information on the page?

That is the question we haven’t been comfortable answering across the documents our customers send us. Before we ship this approach, we need confidence that the router will recognize when the cheaper parser is going to miss something and choose a different path. Users should be able to benefit from the cost savings without taking on the work of finding those omissions themselves.