跳到主要内容

PDF Parsing Commands: pdf

bohr pdf submits PDF parsing tasks and retrieves parsed text and structured objects.

Commands

CommandUsageDescription
parsebohr pdf parse [flags]Submit a PDF for asynchronous parsing.
resultbohr pdf result <token> [flags]Retrieve content and structured semantic blocks from a previously submitted PDF parsing task.

For subcommands inside a command group, run bohr pdf <group> --help.

Common parameters

ParameterDescription
--url <pdf-url>Parse a remote PDF URL
--file <local.pdf>Upload and parse a local PDF; use instead of --url
--syncWait for parsing to finish
--textual <level>Text parsing level, default 1
--table <level>Table parsing level, default 1
--equation <level>Equation parsing level, default 0
--formatted <format>Return plain, markup, markdown, latex, or html content

Examples

bohr pdf parse --url "https://example.com/paper.pdf"
bohr pdf parse --file ./paper.pdf --table 2 --equation 1 --sync
bohr pdf result task-token-123 --formatted markdown -o json

Successful PDF parsing is charged by the number of pages processed. Without --sync, save the returned token and use pdf result to retrieve the asynchronous result.