示例#1
0
文件: duoMain.py 项目: susemm/books
 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)
示例#2
0
 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)
示例#3
0
文件: duoMain.py 项目: susemm/books
 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)
示例#4
0
 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)