# cuentadeprueba389/img-a-pfd architecture

> Architecture diagram of the GitHub repository cuentadeprueba389/img-a-pfd, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cuentadeprueba389/img-a-pfd
- Repository: https://github.com/cuentadeprueba389/img-a-pfd

## Overview

This small Python script converts images in each subfolder beside the script into a PDF named after that folder. Its top-level loop selects folders and invokes the converter; the converter filters and sorts image filenames, creates pages through FPDF, and writes the PDF. The single source file shows these steps directly; there are no other documented product capabilities.

Main entry points: [`estilos.py`](https://github.com/cuentadeprueba389/img-a-pfd/blob/main/estilos.py) (Image converter)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_folder["Image folder"]
node_runner["Folder runner<br/>[estilos.py]"]
node_converter["Image converter<br/>[estilos.py]"]
node_fpdf["FPDF library"]
node_pdf["Output PDF"]
node_console["Console output"]

node_runner -->|"lists folders"| node_folder
node_runner -->|"converts folder"| node_converter
node_converter -->|"reads images"| node_folder
node_converter -->|"creates pages"| node_fpdf
node_converter -->|"writes PDF"| node_pdf
node_runner -->|"prints result"| node_console

click node_runner "https://github.com/cuentadeprueba389/img-a-pfd/blob/main/estilos.py"
click node_converter "https://github.com/cuentadeprueba389/img-a-pfd/blob/main/estilos.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_folder,node_fpdf,node_pdf,node_console toneIndigo
class node_runner,node_converter toneTeal
```

## Components

### Other components

- **Image folder**
- [Folder runner](https://github.com/cuentadeprueba389/img-a-pfd/blob/main/estilos.py): `estilos.py`
- [Image converter](https://github.com/cuentadeprueba389/img-a-pfd/blob/main/estilos.py): `estilos.py`
- **FPDF library**
- **Output PDF**
- **Console output**

## Connections

- Folder runner → Image folder: lists folders (evidence: `estilos.py`)
- Folder runner → Image converter: converts folder (evidence: `estilos.py`)
- Image converter → Image folder: reads images (evidence: `estilos.py`)
- Image converter → FPDF library: creates pages (evidence: `estilos.py`)
- Image converter → Output PDF: writes PDF (evidence: `estilos.py`)
- Folder runner → Console output: prints result (evidence: `estilos.py`)
