convert_file: To convert file to other format

Description Usage Arguments Examples

View source: R/RCloudConvert.R

Description

To convert file to other format

Usage

1
2
3
4
convert_file(api_key, input_format, output_format, input, file, dest_file,
  input_s3_accesskeyid = "", input_s3_secretaccesskey = "",
  input_s3_bucket = "", input_ftp_host = "", input_ftp_port = "",
  input_ftp_user = "", input_ftp_password = "")

Arguments

api_key

CloudConvert API key

input_format

The format of the input file

output_format

The format the file should be converted to

input

Set the method of uploading the input file

file

Input file destination (including the name of file with extension)

dest_file

Name where the downloaded file is saved (including the name of file with extension)

input_s3_accesskeyid

The Amazon S3 accessKeyId (Required when input is s3)

input_s3_secretaccesskey

The Amazon S3 secretAccessKey (Required when input is s3)

input_s3_bucket

The Amazon S3 bucket where to download the input file or upload the output file (Required when input is s3)

input_ftp_host

The FTP server host (Required when input is ftp)

input_ftp_port

The port the FTP server is bind to (Required when input is ftp)

input_ftp_user

FTP username (Required when input is ftp)

input_ftp_password

FTP password (Required when input is ftp)

Examples

1
2
3
4
## Not run: 
convert_file(api_key=api_key,input_format = "jpg",output_format = "pdf",input="upload",file="input file location",dest_file = "destination file location")

## End(Not run)

mukul13/RCloudConvert documentation built on Sept. 2, 2020, 1:10 a.m.