# Medicus Pdf Generator

This package is a stand-alone lightweight nodejs library for generating medical reports in a PDF format.

## Installation

using this command.

```bash
npm install @medicus.ai/medicus-report-pdf-generator
```

## Usage

```python
const {generateMedicusPDF} = require('@medicus.ai/medicus-report-pdf-generator');

async function generatePDF(json) {
   try {
        const data = await generateMedicusPDF(json);
        return data;
    }
    catch (e) {
        throw new Meteor.Error(500, 'error', e);
    }
}
```