npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@arcasdk/pdf

v0.2.0

Published

Arca TypeScript SDK - PDF invoice generator for ARCA electronic billing

Downloads

380

Readme

@arcasdk/pdf

Generador de comprobantes electrónicos en formato PDF con diseño oficial de ARCA (ex AFIP).

npm

Características

  • Genera PDFs de Facturas, Notas de Crédito y Notas de Débito (letras A, B, C)
  • Diseño adaptado al formato oficial de ARCA
  • Código QR de verificación automático
  • Soporte para múltiples copias (Original, Duplicado, Triplicado, Cuadruplicado)
  • Soporte para servicios (período facturado, vencimiento de pago)
  • Soporte para tributos adicionales y comprobantes asociados
  • Monedas: Pesos Argentinos (ARS) y Dólares Estadounidenses (USD)
  • Templates personalizables
  • Independiente de @arcasdk/core — se puede usar de forma standalone

Instalación

npm i @arcasdk/pdf

Uso rápido

import { InvoicePdfGenerator, InvoiceData } from "@arcasdk/pdf";
import { writeFileSync } from "fs";

const data: InvoiceData = {
  emisor: {
    razonSocial: "Mi Empresa S.A.",
    domicilioComercial: "Av. Corrientes 1234, CABA",
    condicionIva: "IVA Responsable Inscripto",
    cuit: "20304050607",
    iibb: "12-3456789-0",
    fechaInicioActividades: "20180301",
  },
  receptor: {
    razonSocial: "Cliente S.R.L.",
    domicilio: "Calle Falsa 456, Rosario",
    condicionIva: "IVA Responsable Inscripto",
    documentoTipo: "CUIT",
    documentoNro: "30712345678",
  },
  cbteTipo: 1,
  cbteLetra: "A",
  puntoVenta: 3,
  cbteDesde: 152,
  cbteHasta: 152,
  cbteFecha: "20240515",
  concepto: 1,
  items: [
    {
      descripcion: "Servicio de consultoría",
      cantidad: 10,
      unidadMedida: "horas",
      precioUnitario: 5000,
      subtotal: 50000,
      alicuotaIva: 21,
    },
  ],
  importeNetoGravado: 50000,
  importeIva: 10500,
  iva: [{ id: 5, descripcion: "21%", baseImponible: 50000, importe: 10500 }],
  importeTotal: 60500,
  cae: "74512345678901",
  caeFechaVencimiento: "20240525",
};

const generator = new InvoicePdfGenerator();
const pdfBuffer = await generator.generate(data);
writeFileSync("factura.pdf", pdfBuffer);

Opciones

const generator = new InvoicePdfGenerator({
  pageSize: "A4", // "A4" | "LETTER" | "LEGAL"
  margin: 10, // Márgenes en puntos
  includeQr: true, // Código QR de verificación ARCA
  copy: "ORIGINAL", // Banner de copia
  footerText: "Pie custom", // Texto en el footer
});

Múltiples copias

const generator = new InvoicePdfGenerator({
  copies: ["ORIGINAL", "DUPLICADO", "TRIPLICADO"],
});
const pdf = await generator.generate(data);
// Un solo PDF con 3 copias completas

Stream

const stream = await generator.generateStream(data);
stream.pipe(res); // Express response

Documentación

Para la documentación completa (tipos de comprobante, estructura de datos, templates personalizados, integración con @arcasdk/core):

📖 Ver documentación completa

Licencia

MIT