PDF to SVG converter
Open source tool and .NET library
Extracts text
Extracts images
Extracts fonts
PM> Install-Package PdfToSvg.NETusing (var doc = PdfDocument.Open("input.pdf"))
{
var pageNo = 1;
foreach (var page in doc.Pages)
{
page.SaveAsSvg($"output-{pageNo++}.svg");
}
}<PackageReference Include="PdfToSvg.NET" Version="1.8.0" /> using (var doc = PdfDocument.Open("input.pdf"))
{
var pageNo = 1;
foreach (var page in doc.Pages)
{
page.SaveAsSvg($"output-{pageNo++}.svg");
}
}Download tool (requires .NET 4.5)
> pdftosvg.exe input.pdf output.svg Converting PDF... [###############################] 100% OK Successfully converted 1 page to SVG in 0.3s. > _
Extracts text
Extracts images
Extracts fonts
Online demo
Max file size 2 MB and only the first five pages are converted. If you download the library and host it yourself there is no size or page limitation. Files are not stored on our servers, but please do not upload files containing sensitive, personal or illegal information.
Online demo
Converting to SVG...
uploaded file.pdf
Why PdfToSvg.NET?
Run anywhere
PdfToSvg.NET is built to run on multiple platforms. You can use it as a library on .NET 5.0, .NET Framework 4.0 and .NET Standard 1.6 or later, on Windows, Linux and macOS.
Produce tidy SVG output
Produces compact SVG markup ready to be embedded in your web application. Text is where possible extracted as selectable and searchable text, styled with WOFF fonts.
Dependency free
Just a single DLL with no dependencies will save you from conflicts between incompatible dependencies.
Open source
The permissive MIT license allows you to use PdfToSvg.NET for free, also in commercial solutions.