# NGauge DocumentDesigner Module

## Overview
Standalone Yii2 module for drag-and-drop document layout design and PDF generation using chrome-php (headless Chrome). Layouts can be saved as HTML or URL references and rendered to PDF.

### Features
- Web-based drag-and-drop designer
- Store layouts as HTML or URL
- PDF generation via chrome-php
- Standalone, bootstrapped into /NGauge backend

## Installation
1. Clone the module into your NGauge_modules directory:
   ```bash
   git clone https://dev.azure.com/PortalPeopleUK/NGauge_Modules/_git/ngauge-documentdesigner
   ```
2. Install dependencies via Composer:
   ```bash
   composer install
   ```
3. The module is auto-bootstrapped into /NGauge backend and does not require manual config addition.

## Usage
- Access the designer via `/documentdesigner` routes
- Create, edit, and preview layouts
- Export layouts to PDF using chrome-php

## License
MIT
