Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nodecfdi/cfdi-to-pdf

nodecfdi368MIT3.0.0-1TypeScript support: included

Librería para crear un pdf basado en un XML CFDI o Retenciones

cfdi, retenciones, xml, pdf, sat

readme

@nodecfdi/cfdi-to-pdf

Source Code Npm Node Version Support Discord Latest Version Software License Build Status Reliability Maintainability Code Coverage Violations Total Downloads

Create a generic PDF file from a CFDI 3.3, CFDI 4.0, Retenciones 1.0 and Retenciones 2.0

:us: The documentation of this project is in spanish as this is the natural language for intended audience.

:mexico: La documentación del proyecto está en español porque ese es el lenguaje principal de los usuarios.

[!WARNING] This package is native ESM and no longer provides a CommonJS export. If your project uses CommonJS, you will have to convert to ESM. Please don't open issues for questions regarding CommonJS / ESM.

Acerca de @nodecfdi/cfdi-to-pdf

En algunos casos necesitas generar un archivo PDF desde un CFDI (Comprobante fiscal Digital por Internet), o constancia de retenciones. Esta librería te ayuda a crear un pdf genérico. Además puedes crear un boceto a tu gusto y acomodarlo a como lo requieras. Inspirada por la versión de php https://github.com/phpcfdi/cfditopdf

Documentación

La documentación está disponible en el sitio web NodeCfdi

Soporte

Puedes obtener soporte abriendo un ticket en Github.

Adicionalmente, esta librería pertenece a la comunidad OcelotlStudio, así que puedes usar los mismos canales de comunicación para obtener ayuda de algún miembro de la comunidad.

Compatibilidad

Esta librería se mantendrá compatible con al menos la versión con soporte activo de Node más reciente.

También utilizamos Versionado Semántico 2.0.0 por lo que puedes usar esta librería sin temor a romper tu aplicación.

Contribuciones

Las contribuciones con bienvenidas. Por favor lee CONTRIBUTING para más detalles y recuerda revisar el archivo CHANGELOG.

The @nodecfdi/cfdi-to-pdf library is copyright © NodeCfdi - OcelotlStudio and licensed for use under the MIT License (MIT). Please see LICENSE for more information.

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v3.0.0-3

Commits

  • fix: :bug: resolve correct dynamic import of catalogs json e4142ae
  • chore: :arrow_up: update dependencies 9259a3e

v3.0.0-2 - 2025-01-26

Commits

  • chore(release): :tada: 3.0.0-2 b118586
  • fix: :bug: resolve import of json files using assert type a08bb35
  • chore: :arrow_up: update dependencies 76d67da

v3.0.0-1 - 2024-12-26

Commits

  • refactor: :wastebasket: remove old config doc ffe08e1
  • chore(release): :tada: 3.0.0-1 acb2622
  • fix: :ambulance: resolve correct distributable files build 265b971

v3.0.0-0 - 2024-12-25

Commits

  • chore(release): :tada: 3.0.0-0 03ff732
  • refactor: :recycle: usage of catalogs from package sat-micro-catalogs 878464a
  • refactor: :recycle: remove imports path in package json and prefer usage relative d500cf1

v2.2.1 - 2024-09-10

Commits

  • chore(release): :tada: 2.2.1 9e9fb09
  • fix: :bug: title labels for no identificacion and clave prod serv in concepts table cfdi c13880d

v2.2.0 - 2024-09-10

Commits

  • chore(release): :tada: 2.2.0 78f2ace
  • chore: :construction: update linter, dev tools and generation of changelog 802f790
  • feat: :sparkles: add donataria 11 complement 199d439

v2.1.0 - 2024-08-27

Merged

  • feat: add plataformas tecnologicas complement #47

Commits

  • refactor: :wastebasket: clear old code and rename to latest complement version 40a43e3
  • chore(release): :tada: 2.1.0 c9d9903
  • refactor: :recycle: rename complement plataformas tecnologicas to use version 4917bc8

v2.1.0-3 - 2024-08-20

Commits

  • chore(release): :tada: 2.1.0-3 832492e
  • fix: :construction: handle default and not default for usage in browser 479eb2f

v2.1.0-2 - 2024-08-20

Commits

  • chore(release): :tada: 2.1.0-2 de59d30
  • fix: :construction: handle default and not default for usage in browser 18be834

v2.1.0-1 - 2024-08-20

Merged

  • fix: resolve problem with impuestos text on fontsize big #46
  • 'Predial' node and its attribute 'Name' added #44

