iHawkSvg2PdfLibrary.net6
1.0.0
dotnet add package iHawkSvg2PdfLibrary.net6 --version 1.0.0
NuGet\Install-Package iHawkSvg2PdfLibrary.net6 -Version 1.0.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="iHawkSvg2PdfLibrary.net6" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add iHawkSvg2PdfLibrary.net6 --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: iHawkSvg2PdfLibrary.net6, 1.0.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 iHawkSvg2PdfLibrary.net6 as a Cake Addin
#addin nuget:?package=iHawkSvg2PdfLibrary.net6&version=1.0.0
// Install iHawkSvg2PdfLibrary.net6 as a Cake Tool
#tool nuget:?package=iHawkSvg2PdfLibrary.net6&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SVG2PDF
基于 Svg 和 PDFsharp 实现的将SVG文件转换成PDF文件的类库。
Demo:
单一SVG文件转换为单一PDF文件
var svg = <source svg file>; var pdf = <destination pdf file>; iHawkSvg2PdfLibrary.Svg2Pdf.Convert(svg, pdf);
多个SVG文件合并成一个PDF文件
var svgs = new List<string> { <source svg file 1>, <source svg file 2>, }; var pdf = <destination pdf file>; iHawkSvg2PdfLibrary.Svg2Pdf.Convert(svgs, pdf);
说明:
目前支持SvgGroup、SvgText、SvgPath、SvgRectangle、SvgLine、SvgCircle等元素的转换,主要是从本职工作需要入手的,后续会不断优化和完善。
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- PdfSharpCore (>= 1.3.38)
- Svg (>= 3.4.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 198 | 9/12/2022 |