With the help of[1] and some glue code[2]:
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser(
description=("Split up pdf from 2-up "
"to single page"))
parser.add_argument("src", help="Source file")
parser.add_argument("dst", help="Destination file")
args = parser.parse_args()
split_pages2(args.src, args.dst)
I produced a PDF[3] that appears to look ok at first glance (bit off on the margins,
perhaps?).[1] http://stackoverflow.com/questions/13345593/split-each-pdf-p...