Hi,
Am 03.04.2013 13:49, schrieb Czech, Christian:
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????
Most likely the resources used by a are linked to the very same page. But it is
possible to share resources by linking them to the document itself.
PDPage#getResources returns the resources of a page and PDPage#findResources
looks for some document based resources if the page doesn't have any.
HTH
BR
Andreas Lehmkühler
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>
--------------------------------------------------------------------------------
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