RE: How format to dot-matrix printers (ESC/P)

2002-03-21 Thread Art Welch

If all you need to do is set compressed mode and the TXTrenderer produces
acceptable output for you then you could open the output stream, send the
desired escape sequence then call FOP with the TXTRenderer passing it the
stream.

Another idea if you are using M$ Windows may be to use a different printer
driver. Windows used to have a plain text driver. If they still do (I just
checked on my Win2K workstation and they have "Generic/Text Only" in the
driver list), maybe Acrobat could print to this.

A Renderer for Epson printers would be interesting, although I suspect that
ESC/P2 would probably be more popular. Targeting Epson's popular color ink
jet printers vs. the dot matrix.

It would probably be better to start with the PCL renderer as a base for an
ESC/P renderer.

Art

-Original Message-
From: Clóvis Wichoski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 4:00 PM
To: [EMAIL PROTECTED]
Subject: RE: How format to dot-matrix printers (ESC/P)



I'm already using PDFs to print, but some dot-matrix printers are too 
slow to print graphics.

the question about chars, it is because I need print in condensed mode 
CHR(18) and 8 lines per inch CHR(27)+CHR(0)

the question about new Renderer it is because we can make a standard for 
print in ESC/P using FO also.

Would be interresting implement this?
Or 
Extend TXTRenderer to make this?

Clóvis
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 21/03/02, 16:08:40, Art Welch <[EMAIL PROTECTED]> wrote regarding RE: 
How format to dot-matrix printers (ESC/P):


> My first suggestion would be to use Acrobat or something to print the 
PDFs.

> Second (or maybe it should be first) would be to use the AWT based print
> renderer to print to the printer. I have not used this, but shouldn't AWT 
be
> able to print to any printer for which it has a suitable driver. Maybe 
this
> works better under M$ Windows. Most of my work these days is with Unix 
and
> until recently on our systems AWT did not work well and when it did I 
think
> that it would only print PostScript. YMMV.

> Next if the formatting is not very fancy then I would suggest generating 
the
> text/ESCP using just XSLT (with an extension function for the special
> characters).

> The TXTRenderer assumes that the font for output does not change. Last 
time
> I checked ESC/P printers should accept plain ASCII text without the need 
for
> additional control codes (other than CR,LF). This is what the TXTRenderer
> produces. The problem is that with the exception of some special cases, 
the
> output produced by the TXTRenderer is UGLY.

> As to CHR(18) and CHR(27), I guess that may depend on how the XML parser
> interprets "legal characters of Unicode and ISO/IEC 10646" (from the XML 
W3C
> Rec). Being below CHR(32) I suspect that they will probably be rejected 
as
> not a valid XML character.

> If you want pretty output and can not post process one of the current 
output
> formats then you are probably looking at a new renderer.

> Art

> -Original Message-
> From: Clóvis Wichoski [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 21, 2002 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: How format to dot-matrix printers (ESC/P)


> Hi FOP team,

> I'm using FOP for generating PDF's, but now I need use FOP to generate
> text files (txt) for dot-matrix printers using Epson ESC/P, and I have
> following questions:

> 1) I need create my own Renderer?
>  if yes, what I need to share this with FOP-DEV

> 2) Can I do this with TXTRenderer?
>  if yes, How put chars like CHR(27) CHR(18) in txt?

> Best regards

> Clóvis Wichoski
> Supridatta


> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: How format to dot-matrix printers (ESC/P)

2002-03-21 Thread Clóvis Wichoski


I'm already using PDFs to print, but some dot-matrix printers are too 
slow to print graphics.

the question about chars, it is because I need print in condensed mode 
CHR(18) and 8 lines per inch CHR(27)+CHR(0)

the question about new Renderer it is because we can make a standard for 
print in ESC/P using FO also.

Would be interresting implement this?
Or 
Extend TXTRenderer to make this?

