PageExtractImages Method
Extracts all images on this page.

Namespace:  TallComponents.PDF.Rasterizer
Assembly:  TallComponents.PDF.Rasterizer (in TallComponents.PDF.Rasterizer.dll) Version: 3.0.152.0
Syntax
public ExtractedImageInfo[] ExtractImages()

Return Value

Type: ExtractedImageInfo
Extracted images. Can be of zero length.
Examples
using ( FileStream file = new FileStream( 
   string.Format( @"in.pdf", fileName ), FileMode.Open, FileAccess.Read ) )
{
   Document document = new Document( new BinaryReader( file ) );
   for ( int pageIndex=0; pageIndex<document.Pages.Count; pageIndex++ )
   {
      Page page = document.Pages[ pageIndex ];
      ExtractedImageInfo[] images = page.<b>ExtractImages()</b>;
      for ( int imageIndex=0; null!=images && imageIndex<images.Length; imageIndex++ )
      {
         images[imageIndex].Bitmap.Save( 
            string.Format( @"..\..\out_{0}_{1}.bmp", pageIndex, imageIndex ) );
      }
   }
}
See Also