Test HTML
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 3m56s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 3m56s
This commit is contained in:
parent
567dd8587b
commit
a10b71ca3a
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user