Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Fully managed .NET library for converting PDF files to SVG.

License

NotificationsYou must be signed in to change notification settings

dmester/pdftosvg.net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestsNuGetLicense 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 thePdfToSvg.NET NuGet package.

PM> Install-Package PdfToSvg.NET

Open a PDF document by callingPdfDocument.Open. CallSaveAsSvg() on each page to convert it to an SVG file.

using(vardoc=PdfDocument.Open("input.pdf")){varpageNo=1;foreach(varpageindoc.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 theCLI version of PdfToSvg.NET and use it from the command line.

pdftosvg.exe input.pdf output.svg

Command line reference


[8]ページ先頭

©2009-2025 Movatter.jp