Update TestPdf
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m10s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m10s
This commit is contained in:
parent
82343b53c8
commit
43e650a1f8
@ -29,7 +29,7 @@
|
|||||||
Directory.CreateDirectory(@"C:\temp");
|
Directory.CreateDirectory(@"C:\temp");
|
||||||
|
|
||||||
// ✅ 1. Llamar al endpoint de API para generar PDF
|
// ✅ 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
|
// ✅ 2. Guardar en disco
|
||||||
System.IO.File.WriteAllBytes(path, pdfBytes);
|
System.IO.File.WriteAllBytes(path, pdfBytes);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user