[jbig2-dev] Multi-page sample document

Hartmut Henkel hartmut_henkel@gmx.de
Wed, 13 Nov 2002 21:48:56 +0100 (CET)


Thanks a lot, it's binarized with the awk-script below.

Greetings Hartmut


# use gawk --posix
BEGIN{v = "0123456789ABCDEF";}
/^[0-9A-F]{4}*:/ {
  for(i = 2; i <= NF; i++ ) {
    a1 = substr($i, 1, 1);
    a2 = substr($i, 2, 1);
    b = (index(v, a1) - 1) * 16 + index(v, a2) - 1;
    printf("%c", b);}}


On Wed, 13 Nov 2002, William Rucklidge wrote:

> The JBIG2 specification includes such a sample file, which attempts to
> explore as many coding options as possible.  Here it is, in hex (yeah,
> sorry, but this is extracted straight from the source of the
> specification):
>
> -wjr