
“A picture is worth a thousand words.” A single image can convey information more efficiently than text. Common image formats such as JPEG, PNG, BMP, GIF, and TIFF are used daily. When you need to share many images, bundling them into a single PDF is ideal because PDF preserves layout across devices, operating systems, and applications. This article explains how to convert images to PDF using the Conholdate.Total for .NET APIs.
Before we continue, note the differences between Conholdate.Total for .NET and Aspose.Total for .NET.
Aspose.Total for .NET provides APIs for creating, manipulating, and converting over 100 file formats, including Word, Excel, PDF, PowerPoint, Outlook, Diagram, and MS Project.
Conholdate.Total for .NET includes Aspose.Total for .NET and adds GroupDocs.Total for .NET, offering extra features such as viewing, converting, annotating, comparing, signing, assembling, editing, searching, and parsing popular document formats. With this single package you can load files, manipulate them, and render output in formats like Load MS Word file and save into JPEG format.
In this article we will load a raster image file and save it as a PDF using C# .NET.
Convert Image to PDF in C#
The API provides robust support for MS Word formats (DOC, DOCX, RTF, DOT, DOTX, DOTM, DOCM), OpenOffice files (ODT, OTT), and many others. It enables developers to create, modify, render, convert, and print documents without Microsoft Word. Supported output formats include DOC, RTF, HTML, OpenDocument, PDF, XPS, EPUB, and more—making it suitable for image‑to‑PDF conversion.
To use the API, download the .dll or install via NuGet. Search for Aspose.Words and install, or run the following command in the Package Manager Console:
Install-Package Aspose.Words -Version 21.3.0
Follow these steps to convert an image to PDF:
C#.NET
- Create an instance of the Document class.
- Create a DocumentBuilder and pass the Document object.
- Use the InsertImage(…) method to add the source image.
- Call the Save method with the desired PDF file name.
Get a Free License
To use the API without limitations, request a Free temporary license.
Conclusion
We have demonstrated how to convert raster images to PDF using the Conholdate.Total for .NET library—an easy, enterprise‑ready solution.
Related articles
You may consider visiting following links for details on