Menu

#18 NullPointerException when opening PDF comic with CCITT image

Unscheduled
closed-fixed
2
2007-05-30
2005-08-07
No

When opening a PDF comic with images in CCITT fax
encoding, a NullPointerException ocurs.

This is a known issue in PDFBox. See
<http://sourceforge.net/forum/forum.php?thread_id=1259059&forum_id=267205>
for the current status.

An example PDF file to reproduce this can be downloaded
from
<http://archives2.bungie.org/manuals/Marathon_2_Manual.pdf>.
This is the manual to Marathon 2, which contains some
black and white scetches using CCITT.

Reproduced with: jomic = 0.9.13, java = 1.4.2_05,
platform = Mac OS X-10.3.9-ppc

java.lang.NullPointerException
at
org.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:135)
at
org.pdfbox.pdmodel.graphics.xobject.PDPixelMap.write2OutputStream(PDPixelMap.java:153)
at
org.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file(PDXObjectImage.java:117)
at
net.sf.jomic.tools.FileArchive.extractPdf(FileArchive.java:375)
at
net.sf.jomic.tools.FileArchive.extract(FileArchive.java:242)
at
net.sf.jomic.comic.ComicModel.extractImages(ComicModel.java:255)
at
net.sf.jomic.comic.ComicModel.<init>(ComicModel.java:141)
at
net.sf.jomic.ui.JomicFrame$OpenWorker.construct(JomicFrame.java:1132)
at
net.sf.jomic.tools.SwingWorker$2.run(SwingWorker.java:35)
at java.lang.Thread.run(Thread.java:552)

Discussion

  • Thomas Aglassinger

    • summary: NullPointerException when open PDF comic with CCITT images --> NullPointerException when opening PDF comic with CCITT image
     
  • Thomas Aglassinger

    • milestone: --> Unscheduled
    • status: open --> open-postponed
     
  • Thomas Aglassinger

    Logged In: YES
    user_id=421066
    Originator: YES

    This has apparently been fixed a while ago, see PDFBox patch 1235260 (Add CCITT Fax Images): <https://sourceforge.net/tracker/index.php?func=detail&aid=1235260&group_id=78314&atid=552834>

    Upgrading to PDFBox 0.73 did the trick for Jomic 0.26, maybe earlier versions already worked too.

     
  • Thomas Aglassinger

    • assigned_to: nobody --> roskakori
    • status: open-postponed --> closed-fixed
     

Log in to post a comment.