On Mon, 2002-11-11 at 19:30, [EMAIL PROTECTED] wrote: > Log: > Fixed problem with jpegs with icc profile and acrobat reader 5 (Bug #11301) > Submitted by: Stephan Neuhaus <[EMAIL PROTECTED]>
I tried this change with the trunk code and I get an exception "java.lang.IllegalArgumentException: Invalid ICC Profile Data". The trunk code uses the java ICC profile to load and store the data. Even though it eventually simply gets the original data to write into the pdf document. So does anyone know what should be done? Should it be written out differently, or simply avoid the java ICC stuff? > --- JpegImage.java 2 Dec 2001 22:17:29 -0000 1.1.2.1 > +++ JpegImage.java 11 Nov 2002 18:30:15 -0000 1.1.2.2 > @@ -124,11 +124,7 @@ > int chunkSize = calcBytes(this.m_bitmaps[index + 2], > this.m_bitmaps[index + 3]) >+ 2; > > - if (iccStream.size() == 0) > - iccStream.write(this.m_bitmaps, index+18, >chunkSize - 20); > - else > - iccStream.write(this.m_bitmaps, index+16, >chunkSize - 18); // eller 18.. > - > + iccStream.write(this.m_bitmaps, index+16, chunkSize - >18); // eller 18.. > } > > index += calcBytes(this.m_bitmaps[index + 2], --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]