diff --git a/Documents/Services/DocumentTemplateService.cs b/Documents/Services/DocumentTemplateService.cs index 6cabe32..1773ff3 100644 --- a/Documents/Services/DocumentTemplateService.cs +++ b/Documents/Services/DocumentTemplateService.cs @@ -1,6 +1,7 @@ using Documents.Interfaces; using Documents.Models; using System.Reflection; +using System.Text; using Transversal.Interfaces; namespace Documents.Services @@ -23,7 +24,8 @@ namespace Documents.Services // 👉 Renderizar HTML usando RazorLight string html = await _templateRenderer.RenderAsync("Quotes/Template_v1.cshtml", request.Model); - + // 🔍 Dump HTML a archivo temporal para inspección + File.WriteAllText("/app/html_debug_output.html", html, Encoding.UTF8); // 👉 Generar PDF desde el HTML return await _pdfGeneratorService.GeneratePdfFromHtmlAsync(html); }