Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

ardean/pdf-reminder-simple

Repository files navigation

pdf-reminder-simple

NPM Version NPM Downloads

A simple pdf reminder template

Usage

import moment from "moment";
import simpleReminder from "pdf-reminder-simple";

simpleReminder({
  invertHeader: true,
  organizationAddress: {
    name: "Orbin",
    street: "Strasse 333",
    postCode: "3474",
    city: "Stadt"
  },
  billingAddress: {
    name: "Mein Kontakt",
    attn: "Mr. Melk",
    street: "Strasse 2",
    postCode: "78556",
    city: "Andere Stadt"
  },
  date: moment(),
  customerName: "MyCompany GmbH",
  reminderName: "1. Mahnung",
  reminderText: "Sie haben die Rechnung nicht bezahlt!",
  invoiceNumber: 12,
  invoiceDate: moment(),
  invoiceTotal: 430,
  feeAmount: 10,
  total: 440,
  currency: "EUR",
  note: "Meine Notiz"
}).print("reminder.pdf");

License

MIT