<div dir="ltr">Hi,<div><br></div><div>I am trying to convert pdf files to html. Running it with pdftohtml -c -s input output works fine on simple PDFs. PDFtoHTML converts the file properly into the intended html file with para tags. <br><br>But, when I tried testing it on PDF files (court documents), PDFtoHTML just converts them into a PNG file  and then links them in the output html file. So I have an HTML file that just links an image. <br><br>Sample:</div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre"><div><!-- Page 5 --></div><div><<span style="color:rgb(215,186,125)">a</span> name="5"></<span style="color:rgb(215,186,125)">a</span>></div><div><<span style="color:rgb(215,186,125)">style</span> type="text/css"></div><div><!--</div><div>    <span style="color:rgb(215,186,125)">p</span> {<span style="color:rgb(156,220,254)">margin</span>: <span style="color:rgb(181,206,168)">0</span>; <span style="color:rgb(156,220,254)">padding</span>: <span style="color:rgb(181,206,168)">0</span>;}  <span style="color:rgb(215,186,125)">.ft519</span>{<span style="color:rgb(156,220,254)">font-size</span>:<span style="color:rgb(181,206,168)">27px</span>;<span style="color:rgb(156,220,254)">font-family</span>:<span style="color:rgb(206,145,120)">Helvetica</span>;<span style="color:rgb(156,220,254)">color</span>:<span style="color:rgb(206,145,120)">#000000</span>;}</div><div>--></div><div></<span style="color:rgb(215,186,125)">style</span>></div><div><<span style="color:rgb(215,186,125)">div</span> id="<span style="color:rgb(86,156,214)">page5-div</span>" style="position:relative;width:918px;height:1188px;"></div><div><<span style="color:rgb(215,186,125)">img</span> width="918" height="1188" src="SEP272019_02A6245005.png" alt="background image"/></div><div></<span style="color:rgb(215,186,125)">div</span>></div><div><!-- Page 6 --></div><div><<span style="color:rgb(215,186,125)">a</span> name="6"></<span style="color:rgb(215,186,125)">a</span>></div><div><<span style="color:rgb(215,186,125)">style</span> type="text/css"></div><div><!--</div><div>    <span style="color:rgb(215,186,125)">p</span> {<span style="color:rgb(156,220,254)">margin</span>: <span style="color:rgb(181,206,168)">0</span>; <span style="color:rgb(156,220,254)">padding</span>: <span style="color:rgb(181,206,168)">0</span>;}  <span style="color:rgb(215,186,125)">.ft620</span>{<span style="color:rgb(156,220,254)">font-size</span>:<span style="color:rgb(181,206,168)">13px</span>;<span style="color:rgb(156,220,254)">font-family</span>:<span style="color:rgb(206,145,120)">Times</span>;<span style="color:rgb(156,220,254)">color</span>:<span style="color:rgb(206,145,120)">#000000</span>;}</div><div>    <span style="color:rgb(215,186,125)">.ft621</span>{<span style="color:rgb(156,220,254)">font-size</span>:<span style="color:rgb(181,206,168)">10px</span>;<span style="color:rgb(156,220,254)">font-family</span>:<span style="color:rgb(206,145,120)">Helvetica</span>;<span style="color:rgb(156,220,254)">color</span>:<span style="color:rgb(206,145,120)">#000000</span>;}</div><div>--></div><div></<span style="color:rgb(215,186,125)">style</span>></div><div><<span style="color:rgb(215,186,125)">div</span> id="<span style="color:rgb(86,156,214)">page6-div</span>" style="position:relative;width:918px;height:1188px;"></div><div><<span style="color:rgb(215,186,125)">img</span> width="918" height="1188" src="SEP272019_02A6245006.png" alt="background image"/></div><div></<span style="color:rgb(215,186,125)">div</span>></div><div><!-- Page 7 --></div><div><<span style="color:rgb(215,186,125)">a</span> name="7"></<span style="color:rgb(215,186,125)">a</span>></div><div><<span style="color:rgb(215,186,125)">style</span> type="text/css"></div><div><!--</div><div>    <span style="color:rgb(215,186,125)">p</span> {<span style="color:rgb(156,220,254)">margin</span>: <span style="color:rgb(181,206,168)">0</span>; <span style="color:rgb(156,220,254)">padding</span>: <span style="color:rgb(181,206,168)">0</span>;}  <span style="color:rgb(215,186,125)">.ft722</span>{<span style="color:rgb(156,220,254)">font-size</span>:<span style="color:rgb(181,206,168)">15px</span>;<span style="color:rgb(156,220,254)">font-family</span>:<span style="color:rgb(206,145,120)">Helvetica</span>;<span style="color:rgb(156,220,254)">color</span>:<span style="color:rgb(206,145,120)">#000000</span>;}</div><div>--></div><div></<span style="color:rgb(215,186,125)">style</span>></div><div><<span style="color:rgb(215,186,125)">div</span> id="<span style="color:rgb(86,156,214)">page7-div</span>" style="position:relative;width:918px;height:1188px;"></div><div><<span style="color:rgb(215,186,125)">img</span> width="918" height="1188" src="SEP272019_02A6245007.png" alt="background image"/></div><div></<span style="color:rgb(215,186,125)">div</span>></div><div><!-- Page 8 --></div><div><<span style="color:rgb(215,186,125)">a</span> name="8"></<span style="color:rgb(215,186,125)">a</span>></div><div><<span style="color:rgb(215,186,125)">style</span> type="text/css"></div><div><!--</div><div>    <span style="color:rgb(215,186,125)">p</span> {<span style="color:rgb(156,220,254)">margin</span>: <span style="color:rgb(181,206,168)">0</span>; <span style="color:rgb(156,220,254)">padding</span>: <span style="color:rgb(181,206,168)">0</span>;}  <span style="color:rgb(215,186,125)">.ft823</span>{<span style="color:rgb(156,220,254)">font-size</span>:<span style="color:rgb(181,206,168)">28px</span>;<span style="color:rgb(156,220,254)">font-family</span>:<span style="color:rgb(206,145,120)">Helvetica</span>;<span style="color:rgb(156,220,254)">color</span>:<span style="color:rgb(206,145,120)">#000000</span>;}</div><div>    <span style="color:rgb(215,186,125)">.ft824</span>{<span style="color:rgb(156,220,254)">font-size</span>:<span style="color:rgb(181,206,168)">72px</span>;<span style="color:rgb(156,220,254)">font-family</span>:<span style="color:rgb(206,145,120)">Helvetica</span>;<span style="color:rgb(156,220,254)">color</span>:<span style="color:rgb(206,145,120)">#000000</span>;}</div><div>--></div><div></<span style="color:rgb(215,186,125)">style</span>></div><div><<span style="color:rgb(215,186,125)">div</span> id="<span style="color:rgb(86,156,214)">page8-div</span>" style="position:relative;width:918px;height:1188px;"></div><div><<span style="color:rgb(215,186,125)">img</span> width="918" height="1188" src="SEP272019_02A6245008.png" alt="background image"/></div><div></<span style="color:rgb(215,186,125)">div</span>></div><div><!-- Page 9 --></div><div><<span style="color:rgb(215,186,125)">a</span> name="9"></<span style="color:rgb(215,186,125)">a</span>></div><div><<span style="color:rgb(215,186,125)">style</span> type="text/css"></div><div><!--</div><div>    <span style="color:rgb(215,186,125)">p</span> {<span style="color:rgb(156,220,254)">margin</span>: <span style="color:rgb(181,206,168)">0</span>; <span style="color:rgb(156,220,254)">padding</span>: <span style="color:rgb(181,206,168)">0</span>;}--></div><div></<span style="color:rgb(215,186,125)">style</span>></div><div><<span style="color:rgb(215,186,125)">div</span> id="<span style="color:rgb(86,156,214)">page9-div</span>" style="position:relative;width:918px;height:1188px;"></div><div><<span style="color:rgb(215,186,125)">img</span> width="918" height="1188" src="SEP272019_02A6245009.png" alt="background image"/></div><div></<span style="color:rgb(215,186,125)">div</span>></div></div><br>What triggers this behavior? I was hoping that it would try to convert the PDFs to a HTML file with text in tags but it just converts them into images and links them in the output html file.</div><div><br></div><div>I am not allowed to share the PDF files since they are legal documents. </div><div><br></div><div>Regards,</div><div>Fred. </div></div>