C#

How to Convert AI to PDF Using C#

황기하 2022. 1. 20.

In order to convert AI to PDF,
we’ll use 
Aspose.PSD for .NET API which is a feature-rich, powerful and
easy to use document manipulation and conversion API for C# platform.

Open NuGet package manager, search for Aspose.PSD and install.

You may also use the following command from the Package Manager Console.

 

PM> Install-Package Aspose.PSD

 

Steps to Convert AI to PDF via C#

Aspose.PSD makes it easy for the developers to load & convert AI files to PDF in just a few lines of code.

  1. Load the AI with Image.Load method
  2. Create an instance of PdfOptions class
  3. Call Image.Save method
  4. Pass output filename and object of PdfOptions

 

using (var image = (AiImage)Image.Load("template.ai"))
{
    image.Save("output.pdf", new PdfOptions());
}

 

System Requirements

Aspose.PSD for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, and PHP, VBScript, Delphi, C++ via COM Interop.
  • Development environment like Microsoft Visual Studio.
  • Aspose.PSD for .NET DLL referenced in your project.

 

https://products.aspose.com/psd/net/conversion/ai-to-pdf/

'C#' 카테고리의 다른 글

Convert AI to JPG with C#  (0) 2022.01.20

댓글