Subject: | set_input_file fails with wildcards |
If you want to create a single pdf file from multiple html files you cannot use
$htmldoc = new HTML::HTMLDoc;
$htmldoc->set_input_file("/path/to/my/files/*.html");
$htmldoc->generate_pdf();
set_input_file fails because it currently checks that the string passed to it results in a plain file - *.html does not and thus it fails.
HTMLDoc on the command line supports wildcards so I have inserted an additional if statement to enable you to specify input_file as "*.html".
The additional code checks that files of the form *.htm[l] exist within the path supplied as part of the string.
The attached file is a commented revised version of set_input_file from HTMLDoc.pm .
Message body not shown because it is not plain text.