Papers
Retrieve a paper
Retrieve a paper and check its status.
Retrieve a paper by its ID to read its details, such as its name, page count and processing status.
Retrieve a paper by ID
const paper = await paperful.papers.get("00000000-0000-0000-0000-000000000000");
console.log(paper.fileName, paper.pages, paper.status); Check if a paper is ready
A paper's content is available once its status is ready. You can then read its graph or search it.
const paper = await paperful.papers.get("00000000-0000-0000-0000-000000000000");
if (paper.status === "ready") {
// read the graph, search it, etc.
} | Status | Description |
|---|---|
pending | The paper was accepted and is being processed. |
ready | Processing finished. The paper is ready to use. |
failed | Processing couldn't be completed. |
deleted | The paper was deleted. |