Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions docs/tutorials/using_cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ The Parxy CLI lets you:
| Command | Description |
|------------------|-------------------------------------------------------------------------------------------------------------|
| `parxy parse` | Extract text content from documents with customizable detail levels and output formats. Process files or folders with multiple drivers. |
| `parxy preview` | Interactive document viewer with metadata, table of contents, and scrollable content preview |
| `parxy markdown` | Convert documents to Markdown files, with support for multiple drivers and folder processing |
| `parxy pdf:merge`| Merge multiple PDF files into one, with support for page ranges |
| `parxy pdf:split`| Split a PDF into individual pages, with optional page range and single-file extraction |
Expand Down Expand Up @@ -133,47 +132,6 @@ Process all PDFs in a folder with two drivers, output as JSON, and save to a spe
parxy parse /path/to/pdfs -d pymupdf -d llamaparse -m json -o output/
```

## Previewing Documents

The `preview` command provides an interactive document viewer that displays:
- Document metadata (title, author, creation date, etc.)
- Table of contents extracted from headings
- Document content rendered as markdown

This is useful for quickly inspecting a document's structure and content without creating output files.

### Basic Usage

```bash
parxy preview document.pdf
```

The preview is displayed in a scrollable three-panel layout.

### Options

Specify a driver:

```bash
parxy preview document.pdf --driver llamaparse
```

Adjust extraction level:

```bash
parxy preview document.pdf --level line
```

### Navigation

The preview uses your system's default pager (similar to `less` on Unix systems), allowing you to:
- Scroll up and down
- Search for text
- Exit the preview

This is ideal for quick document inspection before running a full parsing operation.


## Converting to Markdown

The `markdown` command converts documents to Markdown format, preserving structure such as headings and lists. It follows the same conventions as the `parse` command: output files are prefixed with the driver name and saved next to the source file by default.
Expand Down Expand Up @@ -407,7 +365,6 @@ With the CLI, you can use Parxy as a **standalone document parsing tool** — id
| Command | Purpose |
|------------------|--------------------------------------------------------------|
| `parxy parse` | Extract text from documents with multiple formats & drivers |
| `parxy preview` | Interactive document viewer with metadata and TOC |
| `parxy markdown` | Generate Markdown files; accepts JSON results and supports `--page-separators` |
| `parxy pdf:merge`| Merge multiple PDF files with page range support |
| `parxy pdf:split`| Split PDF into individual pages; supports `--pages` and `--combine` |
Expand Down
2 changes: 0 additions & 2 deletions src/parxy_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from parxy_cli.console.console import Console
from parxy_cli.commands.docker import app as docker_command
from parxy_cli.commands.parse import app as parse_command
from parxy_cli.commands.preview import app as preview_command
from parxy_cli.commands.drivers import app as drivers_command
from parxy_cli.commands.env import app as env_command
from parxy_cli.commands.version import app as version_command
Expand Down Expand Up @@ -70,7 +69,6 @@ def main(

app.add_typer(docker_command)
app.add_typer(parse_command)
app.add_typer(preview_command)
app.add_typer(drivers_command)
app.add_typer(env_command)
app.add_typer(version_command)
Expand Down
216 changes: 0 additions & 216 deletions src/parxy_cli/commands/preview.py

This file was deleted.

Loading