Parses PDFs using the bohr CLI to extract text, tables, equations, charts, figures, molecules, or page layout. Useful for structured PDF content extraction with a submit-and-retrieve workflow.
Ships in bohrium-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Goal | Route |
|---|---|
| Extract a local PDF | Validate file → submit --file → retain token → retrieve requested blocks |
| Extract a directly reachable PDF | Validate URL → submit --url → use the same result workflow |
| Recover an interrupted wait | Continue result with the original token; submission creates another parse |
| Extract claims or research reasoning | Route to LKM extract instead of layout parsing |
<token> with the returned data.token. JSON is forwarded from upstream: if the token is absent, preserve the full response and report the missing handoff; do not substitute another task ID or resubmit in human mode to obtain it:bohr pdf parse --file ./paper.pdf --table 2 --equation 2 --yes -o json
bohr pdf result <token> --formatted markdown -o json
undefined/processing at a bounded interval. success completes parsing; PARSE_FAILED ends it unsuccessfully. A timeout stops this wait and retains the token for later retrieval.proc_page/total_page; record missing or partial pages. Deliver the requested content with page provenance and the source/token needed to trace it. Non-empty --return-half output remains partial until terminal success.Use Bohrium Uni-Parser through the version-matched CLI to extract document layout and content from one PDF. Choose exactly one input route:
bohr pdf parse --file <path> uploads a local PDF.bohr pdf parse --url <url> asks the service to download a PDF URL.Confirm the exact local file or URL before submission. A local file leaves the current machine, and a URL must be directly reachable by the parsing service.
This workflow extracts layout, text, tables, equations, charts, figures, or molecules.
Use bohr lkm extract when the requested output is scientific claims,
research questions, conclusions, reasoning steps, or an LKM variable graph.
Check the current identity and price contract:
bohr auth whoami -o json
bohr billing pricing --resource pdf -o json
PDF parsing is 0.05 CNY per page under the embedded catalog. The final cost
depends on the successfully parsed page count, so do not invent a total before
the service reports the document size or billing result. In non-interactive
use, add --yes only after spending is authorized; result retrieval is free
and does not need spending confirmation.
Use --dry-run to check the selected input without submitting or uploading it.
The defaults enable fast text and table extraction. Enable only the additional semantic modes needed by the task:
bohr pdf parse --file ./paper.pdf \
--textual 2 \
--table 2 \
--equation 2 \
--chart 1 \
--figure 0 \
--molecule 0 \
--yes \
-o json
For a remote source:
bohr pdf parse --url "https://example.org/paper.pdf" --yes -o json
Capture data.token from the successful submission. The token, not a task ID
from another parser, is the input to bohr pdf result.
Parsing is asynchronous by default:
bohr pdf result <token> -o json
undefined and processing are non-terminal states. Poll at a moderate,
bounded interval such as 3–5 seconds. Stop when the returned status is
success, when the command returns PARSE_FAILED, or when the user's waiting
budget expires. A local waiting deadline only stops polling; it does not cancel
the remote parse.
--sync makes submission wait for parsing, but the returned token is still the
stable handoff to bohr pdf result for requested content and structured data.
Use --return-half only when partial completed portions are useful. Non-empty
partial content is not evidence that parsing reached a terminal state.
The default result request enables --content and --objects. For narrower or
hierarchical output, choose explicitly:
bohr pdf result <token> --content --objects -o json
bohr pdf result <token> --content=false --objects=false --pages-dict -o json
bohr pdf result <token> --content=false --objects=false --pages-tree -o json
bohr pdf result <token> --formatted markdown -o json
bohr pdf result <token> --molecule-source -o json
At least one of --content, --objects, --pages-dict, or --pages-tree
must remain enabled. pages_dict and pages_tree are arrays despite their
names; use proc_page and total_page for progress instead of array length.
Structured blocks preserve upstream fields such as class/type, coordinates, confidence, hierarchy, and future vendor fields. Treat chart and table recognition as extracted evidence, not verified numeric truth; compare critical values against the source PDF before calculation or data entry.
Without --payment-source, the CLI sends no channel preference: the gateway
uses photons first and falls back to balance only on definite photon
insufficiency. Tell the user this policy when obtaining spending authorization.
To restrict spending to one source, use --payment-source photon or
--payment-source balance. Explicit photon stops when photons are insufficient;
explicit balance charges balance directly. Existing free quotas and exemptions
still apply.
When an explicitly selected channel returns BILLING_INSUFFICIENT with
retryable: false, report the refusal and wait
for the user to recharge the selected source or authorize the other source for
the original command. Explicit balance insufficiency also stops without charging
photons; use --payment-source photon only after that source is authorized.
--yes confirms execution; it does not authorize changing the payment source.
Use --payment-source balance only when that source is authorized. Keep the
selected source on subsequent billable calls in a multi-step workflow; options
from a previous CLI invocation are not saved. bohr api follows the same rule.
Read references/commands.md for exact flag defaults,
format choices, result fields, polling states, error handling, and the embedded
version contract.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/bohrium-skills:bohrium-pdf-parserfrom bohrium-skills
npx claudepluginhub dptech-corp/bohrium-skills --plugin bohrium-skills18 skills in this plugin
/bohrium-databaseQuery Bohrium scientific databases with `bohr database`: browse polymer records, search crystal structures, or inspect and query private tabular databases by db_ak and table_ak. Use for Bohrium database, 私有数据库, polymer library, crystal structure search, table schema, or filtered row queries./bohrium-datasetCreate, list, inspect, version, download, resume, or delete Bohrium datasets with `bohr dataset`. Use for 数据集, dataset uploads, dataset IDs/version IDs, project-owned data, dataset sharing/permissions, resumable transfers, or archives. Use `bohr file` for personal/share disk objects that are not dataset versions./bohrium-fileManage files and directories on Bohrium personal or project-share disks with `bohr file`: list, stat, download, upload, mkdir, copy, move, or delete. Use for personal/, share/, 云盘文件, project shared storage, recursive prefixes, and local/remote file transfer. Use Dataset commands for versioned datasets./bohrium-imageDiscover, inspect, pull, push, build, commit, monitor, or delete Bohrium images with `bohr image`. Use for container images, 镜像管理, public/private image lookup, Docker pulls and pushes, Dockerfile builds, sandbox snapshots, build logs, image IDs, and image lifecycle states./bohrium-jobSubmit, list, inspect, stop, delete, download, or group Bohrium compute jobs with `bohr job` and `bohr job-group`. Use for BOHR_ID, machine/image selection, scientific batch computation, job status, logs/results, queued cancellation, running termination, or job-group lifecycle./bohrium-knowledge-baseCreate, list, search, upload to, or delete Bohrium knowledge bases and manage their documents with `bohr kb`. Use for 知识库, KB content search, document IDs, folder/root node IDs, local document upload, or safe document deletion. Use paper search for the public literature catalog and LKM for claim graphs.Other plugins' skills for the same job