LaTeX Figure Renderer .NET Plugin

LaTeX Figure Renderer Plugin - Aspose.TeX for .NET

The Aspose.TeX’s LaTeX Figure Renderer Plugin for .NET is a professional-grade tool for converting LaTeX figure fragments into high-quality PNG and SVG formats. This versatile plugin offers precise rendering, ideal for scientific publications, technical documents, and educational resources.

Key Features

  • Accurate LaTeX Figure Rendering
    Render LaTeX figures into PNG and SVG formats with exceptional clarity, making it ideal for scientific illustrations and professional documentation.

  • Multiple Output Formats
    Export figures in both PNG for raster graphics and SVG for scalable vector graphics.

  • Flexible Customization Options
    Adjust background color, resolution, and margins to meet your project’s design standards.

  • .NET Core and Framework Compatibility
    Seamlessly integrate with both .NET Core and .NET Framework projects, ensuring broad compatibility across development environments.

  • Watermark-Free Output
    Unlock the full feature set with a metered license for unrestricted, watermark-free figure rendering.

How It Works

Step-by-Step Implementation

  1. Install the Plugin
    Add the Aspose.TeX library via NuGet or download the latest version from the releases.

  2. Set Up the Renderer
    Create an instance of the FigureRendererPlugin and configure the rendering options.

  3. Render the Figure
    Add the LaTeX source figure and call the Process() method to generate the image.

Example Usage for LaTeX Figure Rendering in C#

// Initialize the LaTeX Figure Renderer
var figureRenderer = new FigureRendererPlugin();
var options = new PngFigureRendererPluginOptions
{
    BackgroundColor = Color.White,
    Margin = 10,
    Resolution = 300
};
// Provide the LaTeX figure data
options.AddInputDataSource(new StringDataSource(@"\begin{figure} \includegraphics{example.jpg} \end{figure}"));

// Specify the output stream
using (Stream stream = File.Open("figure_output.png", FileMode.Create))
{
    options.AddOutputDataTarget(new StreamDataSource(stream));
    figureRenderer.Process(options);
}

Example Usage for SVG Output

// Initialize the LaTeX Figure Renderer for SVG
var figureRenderer = new FigureRendererPlugin();
var svgOptions = new SvgFigureRendererPluginOptions
{
    BackgroundColor = Color.Transparent,
    Margin = 5
};
// Provide the LaTeX figure data
svgOptions.AddInputDataSource(new StringDataSource(@"\begin{figure} \includegraphics{diagram.pdf} \end{figure}"));

// Specify the output stream for SVG
using (Stream stream = File.Open("figure_output.svg", FileMode.Create))
{
    svgOptions.AddOutputDataTarget(new StreamDataSource(stream));
    figureRenderer.Process(svgOptions);
}

Benefits of Using the LaTeX Figure Renderer Plugin

  • Professional-Grade Output: Render high-quality scientific figures with pixel-perfect accuracy.
  • Scalable Vector Support: Generate SVG files for print and web-friendly vector outputs.
  • Flexible Styling: Control image properties like resolution, color, and margins.
  • Cost-Effective: Available for just $99 with a full set of features.

Explore the Free Online Figure Renderer Tool

Try the Aspose.TeX Online Figure Renderer to explore the plugin’s capabilities without installation.

Start using the Aspose.TeX Figure Renderer Plugin for .NET today and transform your LaTeX figures into stunning visuals.

 English