Back to Books Catalog
ENG-BLOG #01
300+ Hours of Custom Tooling
Custom PyMuPDF Vector Engine
5 Core Books Rendered
Strict Parental Quality Inspection

Building BookStudio: The Vector PDF Engine & AI Illustration Pipeline Behind Our Children’s Anatomy Books

Why traditional desktop publishing tools (Canva, InDesign) failed when creating multi-lingual anatomical picture books, and how two parent-engineers engineered a decoupled Python coordinate system, vector geometry algorithms, and custom AI illustration pipelines for their daughter Pravika.

Anshika DixitPraveen Ojha
Anshika Dixit&Praveen Ojha
ECE & Systems Engineers

Parents of Pravika • Published October 2026 • Verified Production Code

1. The Problem: Why Off-The-Shelf Publishing Tools Failed

When we set out to build Bone Explorer: Master S. Bone Jr. and the Secret Framework for our daughter Pravika, our pedagogical goal was simple: make skeletal anatomy delightful, fear-free, and crystal-clear.

However, we quickly discovered an enormous technical roadblock with traditional tools like Adobe InDesign, Figma, and Canva:

Failure Mode #1

Multi-Language Label Displacement

Translating “Rib cage” into Hindi (“पसलियों का ढांचा”) or Gujarati (“પાંસળીનું પાંજરું”) altered the text length by over 120%. Static callout boxes overflowed, and arrow angles broke.

Failure Mode #2

Raster Degradation

Exporting translated pages through graphic web tools rasterized typography down to 72 or 150 DPI, ruining razor-sharp line clarity on high-DPI print-at-home home printers.

Failure Mode #3

Character Continuity In AI Art

Generative AI models inherently lack anatomical precision and character consistency across 40 pages unless paired with strict structural conditioning and custom curation.

Instead of settling for clumsy compromises or manual re-drawing in 5 different languages, we decided to solve this like engineers: we built our own dedicated PDF vector layout engine, named BookStudio.

Live Internal Tooling

2. Inside BookStudio: Live Editor & Anatomical Mapping

Running locally on localhost:8765

Below are real, unmodified screenshots captured directly from our internal BookStudio development environment. Switch between tabs to see the character illustration, vector pointer arrows, and anatomy coordinate controls in action:

BookStudio v2.4 • Full 3D Skeleton Artwork, Boy Character & Interactive Callout Pills
Authentic Workspace Screenshot
Page 4: Master S. Bone Jr.
Page 4: Master S. Bone Jr.Coordinates: Normalized [0.0 - 1.0] Viewport

Actual screenshot of the BookStudio tool rendering Page 4. Notice the full vibrant illustration of the skeleton character, dialogue box, and surgical pill bounding boxes for Skull, Rib cage, Spine, Hand bones, and Foot bones.

Systems Architecture

3. The 4-Tier Automated Book Generation Pipeline

01

Decoupled Spatial Coordinate Schema

Text and pointers are never burned into the illustration pixels. Every anatomical element is declared in book1_layout.json with normalized coordinates (pill_pos: [x, y] and arrow_target: [x, y]).

02

PyMuPDF Vector Geometry Engine

Our custom pdf_engine.py calculates the shortest Euclidean distance from the pill rectangle boundaries to the anatomy point (get_shortest_pill_arrow_point) and draws crisp vector arrows underneath solid white pills.

03

Automated Multi-Language Hydration

A central dictionary of 348 semantic anatomical keys compiles into 5 localized PDF deliverables (English, Hindi, Gujarati, Marathi, German, Spanish) with zero manual artwork adjustments.

04

Non-Destructive Vector Redaction

When modifying existing PDFs, BookStudio uses PyMuPDF redaction annotations (fill=False) so old labels vanish without leaving white squares or raster artifacts.

Source Code Inspection

4. The Actual Code Behind the Engine

