Skip to content

Instantly share code, notes, and snippets.

@aspose-com-kb
Last active April 1, 2023 02:29

Revisions

  1. aspose-com-kb revised this gist Apr 1, 2023. No changes.
  2. aspose-com-kb created this gist Mar 30, 2023.
    25 changes: 25 additions & 0 deletions How to Convert EPS to PDF File in C#.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    using Aspose.Pdf;

    namespace AsposeProjects
    {
    class Program
    {
    static void Main(string[] args)
    {
    // Initialize license
    License lic = new License();
    lic.SetLicense("Aspose.Total.lic");

    // Initialize PsLoadOptions class object
    Aspose.Pdf.PsLoadOptions options = new Aspose.Pdf.PsLoadOptions();

    // Create Document class object
    Aspose.Pdf.Document document = new Aspose.Pdf.Document("input.eps", options);

    // Convert EPS to PDF
    document.Save("EPStoPDF.pdf");

    System.Console.WriteLine("Done");
    }
    }
    }