Andreas,

I strongly recommend you the examples, that can be found at:
http://svn.apache.org/repos/asf/pdfbox/trunk/src/main/java/org/apache/pdfbox/examples/

To answer your question, here is a little snippet:

//Load Document:
document = PDDocument.load( args[0] );

//Walk through all pages
List pages = document.getDocumentCatalog().getAllPages();
Iterator iter = pages.iterator();

while( iter.hasNext() ) {
        PDPage page = (PDPage)iter.next();
        // Get page resources
        PDResources resources = page.getResources();
        // Get all Images from the resources
        Map images = resources.getImages();
        if( images != null ) {
                Iterator imageIter = images.keySet().iterator();
                while( imageIter.hasNext() ) {
                        String key = (String)imageIter.next();
                        // The image
                        PDXObjectImage image = (PDXObjectImage)images.get(key);
                }
        }
}


Cheers,
Erik


Roeder, Andreas wrote:
Erik,

I mean any graphics, no special type.

Best Regards,

Andreas

-----Ursprüngliche Nachricht-----
Von: Erik Scholtz, ArgonSoft GmbH [mailto:[email protected]] Gesendet: Montag, 1. Februar 2010 11:27
An: [email protected]
Betreff: Re: How to find out if the PDF contains embedded logos?


Andreas,

what do you mean by "embedded logos"? Are you thinking of any graphics, or of graphics of a special type?

Cheers,
Erik

Roeder, Andreas wrote:
Hello,

How can I find out if a PDF contains embedded logos?

Best Regards,

Andreas


Reply via email to