def crop4Nook(src): '''crop blank edge''' srcPath, ext = os.path.splitext(src) destPath = srcPath + '_n' + ext # print destPath DuoPdf.crop(destPath, src, 56, 40, 56, 40)
def crop4Kindle(src): '''crop blank edge''' srcPath, ext = os.path.splitext(src) destPath = srcPath + '_k' + ext # print destPath DuoPdf.crop(destPath, src, 50, 12, 50, 12)