Well usually when you start xvfb you specify a screen size and number of
pixels (or is that colors?) to display such as:

/usr/X11R6/bin/Xvfb :1 -screen 2 800x600x24 &

Unfortunately my server administrator isn't around to answer my questions
at the moment but if you look at the documentation for xvfb that comes with
the X11 library it should get you started.
We have used it for quite some time and the resolution is fine for us. I
mean we are mostly generating gifs which are at a max of 256 colors and it
seems to be fine although we had problems with the fonts before while using
JDK 1.2.2 until we updated to 1.3.1. We use Sitraka's JClass Chart to
generate charts in a JFrame and that is then captured in a java.awt.Image.
That image is then sent to a gif/jpeg generating utility class such as what
you might have with iText for the PDFs.

PDFs should be the same I would imagine, somewhat along the same resolution
requirements if I'm not mistaken. We have never used iText so I can't
really comment on it but I would also look at the docs for it to find out
more info if I were you.

The only way to know for sure is to try it out...

HTH,
Greg.






[EMAIL PROTECTED] on 2002/09/25 02:21:54 PM

Please respond to "JDJList" <[EMAIL PROTECTED]>

To:   "JDJList" <[EMAIL PROTECTED]>
cc:

Subject:  [jdjlist] RES: Re: Pdf generation in server (headless) environmen
      ts


Greg, thanks for the response.

Yes, we are using a Unix environment. I heard that the xvfb could cause
some
loss of resolution when generating the image - not sure if it is true,
though. Actually, I am  trying to find out if the pdf library (iText, for
example) will need a display or not for generating the pdf.

Thanks again,

Tedi

-----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Enviada em: Wednesday, September 25, 2002 14:32
Para: JDJList
Assunto: [jdjlist] Re: Pdf generation in server (headless) environments



What are you using to generate the PDF? I assume you are talking about a
Unix environment here?

We use xvfb (virtual frame buffer for X11) to generate gifs and jpegs on
our servers but we haven't use it for PDFs yet but it should work. You
should be able to update whatever display you are drawing the PDF to at
will... we do it with the gifs and jpegs.

Need more info please...

Greg.





[EMAIL PROTECTED] on 2002/09/25 01:45:23 PM

Please respond to "JDJList" <[EMAIL PROTECTED]>

To:   "JDJList" <[EMAIL PROTECTED]>
cc:

Subject:  [jdjlist] Pdf generation in server (headless) environments


Hi guys,

   Does anyone know if pdf generation works in a headless environment, even
if I need to draw some barcode stuff in the generated pdf?

   TIA,

   Tedi

To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm







To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm







To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to