def make_cards_file(path, cover, items, verbose=False):
"Make cards with as many items as possible, shrinking too big ones."
cardSize = (9.1 * cm, 5.9 * cm)
cards = []
for q, a in make_cards_platypus(cardSize, cover, items, verbose=verbose):
cards += [q, a]
outPath = os.path.splitext(path)[0] + ".pdf"
pageSize = landscape(A4)
layout(outPath, cards, pageSize, cardSize, frame=True, debug=False)
if verbose:
print("wrote %s" % outPath)
评论列表
文章目录