This VB.NET code shows how to load a Multipage TIF (4 pages) and save it into 4 separate JPEG files.
'Load the image
img = codecs.Load(Application.StartupPath + "\..\combined.TIF", 0, CodecsLoadByteOrder.BgrOrGray, 1, 4)
'Save each page as a separate file. You might prefer to do a loop, but for the sake of example,
'I've hard coded it.
codecs.Save(img, Application.StartupPath + "\..\1.jpg", RasterImageFormat.Jpeg, 24, 1, 1, 1, CodecsSavePageMode.Overwrite)
codecs.Save(img, Application.StartupPath + "\..\2.jpg", RasterImageFormat.Jpeg, 24, 2, 2, 1, CodecsSavePageMode.Overwrite)
codecs.Save(img, Application.StartupPath + "\..\3.jpg", RasterImageFormat.Jpeg, 24, 3, 3, 1, CodecsSavePageMode.Overwrite)
codecs.Save(img, Application.StartupPath + "\..\4.jpg", RasterImageFormat.Jpeg, 24, 4, 4, 1, CodecsSavePageMode.Overwrite)
If you want to save all the pages of a file to a single PDF, you would use this line of code:
codecs.Save(img, Application.StartupPath + "\..\combinedOUT.pdf", RasterImageFormat.RasPdf, 24, 1, 4, 1, CodecsSavePageMode.Overwrite)