Skip Menu |

This queue is for tickets about the HTML-HTMLDoc CPAN distribution.

Report information
The Basics
Id: 12323
Status: new
Priority: 0/
Queue: HTML-HTMLDoc

People
Owner: Nobody in particular
Requestors: ryan.cartwright [...] cafamily.org.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.08
Fixed in: (no value)

Attachments


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 .
Download htmldoc.pm.fix
application/octet-stream 939b

Message body not shown because it is not plain text.

From: Ryan Cartwright
[guest - Mon Apr 18 10:52:38 2005]: <snip> Show quoted text
> The attached file is a commented revised version of set_input_file > from HTMLDoc.pm .
Sorry the code includes a debug line I had forgotten to take out. You'll need to remove the line:- print $infile; Ta, Ryan