3 ms·
With the help of[1] and some glue code[2]: if __name__ == "__main__": import argparse parser = argparse.ArgumentParser( description=("S
by e12e 11y ago
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-page-in-two http://stackoverflow.com/questions/13345593/split-each-pdf-p...
[2] https://gist.github.com/ebe2445416ed8b683d93 https://gist.github.com/ebe2445416ed8b683d93
[3] https://e12e.github.io/files/introcyb-split.pdf https://e12e.github.io/files/introcyb-split.pdf
- MistahKoala 11y agoOh, good effort! Looks much better than what I managed.