0.0.8
What's Changed
- 🔥 Added: Font and style option in config. by @h1dd3nsn1p3r in #26
- 📝 Updated: docs. by @h1dd3nsn1p3r in #30
/* --------------------------------------------------------------------------
Optional: Config
-------------------------------------------------------------------------- */
const config = {
string: {
invoice: "F A C T U A",
refNumber: "Referencia",
date: "Fecha",
dueDate: "Fecha de vencimiento",
status: "επί πληρωμή",
billTo: "Facturar a",
item: "Artículo",
quantity: "Cantidad",
price: "Precio",
tax: "Impuesto",
total: "Total",
subTotal: "Subtotal",
totalTax: "Total Impuesto",
},
style: {
font: "Noto", // "Helvetica", "Times", "Courier"
fontSize: 10,
lineHeight: 1.2,
color: "#000000",
},
font: {
Noto: {
normal: path.join(__dirname, "fonts/noto/regular.ttf"),
italics: path.join(__dirname, "fonts/noto/italic.ttf"),
bold: path.join(__dirname, "fonts/noto/bold.ttf"),
bolditalics: path.join(__dirname, "fonts/noto/bold-italic.ttf"),
},
},
};
Full Changelog: 0.0.7...0.0.8