Clóvis
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 21/03/02, 16:08:40, Art Welch <[EMAIL PROTECTED]> wrote regarding RE: 
How format to dot-matrix printers (ESC/P):


> My first suggestion would be to use Acrobat or something to print the 
PDFs.

> Second (or maybe it should be first) would be to use the AWT based print
> renderer to print to the printer. I have not used this, but shouldn't AWT 
be
> able to print to any printer for which it has a suitable driver. Maybe 
this
> works better under M$ Windows. Most of my work these days is with Unix 
and
> until recently on our systems AWT did not work well and when it did I 
think
> that it would only print PostScript. YMMV.

> Next if the formatting is not very fancy then I would suggest generating 
the
> text/ESCP using just XSLT (with an extension function for the special
> characters).

> The TXTRenderer assumes that the font for output does not change. Last 
time
> I checked ESC/P printers should accept plain ASCII text without the need 
for
> additional control codes (other than CR,LF). This is what the TXTRenderer
> produces. The problem is that with the exception of some special cases, 
the
> output produced by the TXTRenderer is UGLY.

> As to CHR(18) and CHR(27), I guess that may depend on how the XML parser
> interprets "legal characters of Unicode and ISO/IEC 10646" (from the XML 
W3C
> Rec). Being below CHR(32) I suspect that they will probably be rejected 
as
> not a valid XML character.

> If you want pretty output and can not post process one of the current 
output
> formats then you are probably looking at a new renderer.

> Art

> -Original Message-
> From: Clóvis Wichoski [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 21, 2002 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: How format to dot-matrix printers (ESC/P)


> Hi FOP team,

> I'm using FOP for generating PDF's, but now I need use FOP to generate
> text files (txt) for dot-matrix printers using Epson ESC/P, and I have
> following questions:

> 1) I need create my own Renderer?
>  if yes, what I need to share this with FOP-DEV

> 2) Can I do this with TXTRenderer?
>  if yes, How put chars like CHR(27) CHR(18) in txt?

> Best regards

> Clóvis Wichoski
> Supridatta


> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: How format to dot-matrix printers (ESC/P)

2002-03-21 Thread Art Welch

My first suggestion would be to use Acrobat or something to print the PDFs.

Second (or maybe it should be first) would be to use the AWT based print
renderer to print to the printer. I have not used this, but shouldn't AWT be
able to print to any printer for which it has a suitable driver. Maybe this
works better under M$ Windows. Most of my work these days is with Unix and
until recently on our systems AWT did not work well and when it did I think
that it would only print PostScript. YMMV.

Next if the formatting is not very fancy then I would suggest generating the
text/ESCP using just XSLT (with an extension function for the special
characters). 

The TXTRenderer assumes that the font for output does not change. Last time
I checked ESC/P printers should accept plain ASCII text without the need for
additional control codes (other than CR,LF). This is what the TXTRenderer
produces. The problem is that with the exception of some special cases, the
output produced by the TXTRenderer is UGLY.

As to CHR(18) and CHR(27), I guess that may depend on how the XML parser
interprets "legal characters of Unicode and ISO/IEC 10646" (from the XML W3C
Rec). Being below CHR(32) I suspect that they will probably be rejected as
not a valid XML character.

If you want pretty output and can not post process one of the current output
formats then you are probably looking at a new renderer.

Art

-Original Message-
From: Clóvis Wichoski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 12:59 PM
To: [EMAIL PROTECTED]
Subject: How format to dot-matrix printers (ESC/P)


Hi FOP team,

I'm using FOP for generating PDF's, but now I need use FOP to generate 
text files (txt) for dot-matrix printers using Epson ESC/P, and I have 
following questions:

1) I need create my own Renderer?
 if yes, what I need to share this with FOP-DEV

2) Can I do this with TXTRenderer?
 if yes, How put chars like CHR(27) CHR(18) in txt?

Best regards

Clóvis Wichoski
Supridatta


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]