Commits

  • chore(release): :tada: 2.1.0-1 0ff3374
  • revert: :construction: revert bundle size using vfs_fonts, and prefer usage of dynamic import c81a282
  • chore: :arrow_up: update dependencies and change eslint config to use new tseslint service 2926958

v2.1.0-0 - 2024-08-14

Commits

  • chore(release): :tada: 2.1.0-0 d12b5ad
  • fix: :bug: try resolve problem with bundler fonts and generate same output 286a0c6

v2.0.2-1 - 2024-08-14

Commits

  • chore(release): :tada: 2.0.2-1 1054ea6
  • fix: :bug: try resolve problem with bundler pdfmake c8b185b

v2.0.2-0 - 2024-08-14

Commits

  • chore(release): :tada: 2.0.2-0 9f769e9
  • fix: :bug: resolve problem with shared enums in parser bc07292
  • fix: :bug: resolve problem with shared enums in parser 346d58d

v2.0.1 - 2024-08-07

Commits

  • chore(release): :tada: 2.0.1 5e6697f
  • chore: :construction: remove old files not used cf711ca
  • fix: :bug: resolve not use override primary color style on stamp content a569890

v2.0.0 - 2024-08-05

Commits

  • chore(release): :tada: 2.0.0 9a7353d
  • feat: :sparkles: add better presentation for pago20 complement c0415e5
  • refactor: :recycle: handle usage of retenciones totales 405310d

v2.0.0-1 - 2024-08-01

Commits

  • chore(release): :tada: 2.0.0-1 5158f90
  • refactor: :sparkles: support to imp local 10 3fd2aca
  • refactor: :sparkles: better presentation of totales and others details in cfdi 7d34d88

v2.0.0-0 - 2024-07-30

Merged

  • cfdi margin layout #43
  • Cfdi concepts #42
  • refactor: :recycle: added generic contents #41
  • refactor: :recycle: added generic cfdi contents #39
  • docs: update readme #31

Commits

  • docs: :memo: add initial docs f36b0da
  • docs: generate docs 01d1d89
  • refactor: :wastebasket: remove old config and assets 3757456

v1.6.0 - 2024-01-09

Merged

  • chore: version bump 1.6.0 #30

Commits

  • chore: remove old config usage of microbundle and move to tsup and update lint config files 52c5df5
  • chore: apply lint fixes and refactoring code for standard xo config 916a6ed
  • docs: generate docs 040f33d

v1.5.0 - 2022-10-12

Merged

Commits

v1.4.0 - 2022-09-21

Merged

  • chore: version bump 1.4.0 #14

Commits

  • chore: update dependencies ad2cac2
  • docs: generate docs fe951e2
  • chore: update eslint rules and fixed lint problems 40c18a4

v1.3.1 - 2022-07-29

Merged

  • chore: version bump 1.3.1 #11

Commits

v1.3.0 - 2022-07-14

Merged

  • Version bump 1.3.0 #10

Fixed

  • chore: version bump 1.3.0 close #7 #7

Commits

  • docs: generate docs 8174873
  • chore(deps): update dependencies bd0b5bb
  • docs: update examples of use on readme a7bbaa5

v1.2.0 - 2022-07-05

Merged

  • Version bump 1.2.0 #5

Commits

  • build: update from rollup to microbundle and replace news config 0daeccf
  • feat: added support to dom agnostic and to pass pdf make instance not default 144c93e
  • refactor: remove old code config and workflow 114277a

v1.1.5 - 2022-06-15

Commits

  • fix: added format factory on retenciones and fixed unused convertion 0 e17be7d
  • docs: update docs for release version 1.1.4 a85a0de
  • feat: added support to generate qrUrl 748cc3b

v1.1.3 - 2022-06-13

Commits

  • feat: added support to retenciones 2.0 6220589
  • docs: update docs for release version 1.1.3 a9d6022
  • docs: update readme with target 9a18616

v1.1.2 - 2022-04-27

Commits

  • docs: update docs for release version 1.1.2 6369905
  • fix: undefined column table on complement pagos20 and best format template 305a219

v1.1.1 - 2022-04-26

Merged

  • Fix breaking pdf in sello Digital, sello SAT and Cadena Original #1

Commits

  • refactor: remove files off converter and builder with default data 3191624
  • feat: added support to cfdi33 and cfdi40, include informacion global and complements bba7cfa
  • feat: added support to complement pago10 and pago20 821d450

v1.0.0 - 2022-03-12

Commits

  • docs: generate docs for release version 1.0.0 ad2367c
  • chore: initial commit cd78a0b
  • feat: added support to retenciones pdf cba2401