sandbox:/mnt/data/Presentacion_Carta_de_Credito.pdf
[Descargar archivo con géneros](sandbox:/mnt/data/Libro1_generos.xlsx)
Abrir archivo
Windows for home | Other | Files, folders, and storage
7 answers
Sort by: Newest
-
Cintia Camargo 0 Reputation points
2026-07-16T14:12:32.88+00:00 sandbox:/mnt/data/docx_render/lyna%20A4.pdf
-
Junior Eneque Herrera 0 Reputation points
2026-07-14T00:42:39.58+00:00 code-generated-file-3022db7b-6cc1-4b9e-a219-f2a778ac647f
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
-
Dariuxi Silva 5 Reputation points
2026-05-26T03:55:33.5666667+00:00 from reportlab.lib.pagesizes import legal
from reportlab.platypus import SimpleDocTemplate, Image, Spacer
from reportlab.lib.units import inch
from PIL import Image as PILImage
import os
images = [
"/mnt/data/C8BFD851-8CAC-4172-8569-48E9E331C15C.jpeg", "/mnt/data/6AAFF5AA-5E1F-476F-A4A1-0C31BFB278BA.jpeg", "/mnt/data/48FF8853-0FA7-4E15-BABA-6DA96C9A3002.jpeg", "/mnt/data/8593A8A6-4664-461E-9CB2-F4A5388125DB.jpeg",]
pdf_path = "/mnt/data/Prueba_Estructura_Exacta_Oficio.pdf"
doc = SimpleDocTemplate(
pdf_path, pagesize=legal, # oficio aprox. rightMargin=20, leftMargin=20, topMargin=20, bottomMargin=20)
elements = []
for img_path in images:
pil_img = PILImage.open(img_path) width, height = pil_img.size max_width = 7.7 * inch max_height = 12 * inch ratio = min(max_width / width, max_height / height) img = Image(img_path, width=width * ratio, height=height * ratio) elements.append(img) elements.append(Spacer(1, 0.2 * inch))doc.build(elements)
print(f"PDF creado: {pdf_path}")