A skill for parsing PDF files using Large Language Models.
| Parameter | Type | Required | Description |
|---|---|---|---|
pdf_path |
string | required | Path to the PDF file to process |
result_path |
string | required | Path to save the parsing result |
format |
string | required | Output format: "json" or "md" |
task_id_path |
string | required | Path to save task ID information (JSON format) |
--task-id |
string | optional | Existing task ID to resume processing |
python handler.py <pdf_path> <result_path> <format> <task_id_path>
python handler.py --task-id <task_id> <result_path> <format>
To use this skill with authentication, you need to register and obtain your API token:
secret.txt in the skill directory with the following format:username: <your username>
secret: <your token>
Token Generation Screenshot:
| Parameter | Type | Required | Description |
|---|---|---|---|
username |
string | required | Username for authentication |
secret |
string | required | Secret token for authentication |
pdf_path |
string | required | Path to the PDF file to process |
result_path |
string | required | Path to save the parsing result |
format |
string | required | Output format: "json" or "md" |
task_id_path |
string | required | Path to save task ID information (JSON format) |
--task-id |
string | optional | Existing task ID to resume processing |
python handler.py <username> <secret> <pdf_path> <result_path> <format> <task_id_path>
python handler.py --task-id <task_id> <username> <secret> <result_path> <format>
When using normal upload mode, a task ID file will be created at task_id_path with the following JSON structure:
{
"task_id": "AAFXKO",
"pdf_path": "test.pdf",
"submit_time": "2026-04-04 00:33:27"
}
This file can be used to:
Implemented by handler.py which:
The parsed result will be saved to the specified result_path in the requested format:
--task-id parameter can be used to resume processing if interrupted--task-id parameter to resume or verify the task status. The task may still be processing or have completed successfully.