Developer tools & scriptsOwnerMay 2026

PDF Agent: PDF split and shuffle tool (4 versions)

TL;DR

A desktop helper to split and shuffle PDF pages when preparing visa documents. It went from a first Tkinter prototype to a bug-fixed build in about a week of May 2026.

Period
May 2026
Technologies
3
Diagrams
1
Reading time
1 min

PythonPDF & document generationDesktop GUI (Tk / Qt)

2 chapter(s) collapsed in quick read

Purpose

A single-file desktop helper to split PDFs in several ways for visa-document preparation (e.g. splitting a long bank statement into portal-sized parts, or creating randomised page groups), running work on a background thread so the Tk UI stays responsive.

How it works

How it works
Diagram as text
flowchart TD
 A[Browse PDF] --> B[get_pdf_page_count]
 B --> C{split strategy}
 C --> C1[by N parts]
 C --> C2[after given pages]
 C --> C3[by type]
 C --> C4[random N files]
 C --> C5[random auto]
 C1 & C2 & C3 & C4 & C5 --> V[_validate_and_get_ranges]
 V --> T[_run_task on worker thread → write parts]
 T --> D[_on_done: status / errors in UI]

Related projects

Want to discuss this project?

Happy to walk through the architecture, trade-offs or the code.

Email me about it

© 2026 Thuyavan Sivarasa. Script code is MIT licensed.