I have tried many time. But I am not getting any information's regarding that PDF to HTML conversion. Instead of that I successfully convert HTML file in the form of PDF.
I used code the below code for converting HTML to PDF.
#Add Module..
use PDF::FromHTML;
#Create object for that Module..
my $pdf = new PDF::FromHTML( encoding => 'utf-8' );
# Loading from a file..
$pdf->load_file('source.htm');
# Or from a scalar reference:
#$input = "<html><body>sample test<br><b>deiveegan</b></body></html>";
# $pdf->load_file(\$input);
# Perform the actual conversion..
$pdf->convert(
Font => 'arial.ttf',
LineHeight => 18,
Landscape => 2,
);
# Write to a file:.
$pdf->write_file('Target.pdf');
# Or to a scalar reference:
# $pdf->write_file(\$output);
I did it Successfully. But I need a help for converting it in reverse. (i.e.) PDF to HTML.
In reply to Convert PDF file into HTML file by DEIVEEGARAJA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |