Problems with PDF in Production but works fine in test [message #119299] |
Fri, 27 January 2006 19:19  |
Eclipse User |
|
|
|
Originally posted by: pcasey.earthlink.net
I've got some reports that I render server side as either HTML or PDF.
The reports worked fine with both 1.0.1 and 2.0 RC 2. I had to tweak the
reports a little to make them work on 2.0 release, but nonetheless, all was
well on my test machine.
This afternoon, I pushed out the new war to my production box and,
although the HTML rendering still works, any PDF I create is, for lack of a
better word, smashed vertically into about 50 pixels of height. So a report
with, say 15 pages, might be 50 pixels of garbage, but a report with 5 or so
pages might be only 20 pixels of garbage.
There are two obvious differences I can find between test and
production:
1) Test is windows XP. Production is Linux (we're a java app, we
shouldn't care, but sometimes we do). Yes, I know this is bad practise, I'm
working on it :).
2) Test isn't just Linux, it's a linux install without x. I've had
problems before with a lot of graphic libraries like jfreechart which go
sideways if there isn't xwindows around.
So ... my question is, are there any known issues with running on a
headless linux box? If so, what's the workaround? Like I said, HTML renders
fine. No errors show up anywhere in any logs, the results just look like
they got smashed, which makes me suspicious that somewhere, some graphic
library got seriously confused.
Please help; if I don't get this sorted fairly quickly I'm going to have
to roll back to RC 2 which I'd really rather not do :(.
--- Pat
|
|
|
|
|
|
|
Re: Problems with PDF in Production but works fine in test [message #122333 is a reply to message #122313] |
Tue, 31 January 2006 23:12  |
Eclipse User |
|
|
|
Originally posted by: pcasey.earthlink.net
The current theory that the devs have is that it's somehow font related
(at least all the log files I sent them were logging font related
information). It must be something subtle though, because I, like you,
tested with and without fonts in the search path and it failed in either
case. I'll post here when there's more news, but as of this afternoon, the
devs were still working, and I was running tests for them.
--- Pat
"dt" <dtsjunk@gmail.com> wrote in message
news:6de000297405ec02943fcbe591677469$1@www.eclipse.org...
> Hi I am having the same difficulty in getting my pdfs to display any text
> when i run the birt web viewer on my headless linux server. I am using
> Birt 2 and Tomcat 5.0.27. The pdfs will display embedded images and the
> outlines of tables but no text. The HTML is rendering fine and no errors
> are showing up in any of the log files. I have the exact same setup on my
> windows xp dev box and everything works fine. I have read the posts
> regarding the setting up of the truetype fonts but my linux box already
> had one of the locations that is searched in
> org.eclipse.birt.report.engine.emitter.pdf.FontHandler. I also tried
> setting up my own font directory using the BIRT_FONT_PATH in the web.xml.
> I am using -Djava.awt.headless=true in my java opts.
>
> The displaying of the pdfs was working fine in Birt 1.
> Any help much appreciated
> dt
>
|
|
|
Powered by
FUDForum. Page generated in 0.07968 seconds