coves y edocuments

This commit is contained in:
2025-08-05 07:36:15 -06:00
parent 975fed6f81
commit 5b492b0caa
4 changed files with 84 additions and 504 deletions

View File

@@ -0,0 +1,13 @@
import os
from utils.peticiones import extract_pdf_bytes_from_xml
xml_path = os.path.abspath("./test.xml")
result = extract_pdf_bytes_from_xml(xml_path)
if result and result["pdf_bytes"]:
with open("output_test.pdf", "wb") as f:
f.write(result["pdf_bytes"])
print("PDF extraído y guardado como output_test.pdf")
else:
print("No se pudo extraer el PDF del XML.")