semvec/pypi-packages huggingface dataset:
json2pdfConverter 0.1
A package to convert JSON to PDF.
Requires Python: >=3.7

To create the content for the README.md file of your Python package, you can include the following information:

# PDF Generator

A Python package for converting JSON data to HTML and generating PDFs.

## Description

This package provides functionality to convert JSON data to HTML using a customizable template and then generate PDF files from the HTML content. It allows users to provide their own JSON data and template file to customize the output.

## Features

- Convert JSON data to HTML - anyName.json
- Support for custom HTML templates - template.html
- Generate PDF files from HTML - output.html
- Merge multiple PDF files into a single PDF - merged_output.pdf

## Installation

You can install the package using pip:

```
pip install json2pdf_converter==0.1
```

Note: Replace "version-number" with the recent version number of the package, ex: 0.6 -> latest.

## Usage

```python
from pdf_generator.convert import generate

# Specify the paths and file names for JSON data, template, output HTML, and new PDF file
json_file = 'path/to/json/data.json' (complete path of json file)
template_directory = 'path/to/template/directory' (only template directory)
output_html_path = 'path/to/save/output/html' (only output html directory)
new_pdf_path = 'path/to/save/new/pdf' (only pdf saving directory)

# Generate HTML and PDF files
generate(json_file, template_directory, output_html_path, new_pdf_path)
```

Make sure to replace the placeholders with the actual paths and file names.

## Dependencies

This package relies on the following dependencies:

- pandas
- jinja2
- pdfkit
- PyPDF2

Please make sure to install these dependencies before using the package. You can install them using the following command:

```
pip install pandas jinja2 pdfkit PyPDF2
```

Note: The `pdfkit` library requires an external tool called Wkhtmltopdf. This package will automatically add the path for Wkhtmltopdf still error of Wkhtmltopdf installation, add path to your system's PATH before using this package.

## License

This package is licensed under the [MIT License](https://opensource.org/licenses/MIT).