SrPattif.Danfe 1.0.0.6

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

// Install SrPattif.Danfe as a Cake Tool
#tool nuget:?package=SrPattif.Danfe&version=1.0.0.6                

📄 SrPattif.Danfe

Gere DANFEs em PDF com .NET de forma rápida e leve. Salve-os ou imprima-os... o céu é o limite! 🚀

Este projeto é uma refatoração do projeto DanfeSharp, descontinuado e arquivado em fevereiro de 2024.

✨ Funcionalidades

  • Desserialização do XML de Notas Fiscais para model
  • Geração de PDF de DANFE customizável

<i>e mais em breve!</i>

⬇️ Instalação via NuGet

Nuget count Nuget downloads

<b>Instale a versão mais atual da biblioteca no NuGet:</b>

<details open> <summary><b>Package Manager</b></summary>

> Install-Package SrPattif.Danfe

</details> <details> <summary><b>.NET CLI</b></summary>

> dotnet add package SrPattif.Danfe --version 1.0.0

</details> <details> <summary><b>PackageReference</b></summary>

<PackageReference Include="SrPattif.Danfe" Version="1.0.0" />

</details>

🖇️ Exemplos de uso

Obter model a partir de arquivo XML

O primeiro passo é instanciar a model da Nota Fiscal através de seu XML.

// Cria o model a partir do arquivo XML da NF-e.
var nf = DanfeViewModelCreator.CreateFromXmlFile("nfe.xml");

Gerar e salvar PDF da DANFE

Agora, você já pode gerar o PDF e salvá-lo onde desejar! 🚀

// Gera o PDF da DANFE e salva-o no local indicado.
using (var danfe = new Danfe(nf))
{
	danfe.Generate();
	danfe.Save("danfe.pdf");
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.7 78 1/7/2025
1.0.0.6 110 1/3/2025