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("Acrobat.pdf");
string theDst = Server.MapPath("HighlightedImages.pdf");
using (Doc theDoc = new Doc()) {
  theDoc.Color.SetRgb(255, 0, 0);
  theDoc.Width = 0.1;
  ImageOperation op = new ImageOperation(theDoc);
  IList<ImageProperties> images = op.GetImageProperties();
  foreach (ImageProperties pl in images) {
    foreach (ImageRendition plc in pl.Renditions) {

[Visual Basic]
Dim theSrc As String = Server.MapPath("Acrobat.pdf")
Dim theDst As String = Server.MapPath("HighlightedImages.pdf")
Using theDoc As New Doc()
  theDoc.Color.SetRgb(255, 0, 0)
  theDoc.Width = 0.1
  Dim op As New ImageOperation(theDoc)
  Dim images As IList(Of ImageProperties) = op.GetImageProperties()
  For Each pl As ImageProperties In images
    For Each plc As ImageRendition In pl.Renditions
End Using