On 30.04.2009 01:46:31 Daniel Wilson wrote:
> OK, I'm changing over to 4 spaces.  You're right, SCite has that option.
> 
> I'm trying to run ant checkstyle, but am getting a
> UnsupportedClassVersionError.  I think this is b/c I'm running jdk 1.4 --
> which I'm doing to ensure I do not accidentally introduce something
> supported only in newer versions of Java.
> 
> Do you have suggestions on this?

I've configured Checkstyle in Eclipse which is running Java 6 but PDFBox
is configured to compile with Java 1.4, so I don't have that problem.

I think you can also just run Checkstyle from Ant with Java >1.4 but
compile with Java 1.4. I've set up some scripts that let me switch JDKs
easily by changing the JAVA_HOME env variable.

> >> I read this as only relevant if you are using DataBuffer.TYPE_BYTE (for
> example) and per component less than 8 bits are used.
> 
> Which is exactly what we're dealing with.

Not in the case I've cited: PDICCBased. It uses ComponentColorModel, not
IndexColorModel. We have to keep "components" apart from "samples". When
an XObject uses an /ICCBased color space it usually (!) has 8 bits per
components and n components. But an XObject could also use a /Indexed
color space with an /ICCBased color space as base in which case PDFBox
would have to build an IndexColorModel-like instance that is based on an
arbitrary ICC_ColorSpace (rather than sRGB).

This gets confusing. Maybe we need to take a concrete PDF as example and
discuss it.

> Is there a better way to initialize the array?  Providing it with the number
> of elements it needs?
> 
> Thanks.
> 
> Daniel Wilson
<snip/>


Jeremias Maerki

Reply via email to