Dear All,
To be brief, have drag and drop leading into a pdf to jpg converter. It was working, now stopped.
My thoughts are either;
1) something stuck in computer memory I can not erase (it is calling a pdf with more that allotted pages)
2) I may have a counting error, trying to print some page not there.
I tried throwing in pdf with successively larger page numbers and same error.
Please let me know your thoughts on where to narrow down the error.
The next few lines of where the error starts is below.
I use BlueJ as IDE. Have MtContainer as main, calling FileDrop and MLabel.
Thank you.
**
Nov 07, 2014 5:41:19 PM org.apache.pdfbox.util.PDFImageWriter writeImage
INFO: Writing: photos\/out24.jpg
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:331)
at MyContainer.buildDisplayer(MyContainer.java:152)
at MyContainer$1.filesDropped(MyContainer.java:74)
at FileDrop$1.drop(FileDrop.java:325)
at java.awt.dnd.DropTarget.drop(DropTarget.java:450)
**