Klasse AsyncTasksResource
java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>,AsyncResult<Void>,AsyncResult<Pageable<OperationResponse>>>
com.cloudconvert.resource.async.AsyncTasksResource
- Alle implementierten Schnittstellen:
Closeable,AutoCloseable
public class AsyncTasksResource
extends AbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>,AsyncResult<Void>,AsyncResult<Pageable<OperationResponse>>>
-
Feldübersicht
Von Klasse geerbte Felder com.cloudconvert.resource.AbstractTasksResource
PATH_SEGMENT_CANCEL, PATH_SEGMENT_OPERATIONS, PATH_SEGMENT_RETRY, PATH_SEGMENT_TASKS, PATH_SEGMENT_WAITVon Klasse geerbte Felder com.cloudconvert.resource.AbstractResource
BEARER, HEADER_AUTHORIZATION, HEADER_USER_AGENT, INPUT_STREAM_TYPE_REFERENCE, JOB_RESPONSE_PAGEABLE_TYPE_REFERENCE, JOB_RESPONSE_TYPE_REFERENCE, MAP_STRING_TO_OBJECT_TYPE_REFERENCE, OPERATION_RESPONSE_PAGEABLE_TYPE_REFERENCE, TASK_RESPONSE_PAGEABLE_TYPE_REFERENCE, TASK_RESPONSE_TYPE_REFERENCE, USER_RESPONSE_TYPE_REFERENCE, V2, VALUE_USER_AGENT, VOID_TYPE_REFERENCE, WEBHOOKS_RESPONSE_PAGEABLE_TYPE_REFERENCE, WEBHOOKS_RESPONSE_TYPE_REFERENCE -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAsyncTasksResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor, AsyncConvertFilesResource asyncConvertFilesResource, AsyncOptimizeFilesResource asyncOptimizeFilesResource, AsyncCaptureWebsitesResource asyncCaptureWebsitesResource, AsyncMergeFilesResource asyncMergeFilesResource, AsyncCreateArchivesResource asyncCreateArchivesResource, AsyncExecuteCommandsResource asyncExecuteCommandsResource, AsyncCreateThumbnailsResource asyncCreateThumbnailsResource, AsyncGetMetadataResource asyncGetMetadataResource, AsyncWriteMetadataResource asyncWriteMetadataResource, AsyncAddWatermarkResource asyncAddWatermarkResource) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungarchive(@NotNull CreateArchivesTaskRequest createArchivesTaskRequest) Create a task to create a ZIP, RAR, 7Z, TAR, TAR.GZ or TAR.BZ2 archive.Cancel a task that is in status waiting or processing.capture(@NotNull CaptureWebsitesTaskRequest captureWebsitesTaskRequest) Create a task to convert a website to PDF or to capture a screenshot of a website (png, jpg).voidclose()command(@NotNull ExecuteCommandsTaskRequest executeCommandsTaskRequest) Create a task to execute a command.convert(@NotNull ConvertFilesTaskRequest convertFilesTaskRequest) Create a task to convert one input file from input_format to output_format.List all supported formats, their engines and possible options.convertFormats(@NotNull Map<Filter, String> filters) List all supported formats, their engines and possible options.List all supported formats, their engines and possible options.convertFormats(@NotNull Map<Filter, String> filters, @NotNull List<Include> includes, @Nullable Boolean alternative) List all supported formats, their engines and possible options.Delete a task, including all data.list()List all tasks with their status, payload and result.List all tasks with their status, payload and result.List all tasks with their status, payload and result.list(@NotNull Map<Filter, String> filters, @NotNull List<Include> includes, @Nullable Pagination pagination) List all tasks with their status, payload and result.merge(@NotNull MergeFilesTaskRequest mergeFilesTaskRequest) Create a task to merge at least two files to one PDF.metadata(@NotNull GetMetadataTaskRequest getMetadataTaskRequest) Create a task to extract metadata from one file.List all possible operations, formats, engines and possible options.operations(@NotNull Map<Filter, String> filters) List all possible operations, formats, engines and possible options.List all possible operations, formats, engines and possible options.operations(@NotNull Map<Filter, String> filters, @NotNull List<Include> includes, @Nullable Boolean alternative) List all possible operations, formats, engines and possible options.optimize(@NotNull OptimizeFilesTaskRequest optimizeFilesTaskRequest) Create a task to optimize and compress a file.Create a new task, based on the payload of another task.Show a task.Show a task.thumbnail(@NotNull CreateThumbnailsTaskRequest createThumbnailsTaskRequest) Create a task to create a thumbnail of one file.Wait until the task status is finished or error.watermark(@NotNull AddWatermarkTaskRequest addWatermarkTaskRequest) Create a task to add a watermark to a file.writeMetadata(@NotNull WriteMetadataTaskRequest writeMetadataTaskRequest) Create a task to write file metadata.Von Klasse geerbte Methoden com.cloudconvert.resource.AbstractTasksResource
getCancelHttpUriRequest, getDeleteHttpUriRequest, getListHttpUriRequest, getOperationsHttpUriRequest, getRetryHttpUriRequest, getShowHttpUriRequest, getWaitHttpUriRequestVon Klasse geerbte Methoden com.cloudconvert.resource.AbstractResource
getHttpEntity, getHttpEntity, getHttpUriRequest, getHttpUriRequest, getJson, getSyncUri, getSyncUri, getUri, getUri, requestToMap
-
Konstruktordetails
-
AsyncTasksResource
public AsyncTasksResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor, AsyncConvertFilesResource asyncConvertFilesResource, AsyncOptimizeFilesResource asyncOptimizeFilesResource, AsyncCaptureWebsitesResource asyncCaptureWebsitesResource, AsyncMergeFilesResource asyncMergeFilesResource, AsyncCreateArchivesResource asyncCreateArchivesResource, AsyncExecuteCommandsResource asyncExecuteCommandsResource, AsyncCreateThumbnailsResource asyncCreateThumbnailsResource, AsyncGetMetadataResource asyncGetMetadataResource, AsyncWriteMetadataResource asyncWriteMetadataResource, AsyncAddWatermarkResource asyncAddWatermarkResource)
-
-
Methodendetails
-
show
public AsyncResult<TaskResponse> show(@NotNull @NotNull String taskId) throws IOException, URISyntaxException Beschreibung aus Klasse kopiert:AbstractTasksResourceShow a task. Requires the task.read scope.- Angegeben von:
showin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
taskId- task id- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
show
public AsyncResult<TaskResponse> show(@NotNull @NotNull String taskId, @NotNull @NotNull List<Include> includes) throws IOException, URISyntaxException Beschreibung aus Klasse kopiert:AbstractTasksResourceShow a task. Requires the task.read scope.- Angegeben von:
showin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
taskId- task idincludes- (optional) Include retries, depends_on_tasks, payload and/or job in the result. Multiple include values are separated by , (comma).- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
wait
public AsyncResult<TaskResponse> wait(@NotNull @NotNull String taskId) throws IOException, URISyntaxException Beschreibung aus Klasse kopiert:AbstractTasksResourceWait until the task status is finished or error. This makes the request block until the task has been completed. Requires the task.read scope.We do not recommend using this for long running jobs (e.g. video encodings). Your system might automatically time out requests if there is not data transferred for a longer time.
In general, please avoid to block your application until a CloudConvert job completes. There might be cases in which we need to queue your task which results in longer processing times than usual. Using an asynchronous approach with webhooks is beneficial in such cases.
- Angegeben von:
waitin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
taskId- task id- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
list
Beschreibung aus Klasse kopiert:AbstractTasksResourceList all tasks with their status, payload and result. Requires the task.read scope.- Angegeben von:
listin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
list
public AsyncResult<Pageable<TaskResponse>> list(@NotNull @NotNull Map<Filter, String> filters) throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all tasks with their status, payload and result. Requires the task.read scope.- Angegeben von:
listin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - job_id - The result will be filtered to include only tasks for a specific Job ID. - status - The result will be filtered to include only tasks with a specific status (waiting, processing, finished or error). - operation - Filter result to only include tasks of with a matching operation (for example convert or import/s3).- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
list
public AsyncResult<Pageable<TaskResponse>> list(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes) throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all tasks with their status, payload and result. Requires the task.read scope.- Angegeben von:
listin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - job_id - The result will be filtered to include only tasks for a specific Job ID. - status - The result will be filtered to include only tasks with a specific status (waiting, processing, finished or error). - operation - Filter result to only include tasks of with a matching operation (for example convert or import/s3).includes- (optional) Include retries and/or depends_on_tasks in the result.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
list
public AsyncResult<Pageable<TaskResponse>> list(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes, @Nullable @Nullable Pagination pagination) throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all tasks with their status, payload and result. Requires the task.read scope.- Angegeben von:
listin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - job_id - The result will be filtered to include only tasks for a specific Job ID. - status - The result will be filtered to include only tasks with a specific status (waiting, processing, finished or error). - operation - Filter result to only include tasks of with a matching operation (for example convert or import/s3).includes- (optional) Include retries and/or depends_on_tasks in the result.pagination- (optional) Pagination: - per_page - Number of tasks per page, defaults to 100. - page - The result page to show.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
cancel
public AsyncResult<TaskResponse> cancel(@NotNull @NotNull String taskId) throws IOException, URISyntaxException Beschreibung aus Klasse kopiert:AbstractTasksResourceCancel a task that is in status waiting or processing. Requires the task.write scope.- Angegeben von:
cancelin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
taskId- task id- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
retry
public AsyncResult<TaskResponse> retry(@NotNull @NotNull String taskId) throws IOException, URISyntaxException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a new task, based on the payload of another task. Requires the task.write scope.- Angegeben von:
retryin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
taskId- task id- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
delete
public AsyncResult<Void> delete(@NotNull @NotNull String taskId) throws IOException, URISyntaxException Beschreibung aus Klasse kopiert:AbstractTasksResourceDelete a task, including all data. Requires the task.write scope. Tasks are deleted automatically 24 hours after they have ended.- Angegeben von:
deletein KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
taskId- task id- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
operations
Beschreibung aus Klasse kopiert:AbstractTasksResourceList all possible operations, formats, engines and possible options.- Angegeben von:
operationsin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
operations
public AsyncResult<Pageable<OperationResponse>> operations(@NotNull @NotNull Map<Filter, String> filters) throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all possible operations, formats, engines and possible options.- Angegeben von:
operationsin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - operation - The result will be filtered to include only possible operations with a matching operation name (e.g. convert or optimize). - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
operations
public AsyncResult<Pageable<OperationResponse>> operations(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes) throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all possible operations, formats, engines and possible options.- Angegeben von:
operationsin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - operation - The result will be filtered to include only possible operations with a matching operation name (e.g. convert or optimize). - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.includes- (optional) Include options and/or engine_versions in the result.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
operations
public AsyncResult<Pageable<OperationResponse>> operations(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes, @Nullable @Nullable Boolean alternative) throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all possible operations, formats, engines and possible options.- Angegeben von:
operationsin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - operation - The result will be filtered to include only possible operations with a matching operation name (e.g. convert or optimize). - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.includes- (optional) Include options and/or engine_versions in the result.alternative- (optional) For some formats multiple alternative engines are available. If set to true, the result includes these alternative conversion types. Default to false.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxException
-
convert
public AsyncResult<TaskResponse> convert(@NotNull @NotNull ConvertFilesTaskRequest convertFilesTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to convert one input file from input_format to output_format. Requires the task.write scope.- Angegeben von:
convertin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
convertFilesTaskRequest-ConvertFilesTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
convertFormats
public AsyncResult<Pageable<OperationResponse>> convertFormats() throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
convertFormats
public AsyncResult<Pageable<OperationResponse>> convertFormats(@NotNull @NotNull Map<Filter, String> filters) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
convertFormats
public AsyncResult<Pageable<OperationResponse>> convertFormats(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.includes- (optional) Include options and/or engine_versions in the result.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
convertFormats
public AsyncResult<Pageable<OperationResponse>> convertFormats(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes, @Nullable @Nullable Boolean alternative) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.includes- (optional) Include options and/or engine_versions in the result.alternative- (optional) For some formats multiple alternative engines are available. If set to true, the result includes these alternative conversion types. Default to false.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
optimize
public AsyncResult<TaskResponse> optimize(@NotNull @NotNull OptimizeFilesTaskRequest optimizeFilesTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to optimize and compress a file. Currently supported formats are PDF, PNG and JPG.- Angegeben von:
optimizein KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
optimizeFilesTaskRequest-OptimizeFilesTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
capture
public AsyncResult<TaskResponse> capture(@NotNull @NotNull CaptureWebsitesTaskRequest captureWebsitesTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to convert a website to PDF or to capture a screenshot of a website (png, jpg).- Angegeben von:
capturein KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
captureWebsitesTaskRequest-CaptureWebsitesTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
merge
public AsyncResult<TaskResponse> merge(@NotNull @NotNull MergeFilesTaskRequest mergeFilesTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to merge at least two files to one PDF. If input files are not PDFs yet, they are automatically converted to PDF.- Angegeben von:
mergein KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
mergeFilesTaskRequest-MergeFilesTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
archive
public AsyncResult<TaskResponse> archive(@NotNull @NotNull CreateArchivesTaskRequest createArchivesTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to create a ZIP, RAR, 7Z, TAR, TAR.GZ or TAR.BZ2 archive.- Angegeben von:
archivein KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
createArchivesTaskRequest-CreateArchivesTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
command
public AsyncResult<TaskResponse> command(@NotNull @NotNull ExecuteCommandsTaskRequest executeCommandsTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to execute a command. Currently, ffmpeg, imagemagick and graphicsmagick commands re supported. You can access the files from the input task in the /input/{taskName}/ (For example: /input/import-1/) directory. All files that are created in the /output/ directory are available for following tasks (e.g. export tasks).- Angegeben von:
commandin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
executeCommandsTaskRequest-ExecuteCommandsTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
thumbnail
public AsyncResult<TaskResponse> thumbnail(@NotNull @NotNull CreateThumbnailsTaskRequest createThumbnailsTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to create a thumbnail of one file. Requires the task.write scope.- Angegeben von:
thumbnailin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
createThumbnailsTaskRequest-CreateThumbnailsTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
metadata
public AsyncResult<TaskResponse> metadata(@NotNull @NotNull GetMetadataTaskRequest getMetadataTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to extract metadata from one file. Requires the task.write scope.- Angegeben von:
metadatain KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
getMetadataTaskRequest-GetMetadataTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
writeMetadata
public AsyncResult<TaskResponse> writeMetadata(@NotNull @NotNull WriteMetadataTaskRequest writeMetadataTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to write file metadata.- Angegeben von:
writeMetadatain KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
writeMetadataTaskRequest-WriteMetadataTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
watermark
public AsyncResult<TaskResponse> watermark(@NotNull @NotNull AddWatermarkTaskRequest addWatermarkTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to add a watermark to a file. Requires the task.write scope.- Angegeben von:
watermarkin KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Parameter:
addWatermarkTaskRequest-AddWatermarkTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
close
- Angegeben von:
closein SchnittstelleAutoCloseable- Angegeben von:
closein SchnittstelleCloseable- Setzt außer Kraft:
closein KlasseAbstractTasksResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<TaskResponse>>, AsyncResult<Void>, AsyncResult<Pageable<OperationResponse>>> - Löst aus:
IOException
-