Skip to content
Framework Docs

Get File Page Figure

JsonValue pipelines().images().getPageFigure(ImageGetPageFigureParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v1/files/{id}/page-figures/{page_index}/{figure_name}

Get a specific figure from a page of a file.

ParametersExpand Collapse
ImageGetPageFigureParams params
String id
long pageIndex
Optional<String> figureName
Optional<String> organizationId
Optional<String> projectId
ReturnsExpand Collapse
class ImageGetPageFigureResponse:

Get File Page Figure

package com.llamacloud_prod.api.example;

import com.llamacloud_prod.api.client.LlamaCloudClient;
import com.llamacloud_prod.api.client.okhttp.LlamaCloudOkHttpClient;
import com.llamacloud_prod.api.models.pipelines.images.ImageGetPageFigureParams;
import com.llamacloud_prod.api.models.pipelines.images.ImageGetPageFigureResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv();

        ImageGetPageFigureParams params = ImageGetPageFigureParams.builder()
            .id("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
            .pageIndex(0L)
            .figureName("figure_name")
            .build();
        ImageGetPageFigureResponse response = client.pipelines().images().getPageFigure(params);
    }
}
{}
Returns Examples
{}