PdfToSvg.NET 1.2.0

dotnet add package PdfToSvg.NET --version 1.2.0
NuGet\Install-Package PdfToSvg.NET -Version 1.2.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="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PdfToSvg.NET --version 1.2.0
#r "nuget: PdfToSvg.NET, 1.2.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=1.2.0

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

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 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-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 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)
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.
  • .NETStandard 2.1

    • 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.2.0 341 3/10/2024
1.1.0 210 2/28/2024
1.0.0 319 2/18/2024
0.16.0 3,659 11/5/2023
0.15.0 2,426 10/7/2023
0.14.2 570 9/21/2023
0.14.1 721 9/4/2023
0.14.0 1,623 7/24/2023
0.13.1 131 7/16/2023
0.13.0 248 7/6/2023
0.12.0 186 7/1/2023
0.11.0 1,465 6/6/2023
0.10.0 188 5/30/2023
0.9.0 3,543 5/14/2023
0.8.2 921 3/19/2023
0.8.1 870 3/4/2023
0.8.0 5,437 10/9/2022
0.7.0 1,351 9/19/2021
0.6.0 344 7/28/2021
0.5.0 333 7/17/2021
0.4.0 334 7/8/2021
0.3.0 326 7/2/2021
0.2.0 380 6/26/2021
0.1.0-alpha 281 6/13/2021