scanbook/process.py
def make_pdf(folder, bookname, verbose):
    """
    Converts the image files in folder to a PDF named bookname.PDF.
    """
    cmd = ['convert']

    if verbose:
        cmd.append('-verbose')

    cmd.extend([
        f'{folder}/*',
        '-compress',
        'jpeg',
        '-quality',
        '75',
        f'{bookname}.pdf',
    ])

    subprocess.run(cmd)

    Converts the image files in folder to a PDF named bookname.PDF.
    
Converts the image files in folder to a PDF named bookname.PDF.
Converts the image files in folder to a PDF named bookname . PDF .
def make_pdf(folder, bookname, verbose):
    cmd = ['convert']
    if verbose:
        cmd.append('-verbose')
    cmd.extend([
        f'{folder}/*',
        '-compress',
        'jpeg',
        '-quality',
        '75',
        f'{bookname}.pdf',
    ])
    subprocess.run(cmd)
def make_pdf ( folder , bookname , verbose ) : cmd = [ 'convert' ] if verbose : cmd . append ( '-verbose' ) cmd . extend ( [ f'{folder}/*' , '-compress' , 'jpeg' , '-quality' , '75' , f'{bookname}.pdf' , ] ) subprocess . run ( cmd )
Converts the image files in folder to a PDF named bookname.PDF.
Converts the image files in folder to a PDF named bookname . PDF .
"""
    Converts the image files in folder to a PDF named bookname.PDF.
    """
folder
bookname
verbose