Suresh,
I used this code to load each page of a multi-page tif file, add text to every page and save them to PDF.
//-----------------------------------------
RasterCodecs rasCodecs;
RasterImage rasImage;
RasterImageGdiPlusGraphicsContainer container;
RasterCodecs.Startup();
rasCodecs = new RasterCodecs();
string inputFile = @"C:\Temp\Multipage.tif";
CodecsImageInfo info;
info = rasCodecs.GetInformation(inputFile,true);
for (int i = 1; i <= info.TotalPages; i++ )
{
rasImage = rasCodecs.Load(inputFile, info.BitsPerPixel, CodecsLoadByteOrder.Bgr, i,i); //load input file
container = rasImage.CreateGdiPlusGraphics();
container.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.Default;
container.Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
Brush br = new System.Drawing.Drawing2D.LinearGradientBrush(Point.Empty, new Point(200, 200), Color.Yellow, Color.Green);
Font textFont = new Font(FontFamily.GenericSansSerif, 12);
PointF point = new PointF(100, 100);
container.Graphics.DrawString("Suresh Test", textFont, br, point);
rasCodecs.Save(rasImage, @"c:\Temp\Saved.pdf", RasterImageFormat.RasPdfLzw, info.BitsPerPixel,1,1,i,CodecsSavePageMode.Append);
}
RasterCodecs.Shutdown();
//-----------------------------------------
Please tell me if you face any problems