Hi,

The method getImages() (class PDResources) returns the number of images from 
the page.
Sometimes the methode returns the number of images from the whole document. 
Why????

List pages = document.getDocumentCatalog().getAllPages();
Iterator iterator = pages.iterator();
while ( iterator.hasNext()) {
  PDPage page = (PDPage)iterator.next();
PDResources resources = page.getResources();
int numberOfImages = resources.getImages().size();
}


With kind regards

Mit freundlichen Grüßen

Christian Czech
Software-Entwicklung

ELO Digital Office GmbH
Heilbronner Str. 150, D-70191 Stuttgart
Tel.:      +49 (0) 711 806089-0
Fax:       +49 (0) 711 806089-39
E-Mail:  [email protected]<mailto:[email protected];>
Web:     www.elo.com<http://www.elo.com>

[ELOpress]<http://www.etracker.de/lnkcnt.php?et=9J3MuV&url=http://elo.com/wcm/de/service/elo-buecher&lnkname=email_press_de>
Alle ELO Bücher finden Sie 
hier<http://www.etracker.de/lnkcnt.php?et=9J3MuV&url=http://elo.com/wcm/de/service/elo-buecher&lnkname=email_press_de>
________________________________
[cid:[email protected]]  Please think before you print.


________________________________

ELO Digital Office GmbH
Firmensitz: Heilbronner Strasse 150, 70191 Stuttgart
Fon: +49 711 806089-0, Fax: +49 711 806089-19, Web: www.elo.com
Geschäftsführer: Karl Heinz Mosbach, Matthias Thiele
BW-Bank, Konto-Nr. 2089782, BLZ 600 501 01
Registergericht Stuttgart HRB 15059 - USt-IdNr.: DE812471516

Reply via email to