dompdf_usage
Display command line usage.
Description
dompdf_usage();
Usage
if ( !function_exists( 'dompdf_usage' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce-pdf-invoices-packing-slips/lib/dompdf/dompdf.php'; } // NOTICE! Understand what this does before running. $result = dompdf_usage();
Defined (1)
The function is defined in the following location(s).
- /lib/dompdf/dompdf.php
- function dompdf_usage() {
- $default_paper_size = DOMPDF_DEFAULT_PAPER_SIZE;
- echo <<<EOD
- Usage: {$_SERVER["argv"][0]} [options] html_file
- html_file can be a filename, a url if fopen_wrappers are enabled, or the '-' character to read from standard input.
- Options:
- -h Show this message
- -l List available paper sizes
- -p size Paper size; something like 'letter', 'A4', 'legal', etc.
- The default is '$default_paper_size'
- -o orientation Either 'portrait' or 'landscape'. Default is 'portrait'
- -b path Set the 'document root' of the html_file.
- Relative urls (for stylesheets) are resolved using this directory.
- Default is the directory of html_file.
- -f file The output filename. Default is the input [html_file].pdf
- -v Verbose: display html parsing warnings and file not found errors.
- -d Very verbose: display oodles of debugging output: everyframe
- in the tree printed to stdout.
- -t Comma separated list of debugging types (page-break, reflow, split)
- EOD;
- exit;
- }