Printing html through jZebra

1,216 views
Skip to first unread message

Martyn

unread,
Feb 3, 2012, 9:04:34 AM2/3/12
to jZebra users
Sorry if this is already answered elsewhere, but can you print basic
html via jZebra?

I have some text, formatted in html, that I need to print to a text
receipt printer. The formatting is very simple, just line breaks and
centring.

Thanks.

Eko Wahyudiharto

unread,
Feb 3, 2012, 11:00:21 AM2/3/12
to jzebra...@googlegroups.com
Hy Martin,

Just want to tell you that this applet is great! Perhaps, you can download the demo and try it out first.
__________________
Greetings,

Eko Wahyudiharto

http://www.google.com/search?q=eko+wahyudiharto




--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com

http://code.google.com/p/jzebra

Tres Finocchiaro

unread,
Feb 3, 2012, 11:13:47 AM2/3/12
to jzebra...@googlegroups.com
Martyn,

We've had this request in the past.  In short, no, HTML printing isn't yet supported.

This is for two reasons.
  1. Raw printing (what jzebra was designed for) is extremely specific to the printer model, so translation would be a very huge task.
  2. HTML generally prints in PostScript format, which would require a Java HTML renderer, which is very bulky and would never work with the Raw printers.
So if HTML support is something you need, here's what the jzebra project would need in return:
  • I would need to know you are using a LaserJet style or PostScript compatible printer (not an Epson, Zebra, CITIZEN, Dymo, which only support PostScript with certain models).
  • Then I'd need a good HTML written in Java, compatible with the GPL 3.0 open source license.  I haven't found one I'm happy with yet.
If you could do HTML - PDF from your server, jZebra does have basic PDF printing support (not documented well, but the mailing list can help).

Lastly, a huge win would be to work with the Seagull Scientific developers, whom have reverse engineered most industry printers to accept PostScript and convert it to Raw format (EPL, ZPL, ESC/P), etc.  This would give jZebra WYSIWYG functionality, however the author has been reluctant to respond to my emails unless I purchase his product.

Sorry that is such a mouthful, hopefully I answered your question.

-Tres

Erik Lukiman

unread,
Mar 8, 2012, 2:25:41 AM3/8/12
to jZebra users
dear Martyn,

if you using web browser for it, so you can use javascript, maybe you
could consider to use directPrint.
It basically simplify the formatting process and can create the output
you desired, if the output can be predicted beforehand.
For the moment the script is bult-in with support for epson syntax,
but you can extend it for your purpose.

Thx
Erik

On Feb 3, 11:13 pm, Tres Finocchiaro <tres.finocchi...@gmail.com>
wrote:
> Martyn,
>
> We've had this request in the past.  In short, no, HTML printing isn't yet
> supported.
>
> This is for two reasons.
>
>    1. Raw printing (what jzebra was designed for) is extremely specific to
>    the printer model, so translation would be a very huge task.
>    2. HTML generally prints in PostScript format, which would require a
>    Java HTML renderer, which is very bulky and would never work with the Raw
>    printers.
>
> So if HTML support is something you need, here's what the jzebra project
> would need in return:
>
>    - I would need to know you are using a LaserJet style or PostScript
>    compatible printer (not an Epson, Zebra, CITIZEN, Dymo, which only support
>    PostScript with certain models).
>    - Then I'd need a good HTML written in Java, compatible with the GPL 3.0
>    open source license.  I haven't found one I'm happy with yet.
>
> If you could do HTML - PDF from your server, jZebra does have basic PDF
> printing support (not documented well, but the mailing list can help).
>
> Lastly, a huge win would be to work with the Seagull
> Scientific<http://www.seagullscientific.com/aspx/free-windows-printer-drivers-fo...>developers,
> whom have reverse engineered most industry printers to accept
> PostScript and convert it to Raw format (EPL, ZPL, ESC/P), etc.  This would
> give jZebra WYSIWYG functionality, however the author has been reluctant to
> respond to my emails unless I purchase his product.
>
> Sorry that is such a mouthful, hopefully I answered your question.
>
> -Tres
>
> On Fri, Feb 3, 2012 at 11:00 AM, Eko Wahyudiharto <e...@wahyudiharto.com>wrote:
>
>
>
>
>
>
>
>
>
> > Hy Martin,
>
> > Just want to tell you that this applet is great! Perhaps, you can download
> > the demo and try it out first.
> > *__________________
> > Greetings,*
> > *Eko Wahyudiharto*
>
> >http://www.google.com/search?q=eko+wahyudiharto
>
> > On Fri, Feb 3, 2012 at 9:04 PM, Martyn <mar...@muphi.com> wrote:
>
> >> Sorry if this is already answered elsewhere, but can you print basic
> >> html via jZebra?
>
> >> I have some text, formatted in html, that I need to print to a text
> >> receipt printer. The formatting is very simple, just line breaks and
> >> centring.
>
> >> Thanks.
>
> >> --
> >> To unsubscribe from this group, send email to
> >> jzebra-users...@googlegroups.com
>
> >>http://code.google.com/p/jzebra
>
> >  --
> > To unsubscribe from this group, send email to
> > jzebra-users...@googlegroups.com
>
> >http://code.google.com/p/jzebra
>
> --
> - Tres.Finocchi...@gmail.com
Reply all
Reply to author
Forward
0 new messages