| poll_paddle_job | R Documentation |
Repeatedly queries the job status endpoint until the job reaches
"done" or "failed" state, or the maximum wait time is
exceeded.
poll_paddle_job(
job_id,
token = "",
job_url = "",
poll_interval = 5,
max_wait_seconds = 3600
)
job_id |
The job ID returned by |
token |
PaddleOCR API bearer token. If empty, reads from the
|
job_url |
PaddleOCR API endpoint. Defaults to the official cloud URL. |
poll_interval |
Seconds between status checks (default: 5). |
max_wait_seconds |
Maximum total wait time in seconds (default: 3600). |
A character string containing the JSONL result URL.
## Not run:
job_id <- submit_paddle_job("document.png", token = "your_token")
jsonl_url <- poll_paddle_job(job_id, token = "your_token")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.