Thanks for your answer.
Yes, this works, but the problem is that I don't have some_html_file.html saved on disk, I have a string $out that I want to make into a pdf.
What I have now (using GT::TempFile)
Code:
my $tpl = new GT::Template;
my $out = $tpl->parse('template.html', {test => 'test tag'});
my $file = new GT::TempFile;
open (FILE, "> $$file");
print FILE $out;
close FILE;
system qq{htmldoc -t pdf --quiet --webpage -f template.pdf $$file};
But rather than using a tempfile, I would like to be able to produce the pdf directly.
Ivan
-----
Iyengar Yoga Resources /
GT Plugins