Placeholders 接口描述

 

用于获取PowerPoint幻灯片中的占位符信息。

接口方法1: getSlidesPlaceholders()获取取PowerPoint中的占位符信息

HTTP 请求方法:GET

请求URL:https://api.e-iceblue.cn/v1/powerpoint/{name}/slides/{slideIndex}/placeholders

请求参数:

参数 是否必选 类型 可选值范围 说明
name string   原文档名称
sildeIndex integer   幻灯片索引
folder string   存放原文档的文件夹,没有则为null
storage string   文档存储空间,使用冰蓝云配置的2G空间存贮文档,可设置为null
password string   原文档密码,没有则为null

Java代码示例:

import spire.cloud.powerpoint.sdk.*;
import spire.cloud.powerpoint.sdk.api.PlaceholdersApi;
import spire.cloud.powerpoint.sdk.model.*;

public class getSlidesPlaceholders {
    static String appId = "your id";
    static String appKey = "your key";
    static String baseUrl = "https://api.e-iceblue.cn";
    static Configuration configuration = new Configuration(appId, appKey, baseUrl);
    static PlaceholdersApi placeholdersApi = new PlaceholdersApi(configuration);
    
    public static void main(String[] args) throws ApiException {
        String name = "template.pptx";
        Integer slideIndex = 0;
        String password = null;
        String folder = "input";
        String storage = null;
        Placeholders response = placeholdersApi.getSlidesPlaceholders(name, slideIndex, password, folder, storage);
    }
}

接口方法2: getSlidesPlaceholder()获取PowerPoint中的占位符信息

HTTP 请求方法:GET

请求URL:https://api.e-iceblue.cn/v1/powerpoint/{name}/slides/{slideIndex}/placeholders/{placeholderIndex}

请求参数:

参数 是否必选 类型 可选值范围 说明
name string   原文档名称
sildeIndex integer   幻灯片索引
placeholderIndex integer   占位符索引
folder string   存放原文档的文件夹,没有则为null
storage string   文档存储空间,使用冰蓝云配置的2G空间存贮文档,可设置为null
password string   原文档密码,没有则为null

Java代码示例:

import spire.cloud.powerpoint.sdk.*;
import spire.cloud.powerpoint.sdk.api.PlaceholdersApi;
import spire.cloud.powerpoint.sdk.model.*;

public class getSlidesPlaceholder {
    static String appId = "your id";
    static String appKey = "your key";
    static String baseUrl = "https://api.e-iceblue.cn";
    static Configuration configuration = new Configuration(appId, appKey, baseUrl);
    static PlaceholdersApi placeholdersApi = new PlaceholdersApi(configuration);

    public static void main(String[] args) throws ApiException {
    String name = "template.pptx";
    Integer slideIndex = 0;
    Integer placeholderIndex = 0;
    String password = null;
    String folder = "input";
    String storage = null;
    Placeholder response = placeholdersApi.getSlidesPlaceholder(name, slideIndex, placeholderIndex, password, folder, storage);
    }
}