leaf_focus/pdf/command.py
def pdf_identify(input_file: Path, output_file: Path):
    """Identify a pdf for use in other operations."""
    from leaf_focus.pdf.identify.component import Component

    click.secho("Starting pdf identify.", bold=True)

    logger = logging.getLogger()
    c = Component(logger)
    file_hash = c.file_hash(input_file)
    c.create(input_file, file_hash, output_file)

    click.secho(f"Generated pdf identify info to '{output_file}'.", fg="bright_blue")

    click.secho("Finished pdf identify.", bold=True)
Identify a pdf for use in other operations.
Identify a pdf for use in other operations.
Identify a pdf for use in other operations .
def pdf_identify(input_file: Path, output_file: Path):
    from leaf_focus.pdf.identify.component import Component
    click.secho("Starting pdf identify.", bold=True)
    logger = logging.getLogger()
    c = Component(logger)
    file_hash = c.file_hash(input_file)
    c.create(input_file, file_hash, output_file)
    click.secho(f"Generated pdf identify info to '{output_file}'.", fg="bright_blue")
    click.secho("Finished pdf identify.", bold=True)
def pdf_identify ( input_file : Path , output_file : Path ) : from leaf_focus . pdf . identify . component import Component click . secho ( "Starting pdf identify." , bold = True ) logger = logging . getLogger ( ) c = Component ( logger ) file_hash = c . file_hash ( input_file ) c . create ( input_file , file_hash , output_file ) click . secho ( f"Generated pdf identify info to '{output_file}'." , fg = "bright_blue" ) click . secho ( "Finished pdf identify." , bold = True )
Identify a pdf for use in other operations.
Identify a pdf for use in other operations .
"""Identify a pdf for use in other operations."""
input_file
Path
output_file
Path