82 lines
1.3 KiB
Plaintext
82 lines
1.3 KiB
Plaintext
|
=encoding utf8
|
||
|
|
||
|
=head1 NAME
|
||
|
|
||
|
openhtmltopdf - converts a single html file into a PDF.
|
||
|
|
||
|
=head1 SYNOPSIS
|
||
|
|
||
|
openhtmltopdf [(B<-h> | B<-V>)]
|
||
|
|
||
|
openhtmltopdf help
|
||
|
|
||
|
openhtmltopdf convert [(B<-b> | B<-q> | B<-v> | B<-x>)] B<-i>=I<input> B<-o>=I<output>
|
||
|
|
||
|
=head1 DESCRIPTION
|
||
|
|
||
|
This is a CLI for converting HTML files to PDF documents. Under the hood it
|
||
|
uses the openhtmltopdf library.
|
||
|
|
||
|
=head1 COMMANDS
|
||
|
|
||
|
=over
|
||
|
|
||
|
=item B<help>
|
||
|
|
||
|
Display help information about the specified command.
|
||
|
|
||
|
=item B<convert>
|
||
|
|
||
|
Converts a single html file into a PDF.
|
||
|
|
||
|
=back
|
||
|
|
||
|
=head1 OPTIONS
|
||
|
|
||
|
=over
|
||
|
|
||
|
=item B<-h>, B<--help>
|
||
|
|
||
|
Show this help message and exit.
|
||
|
|
||
|
=item B<-V>, B<--version>
|
||
|
|
||
|
Print version information and exit.
|
||
|
|
||
|
=item B<-b>, B<--block>
|
||
|
|
||
|
Block linked resources (CSS, images, fonts).
|
||
|
|
||
|
=item B<-i>, B<--input>=I<input>
|
||
|
|
||
|
The html input file.
|
||
|
|
||
|
=item B<-o>, B<--output>=I<output>
|
||
|
|
||
|
The PDF output file.
|
||
|
|
||
|
=item B<-q>, B<--quiet>
|
||
|
|
||
|
Quiet logging.
|
||
|
|
||
|
=item B<-v>, B<--verbose>
|
||
|
|
||
|
Verbose logging.
|
||
|
|
||
|
=item B<-x>, B<--xhtml>
|
||
|
|
||
|
Use to specify that the input file is valid XHTML (skipping the HTML to XHTML
|
||
|
step).
|
||
|
|
||
|
=back
|
||
|
|
||
|
=head1 LICENSE
|
||
|
|
||
|
This software is released under version 2.0 of the L<Apache
|
||
|
License|https://www.apache.org/licenses/LICENSE-2.0.txt>.
|
||
|
|
||
|
=head1 SEE ALSO
|
||
|
|
||
|
L<https://github.com/danfickle/openhtmltopdf>,
|
||
|
L<https://github.com/danfickle/openhtmltopdf-cli>.
|