Supported File Formats

Aspose.HTML for .NET supports HTML-related source formats and fixed-layout or image output formats for document processing, rendering, and conversion workflows. Use this page to check whether a format can be loaded as input, saved as output, or both.

The table below indicates the input and output file formats supported by Aspose.HTML for .NET.

FormatDescriptionInputOutput
HTMLHyperText Markup Language formatticktick
XHTMLeXtensible HyperText Markup Language formatticktick
MHTMLMIME HTML formatticktick
EPUBE-book file formattick
SVGScalable Vector Graphics formatticktick
MDMarkdown markup language formatticktick
PDFPortable Document Formattick
XPSXML Paper Specification formattick
TIFFTagged Image File Formattick
JPEGJoint Photographic Experts Group formattick
PNGPortable Network Graphics formattick
BMPBitmap Picture formattick
GIFGraphics Interchange Formattick

How to Read the Format Table

Formats marked as Input can be loaded or used as source documents in Aspose.HTML for .NET workflows. Formats marked as Output can be saved or produced during conversion. Some formats, such as HTML, XHTML, MHTML, SVG, and Markdown, can be both input and output formats.

EPUB is listed as an input format because Aspose.HTML for .NET can load EPUB documents and convert them to supported output formats. PDF, XPS, and raster image formats are listed as output formats because they are typical rendering targets for HTML-related source documents.

For practical conversion examples, see Converting Between Formats, HTML Converter, SVG Converter, MHTML Converter, EPUB Converter, and Markdown Converter.

Choosing an Output Format

Output needRecommended format
Shareable document with stable layoutPDF
Print-oriented or fixed-layout document workflowXPS
Microsoft Word editing workflowDOCX
Web image with transparencyPNG
Photo-like image output with smaller file sizeJPEG
Multi-page or archival raster outputTIFF
Simple raster image outputBMP or GIF
HTML-family output after processingHTML, XHTML, MHTML, SVG, or MD

Common Format Selection Issues

IssueCauseFix
EPUB is expected as an output formatEPUB is supported as an input format in this table, not as an output target.Load EPUB as source and convert it to supported output formats such as PDF, XPS, DOCX, or images.
PDF is expected as an input formatPDF is listed as an output format for Aspose.HTML for .NET conversion workflows.Use HTML-related source formats such as HTML, XHTML, SVG, MHTML, EPUB, or Markdown when working with this API.
Image output has missing text on Linux or DockerRaster output depends on fonts available in the runtime environment.Install required fonts and font configuration packages. See Linux Docker Fonts for HTML to Image.
JPG output loses transparencyJPEG does not support transparency.Use PNG when transparent background or alpha channel support is required.
The chosen output is hard to edit laterFixed-layout and raster formats are designed for stable rendering, not semantic editing.Use DOCX or HTML-family output when the next workflow requires editing content.

FAQ

Which source formats can Aspose.HTML for .NET load?

Aspose.HTML for .NET can load HTML, XHTML, MHTML, EPUB, SVG, and Markdown source documents for supported processing and conversion workflows.

Which output formats can Aspose.HTML for .NET create?

Aspose.HTML for .NET can create HTML, XHTML, MHTML, SVG, Markdown, PDF, XPS, DOCX, TIFF, JPEG, PNG, BMP, and GIF output depending on the conversion workflow and save options used.

Can Aspose.HTML for .NET convert EPUB files?

Yes. EPUB is supported as an input format. You can convert EPUB documents to supported output formats such as PDF, XPS, DOCX, and image formats.

Can Aspose.HTML for .NET convert documents to PDF?

Yes. PDF is supported as an output format. See HTML to PDF, SVG to PDF, MHTML to PDF, and EPUB to PDF for examples.

Where can I find format-specific examples?

Start with the Converting Between Formats hub, then open the converter section for the source format you need.