You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Resolved JIRA)" <ji...@apache.org> on 2011/12/26 17:14:31 UTC
[jira] [Resolved] (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: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