GEWIS / pdf-generator

Simple application that allows to generate PDF-files using LaTeX for GEWIS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF-generator-client

This repository serves as the client for the PDF-generator, which is contained in the server subdirectory. The client in this directory is automatically generated using NSwag.

Usage

To utilize the client, include the following dependency in your package.json.

{
  "dependencies": {
    "@pdf/pdf-generator-client": "github:GEWIS/pdf-generator-client"
  }
}

After adding the dependency, import it into your project and instantiate a client to begin generating invoices.

import { Client } from '@pdf/pdf-generator-client';

let client =  new Client(process.env.BASE_URL);
client.generateInvoice(...);

Ensure that the BASE_URL environment variable is set appropriately to point to your PDF-generator-server instance.

About

Simple application that allows to generate PDF-files using LaTeX for GEWIS.


Languages

Language:TypeScript 98.5%Language:JavaScript 0.8%Language:Dockerfile 0.5%Language:Shell 0.2%