leaf_focus/pdf/command.py
def pdf_images(exe_file: Path, input_file: Path, output_prefix: Path):
    """Create images from pages of a pdf."""

    from leaf_focus.pdf.images.component import Component

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

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

    click.secho(
        f"There are {len(result)} images created from the pdf pages.", fg="bright_blue"
    )
    click.secho("Finished pdf images.", bold=True)
Create images from pages of a pdf.
Create images from pages of a pdf.
Create images from pages of a pdf .
def pdf_images(exe_file: Path, input_file: Path, output_prefix: Path):
    from leaf_focus.pdf.images.component import Component
    click.secho("Starting pdf images.", bold=True)
    logger = logging.getLogger()
    c = Component(logger, exe_file)
    result = c.create(input_file, output_prefix)
    click.secho(
        f"There are {len(result)} images created from the pdf pages.", fg="bright_blue"
    )
    click.secho("Finished pdf images.", bold=True)
def pdf_images ( exe_file : Path , input_file : Path , output_prefix : Path ) : from leaf_focus . pdf . images . component import Component click . secho ( "Starting pdf images." , bold = True ) logger = logging . getLogger ( ) c = Component ( logger , exe_file ) result = c . create ( input_file , output_prefix ) click . secho ( f"There are {len(result)} images created from the pdf pages." , fg = "bright_blue" ) click . secho ( "Finished pdf images." , bold = True )
Create images from pages of a pdf.
Create images from pages of a pdf .
"""Create images from pages of a pdf."""
exe_file
Path
input_file
Path
output_prefix
Path