Aspose.Imaging  for .NET

Aspose.Imaging for .NET

Convert SVG to PDF via C#

Transform SVG into PDF using native .NET APIs without needing any image editor or 3rd-party libraries.

How to Convert SVG to PDF Using C#

In order to convert SVG to PDF, we’ll use Aspose.Imaging 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.Imaging and install. You may also use the following command from the Package Manager Console.

Package Manager Console Command

PM> Install-Package Aspose.Imaging

Steps to Convert SVG to PDF via C#

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

  1. Load SVG file with Image.Load method
  2. Create & set the instance of PdfOptions
  3. Call the Image.Save method
  4. Pass file path with PDF extension & object of PdfOptions class

System Requirements

Aspose.Imaging 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, Windows Application, ASP.NET Web Application.
  • Development environment like Microsoft Visual Studio.
  • Aspose.Imaging for .NET DLL referenced in your project.

Convert svg to pdf - .NET


    Free App to Convert SVG to PDF

    Check our live demos for SVG to PDF conversion with following benefits.

      No need to download or setup anything.
      No need to write any code.
      Just upload your SVG file and hit the "Convert" button.
      You will instantly get the download link for resultant PDF file.

    A cross-platform Imaging Library capable of processing the most common image formats along with DjVu, DICOM, WebP & DNG. The API can create, load, manipulate, convert & compress images as well as can transform images, perform filtering, dithering, masking and de-skewing. All with various memory optimization strategies.

    SVG What is SVG File Format

    SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of image. The word Scalable refers to the fact that the SVG can be scaled to different sizes without losing any quality. Text based description of such files make them independent of resolution. It is one of the mostly used format for building website and print graphics in order to achieve scalability. The format can only be used for two-dimensional graphics though. SVG files can be viewed/opened in almost all modern browsers including Chrome, Internet Explorer, Firefox, and Safari.

    Read More

    pdf What is pdf File Format

    Portable Document Format (PDF) is a type of document created by Adobe back in 1990s. The purpose of this file format was to introduce a standard for representation of documents and other reference material in a format that is independent of application software, hardware as well as Operating System. PDF files can be opened in Adobe Acrobat Reader/Writer as well in most modern browsers like Chrome, Safari, Firefox via extensions/plug-ins. Most of the commercially available software suites also offer conversion of their documents to PDF file format without the requirement of any additional software component. Thus, PDF file format has full capability to contain information like text, images, hyperlinks, form-fields, rich media, digital signatures, attachments, metadata, Geospatial features and 3D objects in it that can become as part of source document.

    Read More

    Other Supported Conversions

    You can also convert SVG into many other file formats including few listed below.

    SVG TO BMP (Bitmap Image)
    SVG TO DICOM (Digital Imaging & Communications)
    SVG TO EMF (Enhanced Metafile Format)
    SVG TO GIF (Graphical Interchange Format)
    SVG TO JPEG (JPEG Image)
    SVG TO PNG (Portable Network Graphics)
    SVG TO PSD (Adobe Photoshop Native Format)
    SVG TO SVG (Scalable Vector Graphics)
    SVG TO TIFF (Tagged Image Format)
    SVG TO WMF (Microsoft Windows Metafile)