Hi ,

I want to convert any image document to its corresponding PDF format , without using any third-party tool because most of them need to be purchased or on a trial basis. It would be very helpful if someone could post me the source code in C# for implementing that. Thanks in advance.

SNIP

In order to create a PDF from ASP.NET (C#,VB...) you need a third-party tool.
I recommend using ITextSharp, because it's very easy to use and it's free. http://sourceforge.net/projects/itextsharp/
ITextSharp has methods that basically does exactly what you are looking for.

Here's an example of how to do it:
http://www.atashbahar.com/post/Converting-Multipage-TIFF-image-to-PDF.aspx
Note that this example uses a TIFF image file, but you can probably use any image-object.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.