ImageToPdfAPI is a .NET Core Web API service that allows users to convert various image and document formats to PDF. The API supports TIFF, DOCX, MSG, and other image formats like jpeg, png etc.
- Features
- Technologies-Used
- Prerequisites
- Installation-of-Nugget-Packages
- Setup-and-Usage
- Contributions
- Convert TIFF images to PDF.
- Convert DOCX images to PDF.
- Convert MSG files images to PDF.
- Supports other image formats like jpeg, png etc for conversion.
- C#
- ASP.NET Core
- Swashbuckle.AspNetCore
- PdfSharp library
- MsgReader
- Docx (by Xceed)
- BitMiracle.LibTiff.Net
Visual Studio,.NET SDK installed on your machine(.NET, .NET Core), Different types of Images(.tiff, .docx, .msg, .png, .jpeg), NuGet Package Manager.
Ensure the presence of the following NuGet packages in your project. If any of these packages are missing, install them using the Package Manager Console or Visual Studio NuGet Package Manager.
- PdfSharp library -> Install-Package PdfSharp
- MsgReader -> Install-Package MsgReader
- Docx (by Xceed) -> Install-Package Xceed.Words.NET
- BitMiracle.LibTiff.Net -> Install-Package BitMiracle.LibTiff.Net
-
Clone the repository:
git clone https://github.com/morabeeh/ImageToPdfAPI.git
-
Navigate to the Project Directory and open the Solution
-
Build and run the application on your ASP.NET Core environment
-
Check Whether Swagger is running perfectly with the localhost
-
Navigate to the /api/ImageToPdf/Convert and upload the Image and Execute.
-
Check the Response whether its a success or not
-
Locate the Downloaded Pdf location from the response and open Pdf from there.
Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.