Bulk test-document generator and Stitch-to-PDF storyboard
Generate any number of labelled placeholder PDFs and images for upload testing, and combine exported UI screens into one searchable storyboard PDF.
- Period
- Oct 2025 – Dec 2025
- Technologies
- 2
- Diagrams
- 0
- Reading time
- 2 min
PythonPDF & document generation
Source & download: Generate Batches of Placeholder PDFs and Images for Upload Testing Source & download: Turn 100+ Google Stitch Screens into One PDF Storyboard
Members
| Part | Path | Lines | Output |
|---|---|---|---|
| S09a Word→PDF | internal path |
147 | numbered .docx rendered to .pdf |
| S09b Pillow images | …/python_image_canva.py |
164 | numbered .png / .jpg canvases |
| older | …/ex/python_pdf_generator.py |
152 | earlier single-purpose version |
| S09c Stitch→PDF storyboard | process_files.py + image_board.py (design doc + portfolio page) |
— | one large labelled PDF board of many UI screens |
Dates 2025-10-20 (a/b), 2025-12-18 ©. Portfolio pages: bulk-test-document-generator (2025-10-20), stitch-to-pdf-storyboard (2025-12-18). Owner. |
S09a / S09b — bulk placeholder documents
Purpose (portfolio): create numbered placeholder documents for QA / upload-testing of forms and pipelines.
S09a python_word_to_pdf |
S09b python_image_canva |
|
|---|---|---|
| Builds | a Word doc per item (python-docx: heading, date / time with labels, an icon image at a set height), then converts to PDF |
a canvas per item (PIL Image/ImageDraw/ImageFont: heading, date / time, centred icon) |
| PDF route | comtypes.client drives Word to export PDF (Windows) |
— |
| Params | base_name, count, image_folder, output_dir, font sizes, image height, image_start_index (1-based, circular reuse of icons) |
+ output_formats=("png","jpg"), canvas_width/height |
| Logging | logging module |
logging |
| Both are parameterised functions with sensible defaults — set a name, a count and an icon folder, run. Likely used to generate the dummy passport / document sets for testing the VisaAgent upload flow (P11). |
S09c — Google Stitch → PDF storyboard
A two-stage pipeline (documented in portfolio/.../1-Stitch-to-Storyboard pdf pipeline):
process_files.py(“data engineer”): scans a folder of Stitch ZIP exports, regex-sorts them numerically (so “(2)” precedes “(10)”), extractsscreen.png+code.html, renames to{index}_{name}_screen.png.image_board.py(“layout designer”): lays screens into ordinal row-blocks on one PDF at original resolution (“infinite canvas”), with cleaned human-readable labels as selectable text, and writes animage_order.txtmanifest. Libraries:PIL, ReportLab,pathlib,re. Output:image_board_final.pdf. Solves sharing 100+ Stitch UI screens as one searchable board (used for the owner’s design handoffs; Stitch also appears in the Munz “stitch-design-taste” skill).
Related projects
PDF Agent: PDF split and shuffle tool (4 versions)
A small Tkinter desktop tool that splits PDFs several ways for visa-document preparation, refined through four versions in one week.
PythonPDF & document generationDesktop GUI (Tk / Qt)Redwings PDF Tools: desktop PDF compressor and toolkit
A desktop PDF compressor with a binary search for the sharpest result under a size limit.
PythonPDF & document generationDesktop GUI (Tk / Qt)SQLiteAI and LLM experiments
Experiments with LLM APIs: a Flask chat over several providers, speech-to-text and model tests, and a React and shadcn debugging sandbox.
PythonFastAPI / FlaskLLM integrationReact+1Want to discuss this project?
Happy to walk through the architecture, trade-offs or the code.