PDF to HTML
Best-effort pdf to html, from extracted text and a heading/list heuristic.
Runs on your device. The file is never uploaded.
PDF to HTML pushes the extracted text through pandoc's markdown reader with raw_html, raw_tex and smart switched off. That keeps page text inert and leaves quotes and hyphens exactly as they were drawn. The preview and the downloaded .html carry identical bytes. You get body markup only, with no doctype, head or stylesheet.
Questions
Is my PDF uploaded to make the HTML?
No. pdf.js extracts the text in a Web Worker on your device, and pandoc compiled to WebAssembly converts it to HTML in that same worker. No request goes out, no copy is kept, and the whole thing works offline after your first visit to the site.
Do I get a complete web page?
No, you get body markup. Pandoc is called with only a source and a target format, with no standalone option, so there is no doctype, no head, no title and no stylesheet. Paste the result into a page of your own, or into a CMS field that expects HTML fragments.
Might a PDF smuggle a script into the HTML I open?
No, and that is deliberate, because the file came from someone else. Two layers stop it. The extractor backslash-escapes every character Markdown gives meaning to, and the reader is then configured with raw_html and raw_tex both switched off. A page drawing the literal text of a script tag can only ever come out as inert escaped characters.
Why are my quotes and dashes not being prettified?
Because the smart extension is switched off on purpose. With it on, pandoc rewrites the document's own text: two hyphens become an en dash and straight quotes become curly ones. That silently changes what the page said, so this tool leaves the characters exactly as they were drawn.
What does "no extractable text found in this PDF" mean?
It means pdf.js found no text objects to work from. Scanned documents are the usual cause, since they contain page images rather than characters. Run PDF OCR to add a text layer first, then convert the OCR output here. The conversion stops at that point rather than writing you an empty HTML file.
What is the file called and can I see it first?
It is your PDF name with .html in place of .pdf, and yes: the HTML is shown on the page as a preview of exactly the same bytes that get written to the file. Nothing differs between what you read and what you download. Your original PDF is not modified.