PdfToSvg.NET 0.16.0

.NET Standard 1.6 .NET Framework 4.0
dotnet add package PdfToSvg.NET --version 0.16.0
NuGet\Install-Package PdfToSvg.NET -Version 0.16.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PdfToSvg.NET" Version="0.16.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PdfToSvg.NET --version 0.16.0
#r "nuget: PdfToSvg.NET, 0.16.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PdfToSvg.NET as a Cake Addin
#addin nuget:?package=PdfToSvg.NET&version=0.16.0

// Install PdfToSvg.NET as a Cake Tool
#tool nuget:?package=PdfToSvg.NET&version=0.16.0


Tests NuGet License MIT

Fully managed library for converting PDF files to SVG. Potential usage is seamlessly embedding PDFs on your site without the need of a PDF reader.

🚀 Test it online    🏠 Homepage    📖 API documentation    📜 Release notes


  • Extracts text, fonts and images from PDF files into SVG
  • Supports .NET 5, .NET Core 1.0, .NET Standard 1.6, .NET Framework 4.0 and later
  • Focus on producing compact SVG markup ready for the web
  • Dependency free

Quick start

Install the PdfToSvg.NET NuGet package.

PM> Install-Package PdfToSvg.NET

Open a PDF document by calling PdfDocument.Open. Call SaveAsSvg() on each page to convert it to an SVG file.

using (var doc = PdfDocument.Open("input.pdf"))
    var pageNo = 1;

    foreach (var page in doc.Pages)

Note that if you parse the XML returned from PdfToSvg.NET, you need to preserve space and not add indentation. Otherwise text will not be rendered correctly in the modified markup.

Command line usage

You can also download the CLI version of PdfToSvg.NET and use it from the command line.

pdftosvg.exe input.pdf output.svg

Command line reference

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.6 is compatible.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.6

  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on PdfToSvg.NET:

Package Downloads

Convert a pdf or svg to diagrams.net format: drawio or xml.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on PdfToSvg.NET:

Repository Stars
Open Source Virtual (Network) Printer for Windows that allows you to create PDFs, OCR text, and print images, with advanced features usually available only in enterprise solutions.
Version Downloads Last updated
0.16.0 568 11/5/2023
0.15.0 778 10/7/2023
0.14.2 324 9/21/2023
0.14.1 484 9/4/2023
0.14.0 1,562 7/24/2023
0.13.1 116 7/16/2023
0.13.0 219 7/6/2023
0.12.0 156 7/1/2023
0.11.0 991 6/6/2023
0.10.0 159 5/30/2023
0.9.0 2,371 5/14/2023
0.8.2 708 3/19/2023
0.8.1 840 3/4/2023
0.8.0 3,244 10/9/2022
0.7.0 1,056 9/19/2021
0.6.0 322 7/28/2021
0.5.0 311 7/17/2021
0.4.0 328 7/8/2021
0.3.0 320 7/2/2021
0.2.0 354 6/26/2021
0.1.0-alpha 264 6/13/2021