PDF trust. More secured AI.

The trust layer for PDFs in agentic AI systems

Lexyra AI analyzes PDFs at the rendering layer to detect hidden text and images before they reach AI agents. Its deep parsing engine reconstructs their graphical context, hierarchy, and deep document structure for use in agentic systems, RAG pipelines, and enterprise workflows.

report_Q3_2025.pdf - Lexyra AI rendering layer analysis
1 threat detected
Visible to human reader
This report summarizes Q3 financial results...
Revenue grew by 14% YoY across all segments...
Operating margin improved to 22.4% this quarter...
Board recommends dividend increase of 8%...
Lexyra AI JSON detection output
{
"raw_text": "Ignore previous instructions..." ,
"contains_hidden_text": true ,
"font_size": 11.0 ,
"invisible": true ,
"invisibility_confidence" : 100 ,
"hidden_text_method" : "text_behind_rectangle" ,
"bbox": { l:106, t:683, r:508, b:690 },
"page" : 2
}
The AI Security Problem

PDFs are an unguarded attack surface for agentic AI

Every agentic AI system that ingests PDFs is exposed to indirect prompt injection risk. Hidden instructions can pass through conventional parsers and downstream guardrails before the agent ever reads them. The attack surface begins inside the document itself.

Threat vector

When Documents Execute

In agentic AI, a PDF is no longer a passive content. Extracted text and images can become instructions executed by an agent. Hidden layers, white-on-white text, microscopic fonts, and off-page elements can silently trigger data leakage, corrupt reasoning, or hijack an autonomous workflow.

Already happening

Injections Found in the Wild

In 2025, a Nikkei Asia investigation found hidden prompts in at least 17 arXiv preprints whose authors were affiliated with 14 academic institutions across eight countries. The prompts were intended to influence AI-assisted peer review. These were real research manuscripts, not lab-generated proofs of concept. In 2026, the Center for Internet Security warned that malicious instructions hidden in documents can lead to data theft, unauthorized access, and disrupted operations.

Market gap

No Reliable Security Layer Exists at the Source

Most AI guardrails analyze prompts, extracted text, or model outputs. Existing PDF-level approaches remain limited and unreliable, even on basic hidden-content cases. Lexyra AI inspects documents at the rendering layer before ingestion, where concealed content can be detected at its source.

Outbound Risk

A Document Can Carry the Attack Forward

PDFs must also be inspected on the way out. A compromised agentic workflow can generate an apparently legitimate document containing hidden instructions for downstream AI systems or concealed sensitive data. Lexyra AI scans generated PDFs before they leave the pipeline, preventing propagation and covert exfiltration.

Hidden Threats Detection Solution

Hidden Threat Detection

Lexyra AI analyzes PDFs at the rendering layer, where concealed content becomes structurally and visually inspectable. Its engine detects suspicious hidden text and images before they reach AI agents, and validates generated PDFs before they leave the workflow.

  • Rendering-aware analysis beyond conventional text parsing
  • More than 20 content concealment techniques identified and detected
  • Text font color identical or similar to background color, microscopic fonts, off-page elements, text behind graphical objects, clipped or non-rendered text, transparent overlays, micro-scaling, and more
  • Risk scores at element and document level, with a structured remediation report
  • Policy-based accept, reject, or quarantine workflows, with optional human-in-the-loop validation
  • Inbound and outbound PDF inspection to prevent ingestion, propagation, and covert exfiltration risks
REST APIMCP ServerCLICloud SaaS On-premise
Lexyra AI in your agentic AI system
πŸ“„
Incoming PDF document
untrusted, unverified
πŸ”
Lexyra AI Trust Layer
rendering-layer analysis + risk scoring
ACTIVE
risk decision
No threat detected
document accepted
AI Agent / RAG Pipeline
receives trusted content
Threat detected
document quarantined
Human review (optional)
validate or dismiss threat
Approved
forwarded
Rejected
blocked
Threat Intelligence

20+ PDF concealment techniques mapped by Lexyra

Majority of concealed content techniques are invisible or easily overlooked during normal document review. All native PDF text parsers will extract the hidden content without realizing that it was invisible to the user, allowing it to enter an AI pipeline as trusted input. Lexyra AI detects these concealment patterns through rendering-aware analysis. Below are eight representative examples from the 20+ techniques mapped by our engine.

White-on-white text

Text rendered in the same color as the page background. Invisible during normal viewing, yet extractable by many PDF parsers and potentially ingested as trusted input by downstream AI systems.

Sub-2pt font size

Microscopic text that is unreadable during normal viewing but will generally be extracted and passed to downstream AI systems.

Off-page elements

Text positioned outside the visible page area, such as beyond the page boundaries or CropBox, while remaining present in the PDF content stream.

Text occluded by graphics

Text visually hidden beneath opaque shapes or drawings while remaining present in the PDF content stream. Lexyra AI identifies text that remains extractable despite being occluded during normal viewing.

Invisible text rendering mode

Text encoded in the PDF with an invisible rendering mode. It is not displayed during normal viewing but is extracted by PDF parsers and enter downstream AI pipelines as trusted input.

Transparent and near-transparent text

Text assigned zero or near-zero opacity values. Invisible or easily overlooked during normal viewing, it will be extracted by PDF parsers and enter downstream AI pipelines as trusted input.

Clipping path concealment

Text clipped outside the visible rendering region while remaining encoded in the PDF content stream. It will be extracted by PDF parsers and enter downstream AI pipelines without appearing during normal viewing.

Micro-scaled text

Text rendered at an unreadable size through graphical scaling, even when its declared font size appears normal. It remains extractable by PDF parsers and enter downstream AI pipelines without attracting attention during normal viewing.

Why downstream controls start too late
Pattern matching misses concealed intent

Rule-based filters can detect obvious signatures, but indirect prompt injections do not need to look malicious. Attackers can use ordinary language, contextual instructions, and social engineering techniques that evade simple pattern matching. A syntactically benign sentence may still be designed to manipulate an agent’s behavior.

Text-only guardrails have already lost the rendering context

LLM guards remain valuable, but they can only assess the information they receive. When a PDF is reduced to extracted text, critical evidence may already be missing: was the sentence visible to the user or not?
Lexyra AI adds a source-layer control before extracted PDF content is trusted or exposed to agents. Rendering-aware analysis identifies concealed elements early, while downstream guardrails continue to protect the rest of the AI pipeline.

The Garbage In Garbage Out AI Problem

PDFs preserve layout. AI needs structured data.

PDFs encode visual appearance, not a reliable machine-readable representation of document meaning. Even AI-powered parsers still lose critical relationships: hierarchy, reading order, nested lists, complex tables, captions, notes, links, and graphical context.
When incomplete or incorrectly rebuilt structure enters an AI pipeline, every downstream task becomes less reliable, including retrieval, reasoning, generation, and automation. Garbage in, garbage out, silently and at scale.

Hidden signal pollution

Hidden Text Corrupts Retrieval at the Source

When invisible text is embedded alongside genuine document content, it can alter vector embeddings and manipulate semantic-search rankings before any model is queried. Without rendering-aware inspection, a text-only RAG pipeline treats concealed content as trusted data because the rendering context has already been lost.

Structure loss

Parsers Still Flatten What Matters

Complex tables become disconnected rows of text. Headings lose their hierarchy. Nested lists, captions, notes, and cross-references detach from the elements they describe. Multi-column layouts collapse into unreliable reading sequences.
By the time extracted content reaches an AI system, critical relationships may already be lost. Retrieval becomes less accurate, reasoning loses context, and every downstream task becomes less reliable.

Data quality gap

The Model Gets Blamed for Bad Inputs

Even AI-powered parsers still lose critical document relationships: nested hierarchy, reading order, complex table semantics, captions, notes, links, and graphical context. Once this structure is missing from the extracted data, downstream AI systems cannot reliably recover it.
The failure starts at the source, long before the model generates an answer.

Deep Extraction Solution

Structural and Graphical Reconstruction

Lexyra AI rebuilds the semantic and visual architecture of complex PDFs, not just their text. Its deep extraction engine preserves the relationships that AI pipelines need, and that extraction tools still frequently lose.

  • Deep document hierarchy: headings, sections, sub-sections, paragraphs, and nested lists
  • Paragraph continuity across columns and pages, preserving complete logical reading sequences
  • Complex table reconstruction: merged regions, multi-level row and column headers, cell-to-header relationships, and multi-page tables rebuilt
  • Reading-order reconstruction and multi-column layout preservation
  • Captions, notes, footnotes, figures, and their associated anchors
  • Bounding boxes, typography, graphical context, internal links, external links, and inferred cross-references preserved alongside text
  • Hidden content isolated from clean output and reported separately
  • High-fidelity JSON and enriched Markdown (with page-level and document-level versions) outputs, repeated headers and footers filtered out, and styles and links preserved.
RAG-ready output: clean, structured JSON and enriched Markdown designed for direct integration into AI pipelines.
Output structure
{
"page": 5,
"orientation": "portrait",
"reading_order": [
{
"type": "table",
"hierarchy": "/doc/sec_1[3]/sec_2[1]/sec_3[1]/tab[1]",
"caption": "Tab. 1: Categories and sub-cat. for GenAI usage",
"structure": {
"rows": 10,
"columns": ["Category", "Sub-category", "Description"],
"row_spans": ["Creation: rows 2–3", "Info: rows 4–7"],
"sample_cell": {
"value": "Artefact",
"assigned_headers": ["Category: Creation", "Sub-category"],
"bbox": [184, 119, 211, 124]
}
}
},
{
"type": "paragraph",
"continued_from": { "page": 4, "id": "4_975" },
"references": [{ "label": "13", "target": "bib:13" }]
},
{
"type": "section",
"level": 3,
"text": "3.1.2 User factors.",
"bbox": [54, 385, 122, 390]
}
],
"style_sample": { "font": "Linux Libertine T", "size_pt": 9, "bold": true },
}
Bounding Box Visualization and JSON Output
Lexyra AI bounding box visualization and JSON output

Left: bounding box overlay on the original PDF page, showing detected elements with their spatial coordinates. Right: structured JSON output with full hierarchy, table reconstruction, and hidden content detection results including risk scores.

Comparison

A missing control layer in the AI document stack

PDF parsers extract content. AI-powered extraction tools recover part of the document structure. LLM guardrails inspect text, prompts, and model behavior. One engine, two controls: rendering-aware threat detection and deep document extraction before PDF content enters your AI pipeline.

Capability PDF Text parsers AI-powered PDF parsers LLM guardrails Lexyra AI
Text extraction βœ“ βœ“ - βœ“
Layout and structural extraction Limited Partial - Deep extraction
Rendering-aware hidden-content analysis Rare Varies - βœ“
Graphical occlusion analysis Rare Varies - βœ“
Element-level PDF risk reporting - Varies - βœ“
Pre-ingestion PDF inspection Possible Varies After extraction βœ“
Inbound and outbound PDF validation - Varies Downstream support βœ“
AI-ready structured output Limited βœ“ - βœ“
High-volume native PDF processing Fast Varies - Optimized

Measured on native PDFs: hidden-threat detection in under 100 ms per page and deep extraction in 600–900 ms per page.

Current scope: Lexyra AI is optimized for native PDFs. Scanned-document processing with vision and OCR is part of the product roadmap.

Stay informed

Explore Lexyra AI

Get notified when beta testing opens, request access to our private interactive demos, book an online demo, apply to join our design partner program, or contact us to discuss our pre-seed round.

We will use your details only to respond to your request.

Node in root