bug-a2ps
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] Fix to let a2ps handle FlateDecode from its delegates


From: Jason McCarty
Subject: [patch] Fix to let a2ps handle FlateDecode from its delegates
Date: Sat, 24 Aug 2002 19:34:26 -0400
User-agent: Mutt/1.4i

Hi,

I changed the ImageMagick settings in /etc/a2ps.cfg to output postscript
level 3, which seems to produce better output on my system. However, I
found that a2ps can't handle null zeroes in the output of its delegates,
which convert's PS3 output produces in the form of FlateDecode.

The problem is due to using a fgets()/fputs() loop, so lines containing
null zeroes get truncated.

I fixed src/delegate.c to handle zeroes correctly, so convert now works
through a2ps. If a2ps's library files contained binary data (such as PS3
images), then lib/{output.c, pathwalk.c, prolog.c} would need to be
changed similarly. I changed pathwalk.c since it was trivial, but I
didn't modify the other two, since I think they would have needed large
changes, and I guess a2ps doesn't have any binary library files ATM.

Please CC me on replies, as I'm not subscribed.

Thanks.

  Jason McCarty

Attachment: a2ps-4.13b.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]