[
https://issues.apache.org/jira/browse/PDFBOX-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756171#comment-13756171
]
Christian Czech commented on PDFBOX-1712:
-----------------------------------------
Hi Andreas,
ok, here is my code:
document = PDDocument.load(input);
List pages = document.getDocumentCatalog().getAllPages();
Iterator iterator = pages.iterator();
while( iterator.hasNext() ) {
PDPage page = (PDPage)iterator.next();
PDResources resources = page.getResources();
Map<String, PDXObject> xobjects = resources.getXObjects();
if (xobjects != null) {
Iterator<String> xobjectIter = xobjects.keySet().iterator();
while (xobjectIter.hasNext()) {
String key = xobjectIter.next();
PDXObject xobject = xobjects.get(key);
if (xobject instanceof PDXObjectImage) {
.....
}
}
}
}
In 218ce.pdf I can't find the documents images. Why?
Thanks
> Images Extraction
> -----------------
>
> Key: PDFBOX-1712
> URL: https://issues.apache.org/jira/browse/PDFBOX-1712
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.8.2
> Environment: Windows 7, Java SE Runtime Environment build
> 1.7.0_17-b02 64-Bit Server VM
> Reporter: Christian Czech
> Attachments: 218ce.pdf, 219cf.pdf
>
>
> Hi,
> it seems I have 2 identical PDF Documents. But I can't extract images from
> both.
> Can you help me?
> Thanks
> Christian
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira