pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Czech, Christian" <c.cz...@elo.com>
Subject page.getResources() or page.finResources()
Date Wed, 03 Apr 2013 11:49:30 GMT
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:  c.czech@elo.com<mailto:c.czech@elo.com;>
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:image002.gif@01CE306F.B80EBDC0]  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

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message