Skip to content

madcoons/net-inkscape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portable Inkscape executable for linux and windows

Current shipped Inkscape version: 1.2.2

Example usage:

using System.Text;
using CliWrap;
using Inkscape;

using MemoryStream stdOut = new();
using MemoryStream stdError = new();

Command command = Cli
    .Wrap(InkscapePaths.InkscapeExecutablePath)
    .WithArguments(InkscapePaths.InkscapeExecutableRequiredArgs.Concat(new[] { "--version" }));
try
{
    await (command | (stdOut, stdError))
        .ExecuteAsync();
}
catch (Exception ex)
{
    string errorMessage = Encoding.UTF8.GetString(stdError.ToArray());
    throw new(errorMessage, ex);
}

string message = Encoding.UTF8.GetString(stdOut.ToArray());
Console.WriteLine(message);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •