#!/bin/bash
IN="POGIL Activities for CS1 in Python - Teacher.pdf"

function pages() {
    START=$1
    END=$2
    RANGE="$((START + 4))-$((END + 4))"
    TGT=$3
    qpdf --deterministic-id "$IN" --pages . $RANGE -- "${TGT}_Teacher".pdf
}

pages  1  8 Act01-Intro
pages  9 16 Act02-Arithmetic
pages 17 24 Act03-DataStruct
pages 25 32 Act04-Conditions
pages 49 56 Act07-ListString
pages 57 62 Act08-Modules
pages 63 70 Act09-Nested
pages 71 76 Act10-Files
pages 77 83 Act11-Visualizing
pages 85 92 Act12-DefClass
pages 93 98 Act13-ExtClass
pages 99 105 Act14-Recursive
