HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] a simple way to reproduce formfeed problem. How to fix ?



----- Original Message -----
From: "Glenn Burkhardt" <glenn@aoi-industries.com>
To: "Vu Pham" <vu@sivell.com>; <hylafax-users@hylafax.org>
Sent: Monday, October 14, 2002 9:41 PM
Subject: Re: [hylafax-users] a simple way to reproduce formfeed 
problem. How
to fix ?


> On Monday 14 October 2002 06:17 pm, Vu Pham wrote:
> > Hi all,
> >
> > It's me again. The followings are the simple steps to reproduce my
problem
> > with formfeed.
> >
> > 1. I use vi to create a file test.txt  with 60 empty lines ( just
pressing
> > Enter 60 times ).
> >
> > 2. At line 57, add Control-L, then save this file
> >
> > 3. Create the output postscript psfile from test.txt
> > # /usr/sbin/textfmt -B -f Courier-Bold -Ml=0.4 -p 11 -s default > 
psfile
<
> > test.txt
>
> This is a bug in the 'textfmt' program.  The problem is that it 
produces
end
> of page code without producing start of page code.
>
> The Postscript code for a page looks like:
> 
--------------------------------------------------------------------------
----------------------------
> %%Page: "1" 1
> save $printdict begin
>
> ... other stuff to print text
>
> showpage
> end restore
> 
--------------------------------------------------------------------------
----------------------------
>
> But for the case that you've produced, the Postscript code that's
generated
> is:
> 
--------------------------------------------------------------------------
----------------------------
> %%Page: "1" 1
> save $printdict begin
>
> ... other stuff to print text
>
> showpage
> end restore
>
> showpage
> end restore
> 
--------------------------------------------------------------------------
----------------------------
>
> So there's a begin without an end.
>
> You can try the attached patch - textfmt won't produce the bad code 
with
it.
> But I can't guarantee there won't be some other problem - I have to 
look
at
> the code a bit more - I've not seen the insides of TextFmt.c++ 
before, and
> it's bed time now.
>
>

Hi Glenn,

Thank you very much. It works now.

Vu



____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*




Project hosted by iFAX Solutions