Nutrient

SDK

Cloud

Low-Code

Workflow

JPG to PPTX C# API

Convert JPG images to PDF files with our C# JPG to PPTX API.

Extract text and structure

Leverage OCR and layout analysis to convert image-based text into clean, editable Office files with preserved formatting.

Automate with Zapier

Automatically convert image files in Google Drive to Office files using our Zapier integration. A no-code solution to turn images into editable documents.

From photo to editable document

Easily convert receipts, printed documents, and handwritten notes into digital Word files.

Nutrient is used by

Try it out

This example will convert your uploaded JPG file to a PPTX.

1

Use Your Free API Calls

Sign up and receive 100 credits for free, or log in to automatically add your API key to sample code. If you are not sure how credits are consumed read more in our pricing documentation , or check out this guide on calculating credit usage.

2

Add a File

Add a JPG file named input.jpg to your project folder. You can also use our sample file. The file name is case sensitive. Make sure the file name matches the file name in the sample code.

3

Run the Code

Copy the code and run it from the same folder you added the files to. For more information, see our language-specific getting started guides.

4

View the Results

Open result.pptx in your project folder to view the results.

using System;
using System.IO;
using System.Net;
using RestSharp;

namespace PspdfkitApiDemo
{
  class Program
  {
    static void Main(string[] args)
    {
      var client = new RestClient("https://api.nutrient.io/build");

      var request = new RestRequest(Method.POST)
        .AddHeader("Authorization", "Bearer your_api_key_here")
        .AddFile("file", "input.jpg")
        .AddParameter("instructions", new JsonObject
        {
          ["parts"] = new JsonArray
          {
            new JsonObject
            {
              ["file"] = "file"
            }
          },
          ["output"] = new JsonObject
          {
            ["type"] = pptx
          }
        }.ToString());

      request.AdvancedResponseWriter = (responseStream, response) =>
      {
        if (response.StatusCode == HttpStatusCode.OK)
        {
          using (responseStream)
          {
            using var outputFileWriter = File.OpenWrite("result.pptx");
            responseStream.CopyTo(outputFileWriter);
          }
        }
        else
        {
          var responseStreamReader = new StreamReader(responseStream);
          Console.Write(responseStreamReader.ReadToEnd());
        }
      };

      client.Execute(request);
    }
  }
}
Using Postman? Download our official collection and start using the API with a single click. Read more 

Your API key

Security is our top priority

No document storage

No input or resulting documents are stored on our infrastructure. All files are deleted as soon as a request finishes. Alternatively, check out our self-hosted product.

HTTPS encryption

All communication between your application and Nutrient is done via HTTPS to ensure your data is encrypted when it’s sent to us.

Safe payment processing

All payments are handled by Paddle. Nutrient DWS Processor API never has direct access to any of your payment data.

Ready to try it?

Create an account to get your API key and start making API calls.