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

Tilman Hausherr commented on PDFBOX-2310:
-----------------------------------------

{quote}
Either way, we should try and figure out what's causing ExtractImages to 
consume more memory than PDFToImage.
{quote}
because the PDF has more resources per page than it actually uses. According to 
PDFDebugger it has tons of global resources, but also tons of per-page 
resources.

So PDFToImage will only create the BufferedImages it needs for a specific page. 
ExtractImages will create a BufferedImage for each image resource that exists.

> codeToGID NPE
> -------------
>
>                 Key: PDFBOX-2310
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2310
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>            Assignee: John Hewson
>             Fix For: 2.0.0
>
>         Attachments: expected.pdf
>
>
> java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage 
> expected.pdf
> Exception in thread "main" java.lang.NullPointerException
>       at 
> org.apache.pdfbox.pdmodel.font.PDType0Font.codeToGID(PDType0Font.java:306)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to