Get the image information for all the raster images.




IList<ImageProperties> GetImageProperties()
[Visual Basic]
Function GetImageProperties() As IList<ImageProperties>

Throws Exceptions may throw Exception()



Name Description
Return A collection of all the image properties..




Get the image information for all the raster images. If the PageContents is null then an exception will be raised.

After retrieving image properties you can iterate through them to find out information about what images there are and how they are placed in the document. Much like HTML, PDF allows a divorce between the image and the placement of that image. So you may have one PixMap which is drawn multiple times at multiple sizes in different locations within the document.




Here we highlight a set of images in a source document by drawing a red rectangle around each one.


string theSrc = Server.MapPath("mypics/Acrobat.pdf"); string theDst = Server.MapPath("HighlightedImages.pdf"); using (Doc doc = new Doc()) {   doc.Read(theSrc);   doc.Color.SetRgb(255, 0, 0);   doc.Width = 0.1;   ImageOperation op = new ImageOperation(doc);   op.PageContents.AddPages();   IList<ImageProperties> images = op.GetImageProperties();   foreach (ImageProperties pl in images) {     foreach (ImageRendition plc in pl.Renditions) {       plc.Focus();       doc.FrameRect();     }   }   doc.Save(theDst); }