mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 18:10:18 +05:30
Fixed export of ASCII art, charts, tables, and flowcharts to match preview exactly: 🎨 ASCII Art Preservation: - Code blocks now export exactly as shown in preview - Each line rendered separately to preserve exact spacing and alignment - Monospace font (Consolas) used consistently across all export formats - Line breaks, spacing, and box-drawing characters preserved perfectly 📝 Word Template Exporter Improvements: - createCodeBlockXml: Renders each line as separate paragraph with exact spacing - Added <w:keepLines/> and <w:wordWrap w:val="0"/> for no-wrap behavior - Enhanced isAsciiArt detection with more Unicode box-drawing characters - Added support for rounded corners (╭╮╯╰), heavy box chars, more arrows 📄 PDF Export Enhancements: - Added -V monofont="Consolas" for proper code block rendering - Added --highlight-style=tango for syntax highlighting - Applied to main export, fallback engines, and CLI conversion 🖨️ HTML/Electron PDF Improvements: - Enhanced CSS: white-space: pre, word-wrap: normal - font-family: Consolas, Monaco, 'Courier New', monospace - Print media queries preserve code block formatting - overflow: visible prevents content truncation 🔧 Technical Changes: - src/wordTemplateExporter.js: Enhanced code block and ASCII art rendering - src/main.js: Added monofont settings to all PDF export paths - Updated version to 1.9.1 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
13 KiB
JSON
29 lines
13 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(copy \"I:\\Template_exporter\\word_template.docx\" \"H:\\Development\\pan-converter\\word-template-exporter\")",
|
|
"Bash(npm run build:win:*)",
|
|
"Bash(dir:*)",
|
|
"Bash(npm run build:win-unsigned:*)",
|
|
"Bash(git add:*)",
|
|
"Bash(git tag:*)",
|
|
"Bash(git push:*)",
|
|
"Bash(npm start)",
|
|
"Bash(timeout /t 10)",
|
|
"Bash(git commit -m \"$(cat <<''EOF''\nRelease v1.8.1: Streamlined PDF Editor UI\n\nEnhanced PDF Editor user experience with cleaner, more intuitive interface:\n\n✨ UI Improvements:\n- Streamlined PDF Editor dialog to show only selected function\n- Removed cluttered \"all functions at once\" display\n- Added smooth fade-in animation when showing function-specific sections\n- Improved dialog sizing: max-width 600px, max-height 85vh\n- Better visual separation with compact section spacing\n\n🎨 Styling Enhancements:\n- Added PDF editor-specific CSS classes for better organization\n- Enhanced file list styling with better contrast\n- Improved remove button styling with danger color\n- Complete dark theme support for all PDF editor components\n- Better scrolling behavior for long forms\n\n🔧 Technical Improvements:\n- Maintained existing show/hide logic (already working correctly)\n- Enhanced CSS specificity with .pdf-editor-content and .pdf-editor-body classes\n- Added @keyframes fadeIn animation for smooth transitions\n- Improved overflow handling for better UX on smaller screens\n\n🌙 Theme Support:\n- Full dark mode styling for file lists and entries\n- Proper color contrast for all interactive elements\n- Consistent styling across all 22 themes\n\nThe PDF Editor now provides a clean, focused interface showing only the relevant\ncontrols for each operation (merge, split, compress, rotate, delete, reorder,\nwatermark, encrypt, decrypt, permissions).\n\n🤖 Generated with Claude Code\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\")",
|
|
"Bash(gh release create v1.8.1 --title \"v1.8.1: Streamlined PDF Editor UI\" --notes \"$(cat <<''EOF''\n# Release v1.8.1: Streamlined PDF Editor UI\n\n## 🎯 Overview\nThis release significantly improves the PDF Editor user experience by streamlining the interface to show only the selected function at a time, eliminating the previous cluttered display of all functions simultaneously.\n\n## ✨ UI Improvements\n\n### Streamlined PDF Editor Dialog\n- **Clean, Focused Interface**: Shows only the selected PDF operation (merge, split, compress, etc.)\n- **No More Clutter**: Removed the confusing \"all functions crammed into single form\" layout\n- **Smooth Animations**: Added fade-in animation when switching between functions\n- **Optimized Sizing**: Dialog now has max-width of 600px and max-height of 85vh for better fit\n- **Better Visual Hierarchy**: Improved spacing and organization of form elements\n\n### Enhanced Styling\n- **File List Display**: Better styling for merge operation file lists with improved contrast\n- **Interactive Elements**: Enhanced buttons with proper hover states and colors\n- **Dark Mode Support**: Complete dark theme support for all PDF editor components\n- **Responsive Design**: Better scrolling and overflow handling for smaller screens\n\n## 🔧 Technical Details\n\n### Architecture\n- Maintained existing show/hide logic (already working correctly in previous versions)\n- Added `.pdf-editor-content` and `.pdf-editor-body` CSS classes for better specificity\n- Implemented smooth `@keyframes fadeIn` animation for section transitions\n- Improved overflow and scrolling behavior\n\n### Theme Compatibility\n- Full support for all 22 existing themes\n- Proper color contrast in both light and dark modes\n- Consistent styling across all theme variations\n\n## 📦 Available Downloads\n\nChoose the package that suits your needs:\n\n1. **PanConverter-Setup-1.8.1.exe** (Recommended)\n - Full installer with uninstaller\n - File associations and Start Menu shortcuts\n - ~104 MB\n\n2. **PanConverter-1.8.1-x64.exe**\n - Portable executable, no installation required\n - Run directly from any folder\n - ~104 MB\n\n3. **PanConverter-1.8.1-x64.zip**\n - ZIP archive with unpacked application\n - For manual extraction and deployment\n - ~145 MB (uncompressed files)\n\n## 🚀 What''s Changed\n\n### User Experience\n- PDF Editor dialog now shows only relevant controls for selected operation\n- Eliminated confusion from seeing all 10+ operations at once\n- Clearer workflow: Select menu item → See only that function → Complete task\n- Improved form readability and reduced cognitive load\n\n### Operations Supported\nAll 10 PDF operations now have streamlined, focused interfaces:\n- ✅ Merge PDFs\n- ✅ Split PDF\n- ✅ Compress PDF\n- ✅ Rotate Pages\n- ✅ Delete Pages\n- ✅ Reorder Pages\n- ✅ Add Watermark\n- ✅ Password Protection (Encrypt)\n- ✅ Remove Password (Decrypt)\n- ✅ Set Permissions\n\n## 📝 Installation Instructions\n\n### Using the Installer (Recommended)\n1. Download `PanConverter-Setup-1.8.1.exe`\n2. Run the installer\n3. Follow the installation wizard\n4. Launch from Start Menu or Desktop shortcut\n\n### Using Portable Version\n1. Download `PanConverter-1.8.1-x64.exe`\n2. Save to any folder (e.g., Documents, Desktop)\n3. Double-click to run (no installation needed)\n4. Create your own shortcut if desired\n\n## 🔄 Upgrade Notes\n\nIf upgrading from v1.8.0 or earlier:\n- All your settings and preferences will be preserved\n- Recent files list will remain intact\n- Word template selections will be maintained\n- No breaking changes to existing workflows\n\n## 🐛 Bug Fixes\nNone in this release (focused on UI/UX improvements)\n\n## 📚 Documentation\nFor complete feature documentation, see the [project README](https://github.com/amitwh/pan-converter/blob/master/README.md).\n\n## 💬 Feedback\nHave suggestions or found a bug? Please [open an issue](https://github.com/amitwh/pan-converter/issues).\n\n---\n\n**Full Changelog**: https://github.com/amitwh/pan-converter/compare/v1.8.0...v1.8.1\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\" \"dist/PanConverter-1.8.1-x64.exe\" \"dist/PanConverter-1.8.1-x64.zip\" \"dist/PanConverter-Setup-1.8.1.exe\")",
|
|
"Bash(git checkout:*)",
|
|
"Bash(git commit:*)",
|
|
"Bash(gh release create v1.9.0 --title \"v1.9.0: Custom Headers & Footers for All Exports\" --notes \"$(cat <<''EOF''\n# Release v1.9.0: Custom Headers & Footers for All Exports\n\n## 🎯 Overview\nThis release introduces comprehensive header and footer customization for all standard export formats (PDF, DOCX, ODT, PPTX), allowing users to add professional branding, page numbers, and dynamic content to their exported documents.\n\n## ✨ New Features\n\n### 📋 Custom Headers & Footers System\n- **Three-Column Layout**: Position content left, center, or right in headers and footers\n- **Custom Text Fields**: Add any text to header/footer positions\n- **Logo/Image Support**: Upload and embed logos in headers or footers\n- **Dynamic Fields**: Automatically insert document information:\n - `$PAGE$` - Current page number\n - `$TOTAL$` - Total page count\n - `$DATE$` - Current date\n - `$TIME$` - Current time\n - `$TITLE$` - Document title\n - `$AUTHOR$` - Document author\n - `$FILENAME$` - File name\n- **Enable/Disable Toggle**: Quick on/off for headers and footers\n- **Persistent Settings**: Preferences saved across sessions\n- **Field Picker Dialog**: Easy insertion of dynamic fields with button clicks\n\n### 📁 Format Support\n- ✅ **PDF**: Headers/footers with LaTeX fancyhdr package\n- ✅ **DOCX (Standard)**: Word document XML manipulation\n- ✅ **ODT**: LibreOffice format support\n- ✅ **PPTX**: PowerPoint slide footers\n- ✅ **Batch Conversion**: Full header/footer support in batch mode\n\n**Note**: Enhanced exports (DOCX Enhanced, PDF Enhanced) use Word templates which already have their own headers/footers defined in the template itself.\n\n### 🔧 Technical Enhancements\n- **Logo Storage**: Images stored in userData directory for persistence\n- **LaTeX Integration**: Professional PDF headers using fancyhdr package\n- **Word XML Generation**: Direct manipulation of DOCX header/footer sections\n- **Page Numbering**: Automatic page number fields for all formats\n- **Error Handling**: Comprehensive validation and user feedback\n\n## 🐛 Bug Fixes\n\n### Logo Upload Error Fix\n- **Issue**: Logo upload failed with \"path undefined\" error\n- **Fix**: Added validation and fallback for file path handling\n- **Technical**: Use webUtils.getPathForFile when file.path is unavailable\n- **Result**: Logo uploads now work reliably in all contexts\n\n### Header/Footer Visibility Fix\n- **Issue**: Headers/footers not appearing in exported documents\n- **Fix**: Added header/footer logic to all PDF export paths\n- **Technical**: Extended tryPdfFallback function with fancyhdr LaTeX generation\n- **Result**: Headers/footers now appear correctly in all export modes\n\n## 🎨 User Interface\n\n### Header & Footer Dialog\n- **Access**: File → Header & Footer Settings...\n- **Three-column grid** for precise positioning\n- **Logo upload buttons** with file browser\n- **Dynamic field buttons** for easy insertion\n- **Enable/disable checkboxes** for quick toggling\n- **Dark theme support** for all dialog elements\n\n### Field Picker Dialog\n- **Quick access** to all dynamic fields\n- **One-click insertion** into text boxes\n- **Field descriptions** explaining each variable\n- **Keyboard friendly** with Tab navigation\n\n## 📦 Available Downloads\n\nChoose the package that suits your needs:\n\n1. **PanConverter-Setup-1.9.0.exe** (Recommended)\n - Full installer with uninstaller\n - File associations and Start Menu shortcuts\n - ~104 MB\n\n2. **PanConverter-1.9.0-x64.exe**\n - Portable executable, no installation required\n - Run directly from any folder\n - ~104 MB\n\n3. **PanConverter-1.9.0-x64.zip**\n - ZIP archive with unpacked application\n - For manual extraction and deployment\n - ~145 MB (uncompressed files)\n\n## 🚀 What''s Changed\n\n### Header & Footer Configuration\n1. Open File → Header & Footer Settings...\n2. Configure left, center, right positions for header and footer\n3. Upload logos (optional)\n4. Insert dynamic fields using the \"🔽\" button\n5. Save settings (persisted across app restarts)\n6. Export as usual - headers/footers applied automatically\n\n### Example Use Cases\n- **Corporate Documents**: Add company logo in header, page numbers in footer\n- **Reports**: Document title in header left, date in header right, page X of Y in footer center\n- **Professional Papers**: Author name in header, filename in footer, page numbers center\n\n## 🔄 Upgrade Notes\n\nIf upgrading from v1.8.3 or earlier:\n- All your settings and preferences will be preserved\n- Recent files list will remain intact\n- Word template selections will be maintained\n- No breaking changes to existing workflows\n- Header/footer settings start disabled by default\n\n## 📝 Installation Instructions\n\n### Using the Installer (Recommended)\n1. Download `PanConverter-Setup-1.9.0.exe`\n2. Run the installer\n3. Follow the installation wizard\n4. Launch from Start Menu or Desktop shortcut\n\n### Using Portable Version\n1. Download `PanConverter-1.9.0-x64.exe`\n2. Save to any folder (e.g., Documents, Desktop)\n3. Double-click to run (no installation needed)\n4. Create your own shortcut if desired\n\n## 🔍 Technical Details\n\n### Implementation\n- **src/main.js**: Header/footer state management, IPC handlers, LaTeX generation\n- **src/renderer.js**: Dialog management, logo handling, field insertion\n- **src/index.html**: Header/footer dialog UI, field picker dialog\n- **src/styles.css**: Dialog styling with dark theme support\n\n### Dependencies\n- **pdf-lib** (v1.17.1): PDF manipulation\n- **pizzip** (v3.2.0): Word document XML handling\n- **electron-store** (v10.1.0): Persistent settings storage\n- **Pandoc**: System requirement for document conversions\n\n### LaTeX Packages Used\n- **fancyhdr**: Header/footer formatting\n- **lastpage**: Total page count support\n\n## 📚 Documentation\nFor complete feature documentation, see the [project README](https://github.com/amitwh/pan-converter/blob/master/README.md) and [CLAUDE.md](https://github.com/amitwh/pan-converter/blob/master/CLAUDE.md).\n\n## 💬 Feedback\nHave suggestions or found a bug? Please [open an issue](https://github.com/amitwh/pan-converter/issues).\n\n---\n\n**Full Changelog**: https://github.com/amitwh/pan-converter/compare/v1.8.3...v1.9.0\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\" \"dist/PanConverter-1.9.0-x64.exe\" \"dist/PanConverter-1.9.0-x64.zip\" \"dist/PanConverter-Setup-1.9.0.exe\")",
|
|
"Bash(where:*)",
|
|
"Bash(cmd.exe /c \"where xelatex\")",
|
|
"Read(//c/Program Files/MiKTeX/miktex/bin/x64/**)",
|
|
"Bash(findstr:*)",
|
|
"Bash(cmd /c \"dir /b H:\\Coding\\pan-converter\\dist\\*.exe H:\\Coding\\pan-converter\\dist\\*.zip 2>nul | findstr 1.9.1\")",
|
|
"Bash(cmd /c \"dir H:\\Coding\\pan-converter\\dist\\*1.9.1*\")"
|
|
],
|
|
"deny": [],
|
|
"ask": []
|
|
}
|
|
}
|