NAME

App::Images::To::DjVu - Base class for images2djvu script.

SYNOPSIS

use App::Images::To::DjVu;

my $app = App::Images::To::DjVu->new;
my $exit_code = $app->run;

METHODS

new

my $app = App::Images::To::DjVu->new;

Constructor.

Returns instance of object.

run

my $exit_code = $app->run;

Run.

Returns 1 for error, 0 for success.

ERRORS

new():
        From Class::Utils::set_params():
                Unknown parameter '%s'.

run():
        Unsupported encoder '%s'.

EXAMPLE

use strict;
use warnings;

use App::Images::To::DjVu;

# Arguments.
@ARGV = (
        '-h',
);

# Run.
exit App::Images::To::DjVu->new->run;

# Output like:
# Usage: ./ex1.pl [-e encoder] [-h] [-o out_file] [-q] [--version] images_list_file
#         -e encoder              Encoder (default value is 'c44').
#         -h                      Print help.
#         -o out_file             Output file (default value is 'output.djvu').
#         -q                      Quiet mode.
#         --version               Print version.
#         images_list_file        Text file with images list.

DEPENDENCIES

Class::Utils, Error::Pure, File::Basename, Getopt::Std, Perl6::Slurp.

REPOSITORY

https://github.com/michal-josef-spacek/App-Images-To-DjVu

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© 2021-2022 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.02