<snarky>This bit will convert a text file to HTML for you:
#!/usr/bin/perl use strict; use warnings; use File::Slurp; use HTML::Entities; my $INFname = shift or die "Missing input file name!"; my $text = read_file($INFname); $text = encode_entities($text); open my $OUTF, '>', $INFname . ".html", or die "Can't open $INFname.ht +ml: $!\n"; print $OUTF "<html><body>$text</body></html>\n";
</snarky>To help you further, we would have to know where you are, and where you're going. You've provided so little information, that it would be difficult to figure out just what you're having trouble with. It's a pretty trivial task to convert text to HTML, so I rather doubt that the code provided is what you're looking for, but it I believe that it meets all the requirements you listed.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: pdf to html
by roboticus
in thread pdf to html
by mouleeshmichael
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |