Convert the Team Task Delegation Framework markdown to professional DOC and PDF formats with style and precision!
# Virtual environment is already set up at .venv
# Dependencies are already installed!# Activate virtual environment (if not already active)
source .venv/Scripts/activate # On Windows with Git Bash
# or
.venv\Scripts\activate.bat # On Windows Command Prompt
# Check if packages are installed
python -c "import docx, weasyprint, markdown2; print('✅ All packages installed!')"# Just run without arguments - it will ask you what to convert!
python convert_all.py
# This will:
# 1. 📁 Scan the folder for all markdown files
# 2. 🎯 Let you choose which file to convert
# 3. 📋 Let you choose the output format (DOC, PDF, or both)
# 4. 🚀 Convert with beautiful progress display# Interactive mode (same as above)
python convert_all.py
# Or use the Windows batch script
convert.bat# Interactive file selection but specify format
python convert_all.py --format doc # Choose file, convert to DOC only
python convert_all.py --format pdf # Choose file, convert to PDF only
# Specify input file directly (skips file selection)
python convert_all.py --input my_document.md
# Batch mode - convert ALL markdown files found
python convert_all.py --batch
# Batch mode with specific format
python convert_all.py --batch --format pdf
# Specify output directory
python convert_all.py --output-dir ./outputs
# Verbose mode (show detailed info)
python convert_all.py --verbose
# Force interactive mode (even if input is specified)
python convert_all.py --input some.md --interactive
# Get help
python convert_all.py --help# Use specific converters directly
python convert_to_doc.py # Creates .docx file
python convert_to_pdf.py # Creates .pdf fileAfter conversion, you'll get:
Team_Task_Delegation_Framework.docx- Professional Word documentTeam_Task_Delegation_Framework.pdf- Beautifully formatted PDF
- ✅ Smart File Detection: Automatically scans for .md, .markdown, .mdown, .mkd files
- ✅ Beautiful File Browser: Shows file size, modification time, and easy selection
- ✅ Format Selection: Choose DOC only, PDF only, or both formats
- ✅ Batch Processing: Convert all markdown files at once
- ✅ Progress Tracking: Real-time conversion progress with detailed feedback
- ✅ Error Handling: Graceful error handling with helpful suggestions
- ✅ Professional Microsoft Word formatting
- ✅ Custom styles and colors
- ✅ Proper heading hierarchy
- ✅ Bullet points and lists
- ✅ Bold/italic text preservation
- ✅ Team member sections highlighted
- ✅ Beautiful CSS styling
- ✅ Professional typography
- ✅ Page headers and footers
- ✅ Proper page breaks
- ✅ Color-coded sections
- ✅ Table of contents ready
- ✅ Print-optimized layout
# If you get import errors, reinstall packages
pip install -r requirements.txt# Install Visual C++ Build Tools or use conda
conda install -c conda-forge weasyprint# PDFKit requires wkhtmltopdf (but we use WeasyPrint instead)
# If you want to use PDFKit, install wkhtmltopdf from:
# https://wkhtmltopdf.org/downloads.html# Recreate virtual environment if needed
rm -rf .venv # Delete old environment
python -m venv .venv # Create new one
source .venv/Scripts/activate # Activate it
pip install -r requirements.txt # Reinstall packages╔════════════════════════════════════════════════════════════════╗
║ 🚀 LUNARBOT CONVERTER 🚀 ║
║ Smart India Hackathon Document Converter ║
║ ║
║ Converting Markdown → DOC & PDF like a space-age wizard! ║
╚════════════════════════════════════════════════════════════════╝
📁 Input file: Team_Task_Delegation_Framework.md
📂 Output directory: .
🎯 Format(s): both
⏰ Started at: 2025-09-27 15:30:45
════════════════════════════════════════════════════════════════
📝 Converting to DOC format...
Output: Team_Task_Delegation_Framework.docx
✅ Successfully converted to DOC
📋 Converting to PDF format...
Output: Team_Task_Delegation_Framework.pdf
✅ Successfully converted to PDF
════════════════════════════════════════════════════════════════
🎯 CONVERSION SUMMARY
════════════════════════════════════════════════════════════════
DOC: ✅ SUCCESS
📄 Team_Task_Delegation_Framework.docx
PDF: ✅ SUCCESS
📄 Team_Task_Delegation_Framework.pdf
🏆 2/2 conversions successful!
🎉 All conversions completed successfully!
🌙 Ready for lunar mission documentation! 🚀
⏰ Completed at: 2025-09-27 15:31:02
python-docx- Microsoft Word document creationweasyprint- HTML/CSS to PDF conversionmarkdown2- Markdown parsing with extrasreportlab- PDF generation utilitiespypandoc- Universal document converter (backup)
Lunarbot/
├── .venv/ # Virtual environment
├── Team_Task_Delegation_Framework.md # Source markdown
├── convert_all.py # Main converter script
├── convert_to_doc.py # DOC converter
├── convert_to_pdf.py # PDF converter
├── convert.bat # Windows batch script
├── requirements.txt # Python dependencies
├── README.md # This file
├── Team_Task_Delegation_Framework.docx # Generated DOC
└── Team_Task_Delegation_Framework.pdf # Generated PDF
- Batch Processing: Use
convert.baton Windows for one-click conversion - Custom Styling: Modify CSS in
convert_to_pdf.pyfor different PDF styles - Team Collaboration: Share the generated PDFs for team review
- Version Control: Keep both markdown and generated files in sync
- Professional Docs: Use DOC format for collaborative editing
- Presentation: Use PDF format for final presentations and printing
Your lunar robotics documentation is now ready for mission-critical use!
Bas ek hi baat hai - we've converted your research dreams into professional documents that even NASA would approve! 🌙✨
Made with 🤖 love for the Smart India Hackathon lunar robotics team!