DEV Community

Cover image for Convert a PDF document to HTML using C#
Atir Tahir
Atir Tahir

Posted on • Originally published at blog.groupdocs.com

2 1

Convert a PDF document to HTML using C#

Using GroupDocs.Conversion for .NET, it is possible to convert any PDF document to HTML file in C#. Conversion process or feature is not limited to PDF files only. You can convert any supported file format to HTML.
GroupDocs.Conversion for .NET is a back-end API that can be integrated in any (new or existing) .NET application.

Implementation

This API can convert any source document to a markup format which in general is a HTML conformable format.

using (Converter converter = new Converter("sample.pdf"))
{
MarkupConvertOptions options = new MarkupConvertOptions();
converter.Convert("converted.html", options);
}

You can see that sample PDF has some visuals and text. And the resultant HTML covers everything.
Alt Text
Visit blog for release and features related updates.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay