Python · Document Automation
Turn 100+ Google Stitch Screens into One PDF Storyboard
Download your Google Stitch screens as ZIPs, run two Python scripts, and get one labelled, high-resolution PDF of the whole app - easy to share and searchable with Ctrl+F.
PythonPillowReportLabpathlibRegex
Abstract
The problem
Google Stitch generates great UI/UX designs, but a project with 100+ screens is slow to open, slow to scroll and impossible to share as a single artefact.
The solution
A two-stage Python pipeline: stage 1 extracts and renames screens from the bulk ZIP exports, stage 2 lays them out on a labelled whiteboard and renders one PDF.
The result
One lightweight document that gives a high-fidelity bird's-eye view of the whole UI/UX project, ready for clients or quick internal review.
Input & Output
Input
- Bulk ZIP exports from Google Stitch (each containing screen.png and code.html)
Output
- image_board_final.pdf – the high-resolution storyboard
Optional output
- Organised /Screens folder with {index}_{screen_name}_screen.png
- Extracted code.html per screen
- image_order.txt – CSV manifest of the final sequence
System Diagram
Stitch ZIPs
Bulk export, unordered
process_files.py
Extract · regex-sort · rename
/Screens
Numbered PNGs + code
image_board.py
ORDINAL_BLOCKS layout · labels
Storyboard PDF
Searchable, no-scale render
How It Works
Recursive processing
Scans the base directory for every .zip archive.
Natural numeric sort
Regex ordering so "Design (2)" always comes before "Design (10)".
Targeted extraction
Hunts only for screen.png and code.html inside each archive.
Ordinal blocks
Define rows such as screens 1–20 in row 1 and 21–30 in row 2, like a real whiteboard.
Searchable labels
Filenames are cleaned into readable labels drawn as real PDF text, so Ctrl+F works.
No-scale rendering
Images keep their original resolution – zero quality loss on an "infinite canvas".
Configuration
| Option | Purpose |
|---|---|
BASE_DIR | Folder holding the Stitch ZIP files (process_files.py). |
ORDINAL_BLOCKS | Row/column grouping of screens (image_board.py). |
Margins & font | Spacing and label typography of the board. |
How to Run
pip install Pillow reportlabpython process_files.pypython image_board.pyImpact & Benefits
Screenshots
Frequently Asked Questions
Can I share all my Google Stitch screens as one file?
Yes. Stitch exports each design as a ZIP; this pipeline extracts every screen, numbers them, and renders them on one PDF board you can send by email or Slack.
Does the PDF reduce image quality?
No. Images are rendered at their original resolution (no-scale rendering), so the board stays sharp when you zoom in.
Can I search for a screen inside the PDF?
Yes. Labels are drawn as real PDF text, so Ctrl+F finds screens by name.
Can I control how screens are grouped into rows?
Yes. Define ORDINAL_BLOCKS in image_board.py, for example screens 1-20 in row 1 and 21-30 in row 2.
Related
List Every File in a Folder to a Text or CSV Manifest with Python
Crawls a folder and produces a clean, copy-ready manifest of file names, types and sizes.
Read documentationMerge Selected Project Files into One AI-Ready Text Block
Select files from a local project and merge them into one sanitised, AI-ready text block.
Read documentation
