I’m putting a PDF guide on my website, but I want visitors to read it as a proper HTML page rather than download it. How can I preserve the layout and links cleanly?
The simplest thing to check first is exporting it to HTML directly through Acrobat or Word. Honestly though, PDF to HTML usually creates pretty messy code, so you will probly have to clean up the styling manually if you want it responsive.
The annoying part is that PDF is fixed-layout, so a clean, responsive HTML version cannot always preserve it exactly. If you have the original Word, InDesign, or similar file, export that directly to HTML; otherwise try Adobe Acrobat’s Export to HTML or pdftohtml, then inspect the result and verify links manually. For complex guides, I would keep the PDF as a download and create a simplified HTML version for reading.
Tried this with some expense PDFs last year and learned the hard way that free converters mess up the links. Opening in Acrobat and exporting as HTML kept the layout better for me tbh. What device are you working on?
Yeah, this one’s annoying because PDFs just aren’t built to reflow like web pages. First thing I’d try is saving a copy, then opening the PDF in a word processor like Google Docs or Word to export as HTML, that usually keeps links intact even if formatting shifts a bit. Complex layouts with columns or tables rarely survive the jump, so expect to clean up the CSS manually after.
When I had to put our staff handbook on our portal, I opened the PDF in Microsoft Word and saved it as a Web Page file. It kept most of the layout and all the clickable links, though I had to adjust a few images manually afterwards.
@samantha_87 Word is decent, but I learned the hard way that its exported HTML code is a total mess to maintain. Now I rebuild pages directly in my web builder so my design proofs and layouts look crisp on mobile.
@clumsy_goblin yeah, i had the same mess with our intake forms last year. opening the pdf in google docs first gave me cleaner text to drop on the page, then i fixed the styling by hand. links held up fine that way.
If you still have the original Word or Google Docs file, use that rather than converting the PDF. I usually paste the content into the website editor, rebuild headings and images, then check each link manually. Word can open many PDFs, but columns and text boxes often come across badly. For a responsive, accessible page, recreating the layout in your site’s HTML is usually the cleanest option.
Check first whether the text is selectable. A scanned guide will only export as images. Back up the original, then use a converter that outputs reflowable HTML instead of absolute-positioned divs, or your links and text wrapping will break on smaller screens.
i learned this the hard way when trying to post client reports online. definitly use adobe acrobat’s ‘export to html web page’ feature because it usually keeps your links and structure intact. just avoid the random free online converters, they tend to scramble your layout into a giant mess of broken text.
I run that through PDFcap myself.
- Upload the PDF and choose the HTML export.
- Download the result and click through it to confirm the links survived.
- Paste the HTML into a page on your site or upload the file as is.
tbh it keeps the layout well unless your PDF is mostly scanned images, those never convert cleanly.