Update TestPdf
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m10s

This commit is contained in:
Leandro Hernan Rojas 2025-05-15 09:37:48 -03:00
parent 82343b53c8
commit 43e650a1f8

View File

@ -29,7 +29,7 @@
Directory.CreateDirectory(@"C:\temp");
// ✅ 1. Llamar al endpoint de API para generar PDF
var pdfBytes = await Http.GetByteArrayAsync("http://localhost:5243/api/PdfTest/test"); // Cambia a tu URL real
var pdfBytes = await Http.GetByteArrayAsync("api/PdfTest/test"); // Cambia a tu URL real
// ✅ 2. Guardar en disco
System.IO.File.WriteAllBytes(path, pdfBytes);