A PDF is a poor source for a web page: fixed positions, embedded fonts and no reflow. This tool reads the text layer and rebuilds it as a simple HTML document with headings, paragraphs and a small style block, so the words can be dropped into a site, a help centre or an email template.
The output is extracted-page.html, a single self-contained file. There are no scripts, no external stylesheets and no image references, so it opens the same way offline as it does on a server.
What the markup looks like
The page title comes from the file name, and each PDF page becomes a second-level heading when page headings are on. Text blocks become paragraphs:
- One
<h1>with the document name. - One
<h2>per page, such as Page 1. - One
<p>per block of text, separate from the next by a blank line.
Lines that belong to the same paragraph in the PDF are joined into one paragraph, which is why the result reads better than a straight copy of the text file. Tables are not rebuilt: the rows arrive as part of a paragraph, with the cells separated by spaces.
A worked example
A five-page report produced Built an HTML document from 5 pages and a 2,125-byte file with 10 paragraphs. The first paragraph joined three PDF lines into one sentence group: the title, the company and the date. The cost table on page 2 arrived as a paragraph, not a table, and the landscape plan page arrived as two paragraphs of plain sentences.
The page carried the usual boilerplate: UTF-8 declared, a viewport meta tag, the document name as the title, and a Georgia-serif style block with a 46rem reading width and a print rule that removes the margin when printed.
What is left behind
Images are not included. Neither are logos, charts, background colours, columns, footnotes placed outside the text flow, or any exact spacing. Links inside the PDF are not carried over either, so a URL mentioned as link text survives as words but not as a clickable link.
That makes the output a reading version, not a faithful copy. For a page where the design matters, export the page as an image with PDF to Image and place that image in your own markup.
What to check before publishing
The <h1> is the file name, not the document's real title, so rename the file before converting or change the heading afterwards. Page headings are handy while editing but usually wrong on a live page: turn them off, or delete the <h2> lines, so readers do not see Page 3 in the middle of an article.
Check the first and last paragraph of every page. If a page has two columns, the reading order may jump between them, and that is the one defect worth fixing by hand before the text goes live.
Limits
One PDF of up to 120 MB per run, and the file must have a text layer. A scan returns the same message as the text tool: no selectable text was found, and OCR is needed first.
For an editable Word file, use PDF to Word. For plain text, use PDF to Text. For a PDF made from HTML rather than the other way round, use HTML to PDF.