ToPowerPoint
Method-ToPowerPoint-Description::Convert PDF to PowerPoint.
Body parameter
Method-Common-Parameter::Parameter | Method-Common-Value::Value | Method-Common-Description::Description |
---|---|---|
request Method-Common-Required::Required |
|
ToPowerPointRequest
Method-ToPowerPoint-request-Description::
|
ToPowerPointRequest
Method-Common-Parameter::Parameter | Method-Common-Value::Value | Method-Common-Description::Description |
---|---|---|
PdfBase64File Method-Common-Required::Required |
|
string
Method-PdfBase64File-Property-Description::Base64 encoded PDF document to process.
|
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api-qa.conholdate.cloud/v5.0/pdf/conversion/to-powerpoint"
method := "POST"
payload := strings.NewReader(`{
"PdfBase64File": "Base64 encoded file...",
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
File file = new File("path/to/file/fileName.pdf");
byte[] encoded = Base64.encodeBase64(FileUtils.readFileToByteArray(file));
String base64EncodedFile = new String(encoded, StandardCharsets.US_ASCII);
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType,
"{" +
"\"PdfBase64File\": \"" + base64EncodedFile + "\"," +
"}");
Request request = new Request.Builder()
.url("https://api-qa.conholdate.cloud/v5.0/pdf/conversion/to-powerpoint")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api-qa.conholdate.cloud/v5.0/pdf/conversion/to-powerpoint',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"PdfBase64File": "Base64 encoded file...",
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
import json
url = "https://api-qa.conholdate.cloud/v5.0/pdf/conversion/to-powerpoint"
json_data = json.dumps({
"PdfBase64File": "Base64 encoded file...",
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=json_data)
print(response.text)
curl --location --request POST 'https://api-qa.conholdate.cloud/v5.0/pdf/conversion/to-powerpoint' \
--header 'Content-Type: application/json' \
--data-raw '{
"PdfBase64File": "Base64 encoded file...",
}'
require "uri"
require "json"
require "net/http"
url = URI("https://api-qa.conholdate.cloud/v5.0/pdf/conversion/to-powerpoint")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"PdfBase64File": "Base64 encoded file...",
})
response = https.request(request)
puts response.read_body
var client = new RestClient("https://api-qa.conholdate.cloud/v5.0/pdf/conversion/to-powerpoint");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = "{" +
"\"PdfBase64File\": \"" + base64EncodedFile + "\"," +
"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
Method-ToPowerPoint-Overview-UnderTitle
Method-ToPowerPoint-Overview-Title
Method-ToPowerPoint-Overview-Text
Method-ToPowerPoint-Feature1-Title
Method-ToPowerPoint-Feature1-TextMethod-ToPowerPoint-Feature2-Title
Method-ToPowerPoint-Feature2-TextMethod-ToPowerPoint-Feature3-Title
Method-ToPowerPoint-Feature3-Text
Method-ToPowerPoint-HowTo-Title
Method-ToPowerPoint-Step1-Title
Method-ToPowerPoint-Step1-Text
Method-ToPowerPoint-Step2-Title
Method-ToPowerPoint-Step2-Text
Method-ToPowerPoint-Step3-Title
Method-ToPowerPoint-Step3-Text
Method-ToPowerPoint-Question1
Method-ToPowerPoint-Answer1
Method-ToPowerPoint-Question2
Method-ToPowerPoint-Answer2
Method-ToPowerPoint-Question3
Method-ToPowerPoint-Answer3
Method-ToPowerPoint-Question4
Method-ToPowerPoint-Answer4
Method-ToPowerPoint-FAQ-UnderTitle
Method-ToPowerPoint-FAQ-Title
Method-ToPowerPoint-FAQ-Text