Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert multi pages PDF into single html file using pdftohtml poppler utility

I am converting PDF document into HTML using poppler utility. But its creating separate html file for each page, but I want a single HTML file after converting pdf to html.

I used following syntax:

pdftohtml -c abc.pdf

But its creating abc-1.html, abc-2.html, .... etc

I also tried with pdftohtml -c abc.pdf abc.html but not getting expecting output.

Can anyone tell how to get a html output in single file instead of multiple html files?

like image 429
Deepti Kakade Avatar asked Oct 14 '25 20:10

Deepti Kakade


1 Answers

I have achieved this with -s option

For example:

pdftohtml -c -s -noframes abc.pdf abc.html
like image 91
Deepti Kakade Avatar answered Oct 18 '25 00:10

Deepti Kakade