mirror of
https://github.com/0xMassi/webclaw.git
synced 2026-06-07 22:15:12 +02:00
CLI + MCP server for extracting clean, structured content from any URL. 6 Rust crates, 10 MCP tools, TLS fingerprinting, 5 output formats. MIT Licensed | https://webclaw.io
14 lines
335 B
Rust
14 lines
335 B
Rust
/// PDF extraction errors. Kept simple -- no OCR, no complex recovery.
|
|
use thiserror::Error;
|
|
|
|
#[derive(Debug, Error)]
|
|
pub enum PdfError {
|
|
#[error("PDF extraction failed: {0}")]
|
|
ExtractionFailed(String),
|
|
|
|
#[error("invalid PDF: {0}")]
|
|
InvalidPdf(String),
|
|
|
|
#[error("empty PDF: no text content found")]
|
|
EmptyPdf,
|
|
}
|