Dear Sirs,

I have downloaded your API and find it a wonderful thing! Thank you for the hard work, you have made my life a lot easier.

I have discovered that the version I downloaded does not like my linux server. The reason being that it is very strict about casting chars to bytes.

Example:
    static final byte endobj[] = {'e','n','d','o','b','j'};
   
    // the code above throws a compiler error because you need to explicitly cast to a byte!
   
    static final byte endobj[] = {(byte)'e',(byte)'n',(byte)'d',(byte)'o',(byte)'b',(byte)'j'};
   
    // the above code compiles and runs just fine under all OS and VM!


Files with these errors are:
  1. com.lowagie.text.pdf.PdfReader.java
  2. com.lowagie.text.pdf.PdfEncodings.java
  3. com.lowagie.text.pdf.ByteBuffer

Thank you again for your time and effort!

John Bryant

Reply via email to