> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/reusable-content/shared/shared-html-to-pdf.md).

# shared/html-to-pdf

Depending on your use case, PDF to HTML can be used for rendering with high fidelity and accuracy or to primarily be used in content extraction. This means our tools can help you to display the output or be used in data analysis workflows.

Here are the different options for PDF to HTML conversion depending on your requirements:

#### PDF to HTML for the highest rendering accuracy

Here are the options for maintaining the original PDF layout and visual accuracy.

[WebViewer](/web/what-is-webviewer/overview.md) To convert PDF to HTML canvas in real-time client-side.

[PDF to HTML/ePub](/core/conversion/convert-pdf.md) To convert PDF to fixed layout HTML/ePub where one PDF page becomes one HTML file.

[PDF2SVG](/core/conversion/convert-pdf.md) To convert PDF to SVG to create a vector based image that can be embedded in an HTML file.

[PDF2Image](/core/create/thumbnail.md) To convert PDF to Image (PNG, JPG, TIFF, Raw) to create a raster based image that can be embedded in an HTML file.

#### PDF to HTML for extracting semantic content

Here are the options for extracting semantic content from the output.

[PDF2HTML](/cli/pdf2html/pdf2html.md) To convert PDF to a single HTML file that preserves the PDF content using a custom heuristic method.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.apryse.com/reusable-content/shared/shared-html-to-pdf.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
