PdfToSvg.NET 1.4.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package PdfToSvg.NET --version 1.4.1                
NuGet\Install-Package PdfToSvg.NET -Version 1.4.1                
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="1.4.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PdfToSvg.NET --version 1.4.1                
#r "nuget: PdfToSvg.NET, 1.4.1"                
#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=1.4.1

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

PdfToSvg.NET

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

Features

  • 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)
    {
        page.SaveAsSvg($"output-{pageNo++}.svg");
    }
}

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 is compatible.  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-browser 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 was computed. 
.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)
Included target framework(s) (in package)
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.
  • net5.0

    • No dependencies.

NuGet packages (1)

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

Package Downloads
Bygdrift.Tools.PdfToDrawio

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
clawsoftware/clawPDF
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
1.5.0 425 10/19/2024
1.4.2 1,134 8/24/2024
1.4.1 351 7/23/2024
1.4.0 1,896 6/29/2024
1.3.1 794 5/10/2024
1.3.0 279 4/20/2024
1.2.0 2,123 3/10/2024
1.1.0 547 2/28/2024
1.0.0 396 2/18/2024
0.16.0 8,321 11/5/2023
0.15.0 6,366 10/7/2023
0.14.2 1,060 9/21/2023
0.14.1 753 9/4/2023
0.14.0 1,724 7/24/2023
0.13.1 163 7/16/2023
0.13.0 279 7/6/2023
0.12.0 217 7/1/2023
0.11.0 2,074 6/6/2023
0.10.0 217 5/30/2023
0.9.0 4,008 5/14/2023
0.8.2 1,272 3/19/2023
0.8.1 883 3/4/2023
0.8.0 7,717 10/9/2022
0.7.0 1,465 9/19/2021
0.6.0 383 7/28/2021
0.5.0 362 7/17/2021
0.4.0 363 7/8/2021
0.3.0 346 7/2/2021
0.2.0 416 6/26/2021
0.1.0-alpha 314 6/13/2021