Mark Hansohm created PDFBOX-1724:
------------------------------------
Summary: Method createColorModel not implemented for PDCalGray
Key: PDFBOX-1724
URL: https://issues.apache.org/jira/browse/PDFBOX-1724
Project: PDFBox
Issue Type: Bug
Affects Versions: 1.8.2
Reporter: Mark Hansohm
Priority: Minor
The method createColorModel is not implemented for the class PDCalGray - when
called, it throws an IOException(!):
{code}
/**
* Create a Java colorspace for this colorspace.
*
* @return A color space that can be used for Java AWT operations.
*
* @throws IOException If there is an error creating the color space.
*/
protected ColorSpace createColorSpace() throws IOException
{
throw new IOException( "Not implemented" );
}
{code}
The exception thrown is catched elsewhere (by an aspect?) but it leads to an
ugly stacktrace in the logfile .. :
{code}
2013-09-24 09:32:11,858 ERROR - PDPixelMap : java.io.IOException: Not
implemented
java.io.IOException: Not implemented
at
org.apache.pdfbox.pdmodel.graphics.color.PDCalGray.createColorModel(PDCalGray.java:114)
at ...
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:781)
....
{code}
--
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