PrintImageLocations does not print information of all images
------------------------------------------------------------

                 Key: PDFBOX-1197
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1197
             Project: PDFBox
          Issue Type: Bug
         Environment: Windows XP version 2002, service pack 3, Inte;(R) 
Pentium(R) 4 CPU, 3.00GHz, 2.99 GHz, 1.99 GB of RAM, 
            Reporter: sagar pise


Hi,
PrintImageLocations does not print information of all images.
However I am able to extract all images using "ExtractImages.java"
Following is my initial analysis:
In processResources method of ExtractImages.java, source code is present as 
given below
if( xobjects != null )
{
            Iterator<String> xobjectIter = xobjects.keySet().iterator();
            while( xobjectIter.hasNext() )
            {
                  ----
                  ----
                  if (xobject instanceof PDXObjectImage)
                  {
                        ----
                        ----
                  }
                  else if (xobject instanceof PDXObjectForm)
                  {
                    PDXObjectForm xObjectForm = (PDXObjectForm)xobject;
                    PDResources formResources = xObjectForm.getResources();
                    processResources(formResources, prefix, addKey);
                  }
            }
}
My PDF contains some images which are of type PDXObjectForm.
I am not able to get information of all those images (of type PDXObjectForm) 
using PrintImageLocations.java
In processOperator  method of PrintImageLocations.java, there is no "else"  
statement for images of type PDXObjectForm. Is this problem?
Kindly help and suggest how to fix this.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to