leaf_focus/pdf/command.py
def pdf_text(exe_file: Path, input_file: Path, output_prefix: Path):
    """Extract embedded text from a pdf."""
    from leaf_focus.pdf.text.component import Component

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

    logger = logging.getLogger()
    c = Component(logger, exe_file)
    c.create(input_file, output_prefix)

    click.secho(
        f"Extracted embedded text from pdf to '{output_prefix}'.", fg="bright_blue"
    )

    click.secho("Finished pdf text.", bold=True)
Extract embedded text from a pdf.
Extract embedded text from a pdf.
Extract embedded text from a pdf .
def pdf_text(exe_file: Path, input_file: Path, output_prefix: Path):
    from leaf_focus.pdf.text.component import Component
    click.secho("Starting pdf text.", bold=True)
    logger = logging.getLogger()
    c = Component(logger, exe_file)
    c.create(input_file, output_prefix)
    click.secho(
        f"Extracted embedded text from pdf to '{output_prefix}'.", fg="bright_blue"
    )
    click.secho("Finished pdf text.", bold=True)
def pdf_text ( exe_file : Path , input_file : Path , output_prefix : Path ) : from leaf_focus . pdf . text . component import Component click . secho ( "Starting pdf text." , bold = True ) logger = logging . getLogger ( ) c = Component ( logger , exe_file ) c . create ( input_file , output_prefix ) click . secho ( f"Extracted embedded text from pdf to '{output_prefix}'." , fg = "bright_blue" ) click . secho ( "Finished pdf text." , bold = True )
Extract embedded text from a pdf.
Extract embedded text from a pdf .
"""Extract embedded text from a pdf."""
exe_file
Path
input_file
Path
output_prefix
Path