assets/locales/layout/book1_layout.jsonUTF-8 • Production Snippet
{
  "book_id": "book1_bone_explorer",
  "title": "Bone Explorer: Master S. Bone Jr. and the Secret Framework",
  "version": "2.4.0",
  "coordinate_system": "normalized_viewport_0_to_1",
  "pages": {
    "1": {
      "labels": [
        {
          "id": "p1_skull",
          "default_text": "Skull",
          "pill_pos": [0.260, 0.335],
          "arrow_target": [0.555, 0.385],
          "has_pill": true,
          "has_arrow": true,
          "pill_bg": "#FFFFFF",
          "pill_border": "#1A808C",
          "arrow_color": "#D83C25"
        },
        {
          "id": "p1_rib_cage",
          "default_text": "Rib cage",
          "pill_pos": [0.170, 0.445],
          "arrow_target": [0.660, 0.545],
          "has_pill": true,
          "has_arrow": true,
          "pill_bg": "#FFFFFF",
          "pill_border": "#1A808C",
          "arrow_color": "#D83C25"
        },
        {
          "id": "p1_spine",
          "default_text": "Spine",
          "pill_pos": [0.210, 0.555],
          "arrow_target": [0.510, 0.560],
          "has_pill": true,
          "has_arrow": true,
          "pill_bg": "#FFFFFF",
          "pill_border": "#1A808C",
          "arrow_color": "#D83C25"
        }
      ]
    },
    "4": {
      "note": "Page 4: Meet Master S. Bone Jr. & The Human Skeleton",
      "labels": [
        {
          "id": "p4_eye_socket",
          "default_text": "Eye socket",
          "pill_pos": [0.100, 0.500],
          "arrow_target": [0.235, 0.553],
          "has_pill": true,
          "has_arrow": true,
          "pill_bg": "#FFFFFF",
          "pill_border": "#1A808C",
          "arrow_color": "#D83C25"
        },
        {
          "id": "p4_nasal_opening",
          "default_text": "Nasal opening",
          "pill_pos": [0.550, 0.500],
          "arrow_target": [0.312, 0.587],
          "has_pill": true,
          "has_arrow": true,
          "pill_bg": "#FFFFFF",
          "pill_border": "#1A808C",
          "arrow_color": "#D83C25"
        }
      ]
    }
  }
}
Honest Creative Process

5. 300+ Hours of Engineering & The Strict Role of Generative AI

We believe in 100% radical transparency with parents and educators. Over 300+ engineering hours were poured into developing these custom software tools. Generative AI was used strictly and solely for initial raw illustration asset generation — never for layout math, never for coordinate geometry, and never for typographic placement.

Anshika (ECE engineer & mother) designed the early childhood curriculum and pedagogical framework, while Praveen (software architect & father) engineered the algorithmic pipelines, the PyQt5 interactive editor, and the PyMuPDF vector drawing engine.

Rigorous Parental Quality Gate: Flawed Renders Discarded

Generative AI models frequently generate anatomical artifacts, distorted limbs, extra fingers, or uncanny facial expressions. We enforced a zero-tolerance parental quality filter: every single raw render was manually inspected, and any illustration with even the slightest anatomical defect or confusing perspective was discarded immediately. Only clean, anatomically validated, child-friendly character art made it into our coordinate pipeline.

Our core 5-book learning collection was built directly on this BookStudio pipeline:

  • Master S. Bone Jr. (The Friendly Guide, 24 pp): The smiling, friendly animated skeleton mascot created to eliminate clinical apprehension, inviting children to touch and identify their own bones (as demonstrated in the Page 4 screenshot).
  • Full-Body Anatomical Reference (Page 2 Preface): An authentic skeletal system chart linking 19 precise vector pointers between common names (Skull, Collarbone, Ribs, Pelvis, Shin Bone) and biological Latin terminology (Cranium, Clavicle, Costae, Pelvis, Tibia).
  • The Inside-Out Boy (24 pp): Interactive body checks exploring muscles, digestion, and the heart, connecting anatomical science to children’s everyday movements.
  • Preschool Foundation Practice (25 pp) & Tracing Worksheets (71 pp): Guided pencil paths, motor-skill development, and letter formation built with vector millimeter precision.
  • 15 Ultra High-Res Wall Posters: 14 unique pedagogical designs covering alphabet, solar system, feelings, numbers, and emotions, plus 1 alternate calendar edition (both Sunday-start and Monday-start layouts, 17 pages total).
  • Architecture Note on Animal Vision: Animal Vision is an interactive optical simulation that operates on its own dedicated visual rendering engine, separate from BookStudio’s print vector engine.

“As engineers and parents, we built custom software tools and generative AI illustration pipelines specifically to craft these books for our daughter Pravika. Every character, skeleton diagram, and worksheet was engineered with love, precision, and a mother’s care — our hope is that it sparks that exact same joyful wonder of learning in your child.”

— Anshika Dixit (ECE Engineer) & Praveen Ojha (Software Architect)
In-House Engineering Stack

6. Why We Built a Proprietary In-House Stack

BookStudio is our proprietary, in-house publishing engine engineered specifically to produce the iLabs children's learning series. By maintaining full internal control over vector coordinate calculations, font baselines, and multi-language dictionary hydration, we ensure zero dependency on generic third-party SaaS platforms and guarantee razor-sharp 300-DPI deliverables.

Experience The Final Output

See the Result of Our Engineering: Explore the Books

Every single page across our core 5-book learning collection is rendered directly with the BookStudio vector engine. (Note: Animal Vision uses its own dedicated rendering engine.) Inspect high-resolution preview spreads, print worksheets, or unlock the complete learning bundle today.