Logrand.CFDI.PDF.Service 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Logrand.CFDI.PDF.Service --version 1.0.3
                    
NuGet\Install-Package Logrand.CFDI.PDF.Service -Version 1.0.3
                    
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="Logrand.CFDI.PDF.Service" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Logrand.CFDI.PDF.Service" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Logrand.CFDI.PDF.Service" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Logrand.CFDI.PDF.Service --version 1.0.3
                    
#r "nuget: Logrand.CFDI.PDF.Service, 1.0.3"
                    
#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.
#:package Logrand.CFDI.PDF.Service@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Logrand.CFDI.PDF.Service&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Logrand.CFDI.PDF.Service&version=1.0.3
                    
Install as a Cake Tool

Namespace

            using Logrand.CFDI.PDF;

Code

            Service.Factura factura = new Service.Factura();

            factura.FolioFiscal = "654a-65a4sd6-65a4sd56-6546";
            factura.CadenaOriginal = "lkashdlkadjl kashdñashdl aksdhalksjhd alkjsdhalksjdhalksjdhalksdhalksjd";
            factura.Total = "100";

            for (int i = 0; i < 10; i++)
            {
                var concepto = new Logrand.CFDI.PDF.Service.FacturaConcepto();

                concepto.Descripcion = "DEscripcion";
                concepto.CVE = "Hola";
                concepto.Cantidad = "1.00";
                concepto.Importe = "200";
                concepto.Descuento = "0";
                concepto.ValorUnitario = "300";

                factura.Conceptos.Add(concepto);
            }

            var pdf = Service.Factura.getPDF(factura);

            FileStream file = new FileStream(@"D:\nombre_pdf_tester.pdf", FileMode.Create);

            pdf.CopyTo(file);

            file.Flush();
            file.Close();

Propiedades Factura

        public string NombreEmisor { get; set; }
        public string RFCEmisor { get; set; }
        public string NombreReceptor { get; set; }
        public string RFCReceptor { get; set; }
        public string UsoCFDI { get; set; }
        public string FolioFiscal { get; set; }
        public string NoSerieCSD { get; set; }
        public string LugarFechaHora { get; set; }
        public string EfectoComprobante { get; set; }
        public string FolioSerie { get; set; }
        public string RegimenFiscal { get; set; }

        public List<FacturaConcepto> Conceptos { get; set; }

        public string Moneda { get; set; }
        public string FormaPago { get; set; }
        public string MetodoPago { get; set; }
        public string SubTotal { get; set; }
        public string Total { get; set; }
        public string TotalLetra { get; set; }
        public string SelloCFDI { get; set; }
        public string SelloSAT { get; set; }
        public string CadenaOriginal { get; set; }
        public string NoSerieCertificadoSAT { get; set; }
        public DateTime FechaCertificacion { get; set; }
        public string RFCProveedor { get; set; }

Metodos Factura

public static MemoryStream getPDF(Factura factura)

Propiedades FacturaConcepto

        public string CVE { get; set; }
        public string NoIdentificacion { get; set; }
        public string Cantidad { get; set; }
        public string ClaveUnidad { get; set; }
        public string Unidad { get; set; }
        public string Descripcion { get; set; }
        public string ValorUnitario { get; set; }
        public string Importe { get; set; }
        public string Descuento { get; set; }
Product Compatible and additional computed target framework versions.
.NET Framework 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. 
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.5.0 615 8/10/2022
1.4.0 563 6/21/2022
1.3.0 533 6/9/2022
1.2.0 522 6/9/2022
1.1.0 1,481 3/2/2018
1.0.10 1,410 1/12/2018
1.0.9 1,384 1/11/2018
1.0.8 1,422 1/9/2018
1.0.7 1,705 1/5/2018
1.0.6 1,377 12/20/2017
1.0.5 1,386 12/8/2017
1.0.4 1,662 12/6/2017
1.0.3 1,579 12/6/2017
1.0.2 1,767 12/6/2017
1.0.1 1,640 12/5/2017
1.0.0 1,421 12/4/2017

Summary of changes made in this release of the package.