Overview
After processing your Auvo file, you can export the filtered results to Excel or PDF format. Both formats include your extracted tasks and statistical summaries, making it easy to share or archive your findings.Export Options
The application provides two export formats:Excel Export
Multi-sheet workbook with detailed data and statistics, ideal for further analysis
PDF Export
Professional formatted report with visual statistics, perfect for printing or sharing
Exporting to Excel
How to Export
Process Your File
Upload and process your Auvo file to generate results. You must have results before exporting.
Click Excel Button
On the results page, locate the export buttons in the header. Click the green “Excel” button.
Excel File Structure
The Excel export contains two sheets:Sheet 1: Tarefas Encontradas
Contains all filtered tasks with the following columns:| Column | Description |
|---|---|
| Data | Service order date |
| Cliente | Client name |
| Endereco | Service address |
| OS Digital | Service order URL |
| Relato | Service report description |
This sheet contains the exact same data displayed in the results table on the web interface.
Sheet 2: Estatísticas
Contains summary statistics:| Métrica | Valor |
|---|---|
| Total de Registros | 250 |
| Tarefas Encontradas | 45 |
| Taxa de Ocorrência (%) | 18.0 |
| Data de Geração | 10/03/2026 14:30 |
Backend Implementation
The Excel export is handled by the/download/excel route (app.py:178):
The Excel export uses the
openpyxl library, which is specified in the project’s requirements.Use Cases for Excel Export
- Data Analysis: Pivot tables, charts, and formulas
- Filtering: Apply additional custom filters
- Integration: Import into other business systems
- Sharing: Send to colleagues who prefer spreadsheet format
- Archiving: Long-term storage of results
Exporting to PDF
How to Export
PDF Report Structure
The PDF report includes:1. Header Section
2. Statistics Dashboard
Visual stat boxes showing:- Total de Registros: 250
- Tarefas Encontradas: 45
- Taxa de Ocorrência: 18.0%
3. Keywords Section
Highlighted box showing all keywords used:4. Results Table
Full table with all filtered tasks, including:- Data
- Cliente
- Endereco
- OS Digital (with clickable links)
- Relato
The PDF is formatted for printing, with responsive styling that adapts to page size.
PDF Styling
The PDF uses custom CSS for professional appearance:Backend Implementation
The PDF export is handled by the/download/pdf route (app.py:206) using WeasyPrint:
PDF generation uses the WeasyPrint library, which renders HTML/CSS to PDF format.
Use Cases for PDF Export
- Presentations: Share in meetings or reports
- Printing: Physical copies for field technicians
- Archiving: Long-term read-only storage
- Email: Easy to attach and view on any device
- Documentation: Include in project documentation
Comparing Export Formats
| Feature | Excel | |
|---|---|---|
| File Size | Smaller | Larger |
| Editability | Editable | Read-only |
| Formatting | Basic | Professional |
| Multiple Sheets | ✅ Yes | ❌ Single document |
| Clickable Links | ✅ Yes | ✅ Yes |
| Charts/Graphs | Manual creation | Pre-formatted stats |
| Best For | Analysis | Sharing/Printing |
Handling Export Errors
Error: “Os resultados expiraram”
This error appears when:- Your session has expired (browser closed or timed out)
- The temporary results file was deleted
- You’re trying to export without processing a file first
Empty Results Export
If you export when no tasks were found:- Excel: The “Tarefas Encontradas” sheet will be empty (headers only)
- PDF: Displays “Nenhuma tarefa encontrada” instead of a table
Statistics will still show total records processed, even if no matches were found.
Download Doesn’t Start
If clicking the export button does nothing:- Check that JavaScript is enabled
- Disable pop-up blockers for this site
- Try a different browser
- Check browser console for errors
PDF Looks Incorrect
If the PDF has formatting issues:- Ensure you’re using a modern PDF reader
- Try re-exporting (temporary rendering issue)
- Very long addresses or descriptions may cause layout issues
Export File Naming
Both exports use static filenames:- Excel:
relatorio_filtrado.xlsx - PDF:
relatorio_filtrado.pdf
Custom Naming (Future Enhancement)
Currently, filenames are hardcoded. A potential enhancement would be:Technical Details
Data Source
Both exports retrieve data from the same source:- ✅ Consistent data between web view and exports
- ✅ Memory efficiency (not stored in session)
- ✅ Support for large datasets
Response Headers
Both exports use Flask’sResponse object with proper MIME types:
Excel:
attachment disposition forces the browser to download rather than display inline.
Performance Considerations
- Excel exports are typically faster (direct pandas conversion)
- PDF exports take longer due to HTML rendering and styling
- Large datasets (>1000 rows) may take several seconds to export
- All processing is synchronous (browser waits for completion)
For very large files (>10,000 rows), consider implementing background job processing or pagination.
Best Practices
When to Use Excel
- You need to perform additional calculations
- You want to apply custom filters or sorts
- You’re integrating with other Excel-based workflows
- You need to edit or annotate the data
When to Use PDF
- You’re sharing with external stakeholders
- You need a printable report
- You want a fixed, formatted document
- You’re archiving for compliance purposes
Exporting Frequently
If you process files regularly:- Develop a consistent naming convention for saved exports
- Create a folder structure for organizing reports
- Consider scripting bulk exports if processing many files
Related Routes
GET /download/excel- Excel export handler (app.py:178)GET /download/pdf- PDF export handler (app.py:206)POST /upload- Generates the data for export (app.py:124)
Next Steps
- Configure keywords to refine your exports
- View results before exporting
- Upload new files to create more reports