-
I've found the error. In the class PDF417HighLevelEncoder, at method encodeText you're always making by default that the actual mode for text is SUBMODE_ALPHA, but in case you've used a SHIFT_TO_BYTE in the previous coded data, you've lost what was your previous text mode.
Imagine you've the following case:
"HELLO"+SUBMODE_MIXED+"1234"+SHIFT_TO_BYTE+15+"HELLO"
text modifier.
2009-11-23 14:44:15 UTC by sucotronic
-
Now I've some time again, and I'm going to help you looking for the main problem.
2009-11-23 10:49:54 UTC by sucotronic
-
What about MimeTypes ?.
2009-11-20 12:43:16 UTC by nobody
-
image/x-bmp is only available with JAI,
but image/bmp is available without JAI.
Maybe it would be better to provide image/bmp by default.
They seems to be the same, but i dont know if it exists real differences.
have found this sources:
http://filext.com/file-extension/BMP
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5080883
http://msdn.microsoft.com/en-us/library/ms775147(VS.85).aspx...
2009-11-04 09:58:29 UTC by nobody
-
That's it, just a convenience.
I want to pass the fileExtension in parameter, and retrieve the mime type.
String mimeType = MimeTypes.expandFormat(fileExtensionFormat)
2009-11-04 08:36:16 UTC by nobody
-
But you realize that you can just specify "image/x-bmp" and you'll get a Windows BMP file? A mapping from "bmp" to "image/x-bmp" in MimeTypes would only be a convenience, not a blocker for generating BMP images. Or did I somehow misunderstand your feature request?.
2009-11-03 20:08:32 UTC by jmaerki
-
Hi
First read:
http://barcode4j.sourceforge.net/2.0/output-formats.html
BitmapEncoderRegistry.getSupportedMIMETypes() gives me this list:
image/x-png
(image/png)
image/jpeg
image/vnd.wap.wbmp
image/bmp
...and with the optional add of JAI:
image/x-portable-graymap
image/x-bmp
image/x-portable-pixmap
image/x-portable-anymap
image/jpeg2000
image/jp2
image/tiff...
2009-11-03 18:02:09 UTC by nobody
-
Steps to reproduce:
".,!!abc" is encoded as ".,!!'ü;"
Resolution:
In PDF417HighLevelEncoder, method encodeText, change control character for switch from SUBMODE_PUNCTUATION to SUBMODE_ALPHA from 28 to 29.
2009-09-24 15:00:59 UTC by nobody
-
What barcode are you trying to produce? I need a little more information to reproduce the problem. I'm not particularly looking forward to trying out a dozen cases until I hit the problem. Thanks.
2009-09-12 07:01:45 UTC by jmaerki
-
The generateBarcode(BitmapCanvasProvider, String) method throws a StringIndexOutOfBoundsException when the message passed in ends in a new line character, "\n". My example String is 131 characters long and ends with "0802\n", and the exception message is
java.lang.StringIndexOutOfBoundsException: String index out of range: 131
It looks to be an easily-fixed off by one error! Thanks!
2009-09-12 02:59:24 UTC by nobody