DefaultTitle
  1. Common-Breadcrumbs-Home::Home
  2. Conversion
  3. ImagesToPdf

ImagesToPdf

Method-ImagesToPdf-Description::Convert list of images to single PDF document.

copy
Something went wrong, try again
copy
            
                    
        
Body parameter
Method-Common-Parameter::Parameter Method-Common-Value::Value Method-Common-Description::Description

imagesToPdfRequest

Method-Common-Required::Required

copy
ImagesToPdfRequest Method-ImagesToPdf-imagesToPdfRequest-Description::ImagesToPdfRequest instance.
ImagesToPdfRequest
Method-Common-Parameter::Parameter Method-Common-Value::Value Method-Common-Description::Description

ListImageBase64File

Method-Common-Required::Required

close-icon
string[] Method-ListImageBase64File-Property-Description::List of Base64 encoded images.

BottomMargin

Method-Common-Optional::Optional

double Method-BottomMargin-Property-Description::Bottom margin.

LeftMargin

Method-Common-Optional::Optional

double Method-LeftMargin-Property-Description::Left margin.

PageHeight

Method-Common-Optional::Optional

double Method-PageHeight-Property-Description::PDF page height. Image height If not specified.

PageWidth

Method-Common-Optional::Optional

double Method-PageWidth-Property-Description::PDF page width. Image width If not specified.

RightMargin

Method-Common-Optional::Optional

double Method-RightMargin-Property-Description::Right margin.

TopMargin

Method-Common-Optional::Optional

double Method-TopMargin-Property-Description::Top margin.
copy Copy to clipboard
        
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api-qa.conholdate.cloud/v5.0/pdf/conversion/images-to-pdf"
  method := "POST"

  payload := strings.NewReader(`{
      "LeftMargin": 12.3,
      "RightMargin": 12.3,
      "TopMargin": 12.3,
      "BottomMargin": 12.3,
      "PageWidth": 12.3,
      "PageHeight": 12.3,
      "ListImageBase64File": ["Base64 encoded file...", "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))
}
                   
         
            

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, 
    "{" +
      "\"LeftMargin\": 12.3," +
      "\"RightMargin\": 12.3," +
      "\"TopMargin\": 12.3," +
      "\"BottomMargin\": 12.3," +
      "\"PageWidth\": 12.3," +
      "\"PageHeight\": 12.3," +
      "\"ListImageBase64File\": [\"Base64 encoded file...\", \"Base64 encoded file...\"]," +
    "}");

Request request = new Request.Builder()
  .url("https://api-qa.conholdate.cloud/v5.0/pdf/conversion/images-to-pdf")
  .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/images-to-pdf',
    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 =>'{
      "LeftMargin": 12.3,
      "RightMargin": 12.3,
      "TopMargin": 12.3,
      "BottomMargin": 12.3,
      "PageWidth": 12.3,
      "PageHeight": 12.3,
      "ListImageBase64File": ["Base64 encoded file...", "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/images-to-pdf"

json_data = json.dumps({
      "LeftMargin": 12.3,
      "RightMargin": 12.3,
      "TopMargin": 12.3,
      "BottomMargin": 12.3,
      "PageWidth": 12.3,
      "PageHeight": 12.3,
      "ListImageBase64File": ["Base64 encoded file...", "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/images-to-pdf' \
--header 'Content-Type: application/json' \
--data-raw '{
      "LeftMargin": 12.3,
      "RightMargin": 12.3,
      "TopMargin": 12.3,
      "BottomMargin": 12.3,
      "PageWidth": 12.3,
      "PageHeight": 12.3,
      "ListImageBase64File": ["Base64 encoded file...", "Base64 encoded file..."],
}'
                   
        
            
require "uri"
require "json"
require "net/http"

url = URI("https://api-qa.conholdate.cloud/v5.0/pdf/conversion/images-to-pdf")

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({
      "LeftMargin": 12.3,
      "RightMargin": 12.3,
      "TopMargin": 12.3,
      "BottomMargin": 12.3,
      "PageWidth": 12.3,
      "PageHeight": 12.3,
      "ListImageBase64File": ["Base64 encoded file...", "Base64 encoded file..."],
})

response = https.request(request)
puts response.read_body

                   
        
            
var client = new RestClient("https://api-qa.conholdate.cloud/v5.0/pdf/conversion/images-to-pdf");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = "{" + 
      "\"LeftMargin\": 12.3," +
      "\"RightMargin\": 12.3," +
      "\"TopMargin\": 12.3," +
      "\"BottomMargin\": 12.3," +
      "\"PageWidth\": 12.3," +
      "\"PageHeight\": 12.3," +
      "\"ListImageBase64File\": [\"Base64 encoded file...\", \"Base64 encoded file...\"]," +
"}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
                       
            
Method-ImagesToPdf-Overview-UnderTitle

Method-ImagesToPdf-Overview-Title

Method-ImagesToPdf-Overview-Text


Method-ImagesToPdf-Feature1-Title

Method-ImagesToPdf-Feature1-Text

Method-ImagesToPdf-Feature2-Title

Method-ImagesToPdf-Feature2-Text

Method-ImagesToPdf-Feature3-Title

Method-ImagesToPdf-Feature3-Text
Method-ImagesToPdf-HowTo-Title
clock
Method-ImagesToPdf-Step1-Title
Method-ImagesToPdf-Step1-Text
arrow
clock
Method-ImagesToPdf-Step2-Title
Method-ImagesToPdf-Step2-Text
arrow
clock
Method-ImagesToPdf-Step3-Title
Method-ImagesToPdf-Step3-Text
clock
Method-ImagesToPdf-Question1
Method-ImagesToPdf-Answer1
clock
Method-ImagesToPdf-Question2
Method-ImagesToPdf-Answer2
clock
Method-ImagesToPdf-Question3
Method-ImagesToPdf-Answer3
clock
Method-ImagesToPdf-Question4
Method-ImagesToPdf-Answer4
Method-ImagesToPdf-FAQ-UnderTitle

Method-ImagesToPdf-FAQ-Title

Method-ImagesToPdf-FAQ-Text