process_paddle_jsonl_result: Download and parse a PaddleOCR JSONL result

View source: R/result.R

process_paddle_jsonl_resultR Documentation

Download and parse a PaddleOCR JSONL result

Description

Fetches the JSONL result from the URL, parses each line, and saves layout-parsed Markdown documents and their associated images.

Usage

process_paddle_jsonl_result(jsonl_url, output_dir, starting_doc_index = 0L)

Arguments

jsonl_url

URL to the JSONL result file.

output_dir

Directory to save output files.

starting_doc_index

Integer offset for naming output files (default: 0).

Value

A list with elements markdown_files (file paths), markdown_texts (text content), and doc_count (number of documents saved).

Examples

## Not run: 
result <- process_paddle_jsonl_result(
  jsonl_url = "https://example.com/result.jsonl",
  output_dir = "output"
)

## End(Not run)

PaddleOCR documentation built on Aug. 30, 2026, 5:07 p.m.