You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (Commented) (JIRA)" <ji...@apache.org> on 2011/12/26 11:19:30 UTC

[jira] [Commented] (PDFBOX-1197) PrintImageLocations does not print information of all images

    [ https://issues.apache.org/jira/browse/PDFBOX-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175920#comment-13175920 ] 

Maruan Sahyoun commented on PDFBOX-1197:
----------------------------------------

Hi,

is it possible to attach a sample PDF?

Kind regards

Maruan
                
> 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
>              Labels: and, image, images, information, print
>
> 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