App-PDFUtils

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

     compress_pdf(%args) -> [$status_code, $reason, $payload, \%result_meta]

    Make PDF smaller.

    This utility is a wrapper for gs (GhostScript) and is equivalent to the
    following command:

     % gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

    This wrapper offers support for multiple files and automatically naming
    output "INPUT.compressed.pdf" by default.

    This function is not exported.

    Arguments ('*' denotes required arguments):

    *   files* => *array[filename]*

        (No description)

    *   overwrite => *bool*

lib/App/PDFUtils.pm  view on Meta::CPAN

    v => 1.1,
    summary => 'Make PDF smaller',
    description => <<'MARKDOWN',

This utility is a wrapper for <prog:gs> (GhostScript) and is equivalent to the
following command:

    % gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

This wrapper offers support for multiple files and automatically naming output
`INPUT.compressed.pdf` by default.

MARKDOWN
    args => {
        %argspec0_files,
        %argspecopt_overwrite,
        setting => {
            schema => ['str*', {
                in => [
                    'screen',
                    'ebook',

lib/App/PDFUtils.pm  view on Meta::CPAN

 compress_pdf(%args) -> [$status_code, $reason, $payload, \%result_meta]

Make PDF smaller.

This utility is a wrapper for L<gs> (GhostScript) and is equivalent to the
following command:

 % gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

This wrapper offers support for multiple files and automatically naming output
C<INPUT.compressed.pdf> by default.

This function is not exported.

Arguments ('*' denotes required arguments):

=over 4

=item * B<files>* => I<array[filename]>

(No description)

script/compress-pdf  view on Meta::CPAN

See examples in the L</EXAMPLES> section.

=head1 DESCRIPTION

This utility is a wrapper for L<gs> (GhostScript) and is equivalent to the
following command:

 % gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

This wrapper offers support for multiple files and automatically naming output
C<INPUT.compressed.pdf> by default.

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--files-json>=I<s>



( run in 0.447 second using v1.01-cache-2.11-cpan-4e96b696675 )