# eimza-kep/python-pdf-eimza-dogrulayici architecture

> Architecture diagram of the GitHub repository eimza-kep/python-pdf-eimza-dogrulayici, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eimza-kep/python-pdf-eimza-dogrulayici
- Repository: https://github.com/eimza-kep/python-pdf-eimza-dogrulayici

## Overview

This is a single-file Python tool and importable library for inspecting PAdES/CAdES-signed PDFs. The principal workflow is to supply a PDF (or directory) to the CLI, extract signature metadata and integrity details, then display or export a report; raw PKCS#7 blocks can also be exported. The graph separates signature extraction, ASN.1 analysis, reporting, and export within the same runtime module. The excerpts do not show the complete orchestration, so some CLI relationships are documented by the README rather than confirmed from the full implementation.

Main entry points: [`verify_pdf_signature.py`](https://github.com/eimza-kep/python-pdf-eimza-dogrulayici/blob/main/verify_pdf_signature.py) (CLI orchestration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["PDF inspection runtime"]
  node_cli["CLI orchestration"]
  node_extract["Signature extraction"]
  node_asn1["ASN.1 analysis"]
  node_reports["Report generation"]
  node_p7s["PKCS&#35;7 export"]
end

node_user(("PDF user"))

node_user -->|"supplies PDF"| node_cli
node_cli -.->|"inspects signatures"| node_extract
node_extract -->|"analyzes DER"| node_asn1
node_cli -.->|"requests report"| node_reports
node_cli -.->|"requests export"| node_p7s

click node_cli "https://github.com/eimza-kep/python-pdf-eimza-dogrulayici/blob/main/verify_pdf_signature.py"
click node_extract "https://github.com/eimza-kep/python-pdf-eimza-dogrulayici/blob/main/verify_pdf_signature.py"
click node_asn1 "https://github.com/eimza-kep/python-pdf-eimza-dogrulayici/blob/main/verify_pdf_signature.py"
click node_reports "https://github.com/eimza-kep/python-pdf-eimza-dogrulayici/blob/main/verify_pdf_signature.py"
click node_p7s "https://github.com/eimza-kep/python-pdf-eimza-dogrulayici/blob/main/verify_pdf_signature.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_cli,node_extract,node_asn1,node_reports,node_p7s,node_user toneBlue
```

## Components

### PDF inspection runtime

- [CLI orchestration](https://github.com/eimza-kep/python-pdf-eimza-dogrulayici/blob/main/verify_pdf_signature.py): `verify_pdf_signature.py`
- [Signature extraction](https://github.com/eimza-kep/python-pdf-eimza-dogrulayici/blob/main/verify_pdf_signature.py): `verify_pdf_signature.py`
- [ASN.1 analysis](https://github.com/eimza-kep/python-pdf-eimza-dogrulayici/blob/main/verify_pdf_signature.py): `verify_pdf_signature.py`
- [Report generation](https://github.com/eimza-kep/python-pdf-eimza-dogrulayici/blob/main/verify_pdf_signature.py): `verify_pdf_signature.py`
- [PKCS#7 export](https://github.com/eimza-kep/python-pdf-eimza-dogrulayici/blob/main/verify_pdf_signature.py): `verify_pdf_signature.py`

### Other components

- **PDF user**

## Connections

- PDF user → CLI orchestration: supplies PDF (evidence: `README.md`)
- CLI orchestration → Signature extraction: inspects signatures (evidence: `verify_pdf_signature.py`)
- Signature extraction → ASN.1 analysis: analyzes DER (evidence: `verify_pdf_signature.py`)
- CLI orchestration → Report generation: requests report (evidence: `verify_pdf_signature.py`)
- CLI orchestration → PKCS#7 export: requests export (evidence: `verify_pdf_signature.py`)
