From dac19513339d58d6dc6f1d0eef790fc369e7118f Mon Sep 17 00:00:00 2001 From: Gaetano Savo Date: Tue, 15 Apr 2025 15:20:57 +0200 Subject: [PATCH] PDFGenerator-dontSaveOnline --- arm_PDFGenerator-dontSaveOnline.md | 119 +++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 arm_PDFGenerator-dontSaveOnline.md diff --git a/arm_PDFGenerator-dontSaveOnline.md b/arm_PDFGenerator-dontSaveOnline.md new file mode 100644 index 0000000..f20b6e4 --- /dev/null +++ b/arm_PDFGenerator-dontSaveOnline.md @@ -0,0 +1,119 @@ +# PDFGenerator-dontSaveOnline Documentation + +## Overview + +PDFGenerator-dontSaveOnline is a variant of the main PDFGenerator component, specifically designed for offline document generation and testing purposes. It maintains all the core PDF generation capabilities while providing flexible storage options. + +## Key Features + +### Storage Management + +- No automatic online database storage +- Configurable via `SavePDFtoDISK` in App.config +- Storage options: + - Local filesystem + - Selective saving + - Custom storage paths + +### Configuration + +- `SavePDFtoDISK_Folder`: Defines local storage path +- Separate testing database (`C6StampeCentralizzate_Testing`) +- Flexible save behavior configuration +- Custom error handling settings + +### Core Functionality + +- Maintains all PDFGenerator rendering capabilities +- Chart generation and image handling +- Support for all report types +- Custom database error management + +## Use Cases + +1. **Development** + - Template testing + - Layout verification + - Feature development + - Debug sessions + +2. **Testing** + - Offline document generation + - Format validation + - Content verification + - Performance testing + +3. **Document Preview** + - Pre-production verification + - Layout checks + - Content review + - Format validation + +## Differences from Standard PDFGenerator + +### Storage +- Standard: Automatic online storage +- dontSaveOnline: Configurable local storage + +### Database +- Standard: Production database +- dontSaveOnline: Testing database + +### Error Handling +- Standard: Production logging +- dontSaveOnline: Development-focused logging + +### Configuration +- Standard: Fixed production settings +- dontSaveOnline: Flexible configuration + +## Configuration Settings + +### App.config Parameters + +```xml + + +``` + +### Database Connection + +```xml + +``` + +## Best Practices + +1. **Development** + - Use for all development work + - Test new templates offline + - Verify layouts before production + +2. **Testing** + - Run comprehensive tests + - Validate document generation + - Check error handling + +3. **Maintenance** + - Regular configuration review + - Path validation + - Error log monitoring + +## Integration + +### Development Workflow +1. Create/modify templates +2. Generate test documents +3. Verify output locally +4. Deploy to production + +### Testing Workflow +1. Configure test environment +2. Generate sample documents +3. Validate output +4. Document issues