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

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

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

        

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

Posted by "Maruan Sahyoun (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Andreas Lehmkühler (Resolved JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-1197.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0
         Assignee: Andreas Lehmkühler

I added the processing of XFormObjects in revision 1224747. I also fixed the calculation of the image position and size, see PDFBOX-585.

Thanks for the report!
                
> 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
>            Assignee: Andreas Lehmkühler
>              Labels: PrintImageLocations
>             Fix For: 1.7.0
>
>
> 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