Skip to main content



      Home
Home » Archived » BIRT » Blank PDFs - possible help for others
Blank PDFs - possible help for others [message #116762] Wed, 25 January 2006 15:31 Go to next message
Eclipse UserFriend
Originally posted by: chris.schmulka.com

I put this out there in hopes it might help others. If this information
has been previously posted, please forgive my redundancy, but it took me
quite a while to figure out what was going on.
---------------------------------

Since upgrading to 2.0, my PDFs have been showing up blank. While the
bookmarks are there along with any graphical elements contained within
the report are there as well, the body contains no text.

Further confusing the issue was that all worked well on my Windows
development box, but failed once deployed to my Linux / JBoss box.

The problem ended up being related to missing truetype fonts on my Linux
box. Looking through the Birt code,
org.eclipse.birt.report.engine.emitter.pdf.FontHandler
registerDirectories() looks in specific places for TTF files. Here's
the directory list from the code:

C:/windows/fonts
d:/windows/fonts
e:/windows/fonts
f:/windows/fonts
g:/windows/fonts
C:/WINNT/fonts
d:/WINNT/fonts
e:/WINNT/fonts
f:/WINNT/fonts
g:/WINNT/fonts

/usr/X/lib/X11/fonts/TrueType
/usr/share/fonts/default/TrueType

/usr/openwin/lib/X11/fonts/TrueType
/usr/openwin/lib/locale/euro_fonts/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_2/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_5/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_7/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_8/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_9/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_13/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_15/X11/fonts/TrueType
/usr/openwin/lib/locale/ar/X11/fonts/TrueType
/usr/openwin/lib/locale/hi_IN.UTF-8/X11/fonts/TrueType
/usr/openwin/lib/locale/ja/X11/fonts/TT
/usr/openwin/lib/locale/ko/X11/fonts/TrueType
/usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType
/usr/openwin/lib/locale/KOI8-R/X11/fonts/TrueType
/usr/openwin/lib/locale/ru.ansi-1251/X11/fonts/TrueType
/usr/openwin/lib/locale/th_TH/X11/fonts/TrueType
/usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType
/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT
/usr/openwin/lib/locale/zh_HK.BIG5HK/X11/fonts/TT
/usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType
/usr/openwin/lib/locale/zh/X11/fonts/TrueType
/usr/openwin/lib/locale/zh.GBK/X11/fonts/TrueType

/usr/X11R6/lib/X11/fonts/TrueType
/usr/X11R6/lib/X11/fonts/truetype
/usr/X11R6/lib/X11/fonts/tt
/usr/X11R6/lib/X11/fonts/TTF
/usr/X11R6/lib/X11/fonts/OTF
/usr/share/fonts/ja/TrueType
/usr/share/fonts/truetype
/usr/share/fonts/ko/TrueType
/usr/share/fonts/zh_CN/TrueType
/usr/share/fonts/zh_TW/TrueType
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType


Simple fix was to copy my Windows ttf files to one of these locations. I
created the /usr/share/fonts/truetype directory and ftp'd my Windows
files over, restarted JBoss, and then all was well.

I hope this helps others.
Re: Blank PDFs - possible help for others [message #117857 is a reply to message #116762] Thu, 26 January 2006 14:05 Go to previous messageGo to next message
Eclipse UserFriend
birtUser wrote:
> I put this out there in hopes it might help others. If this information
> has been previously posted, please forgive my redundancy, but it took me
> quite a while to figure out what was going on.
> ---------------------------------
>
> Since upgrading to 2.0, my PDFs have been showing up blank. While the
> bookmarks are there along with any graphical elements contained within
> the report are there as well, the body contains no text.
>
> Further confusing the issue was that all worked well on my Windows
> development box, but failed once deployed to my Linux / JBoss box.
>
> The problem ended up being related to missing truetype fonts on my Linux
> box. Looking through the Birt code,
> org.eclipse.birt.report.engine.emitter.pdf.FontHandler
> registerDirectories() looks in specific places for TTF files. Here's
> the directory list from the code:
>
> C:/windows/fonts
> d:/windows/fonts
> e:/windows/fonts
> f:/windows/fonts
> g:/windows/fonts
> C:/WINNT/fonts
> d:/WINNT/fonts
> e:/WINNT/fonts
> f:/WINNT/fonts
> g:/WINNT/fonts
>
> /usr/X/lib/X11/fonts/TrueType
> /usr/share/fonts/default/TrueType
>
> /usr/openwin/lib/X11/fonts/TrueType
> /usr/openwin/lib/locale/euro_fonts/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_2/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_5/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_7/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_8/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_9/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_13/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_15/X11/fonts/TrueType
> /usr/openwin/lib/locale/ar/X11/fonts/TrueType
> /usr/openwin/lib/locale/hi_IN.UTF-8/X11/fonts/TrueType
> /usr/openwin/lib/locale/ja/X11/fonts/TT
> /usr/openwin/lib/locale/ko/X11/fonts/TrueType
> /usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType
> /usr/openwin/lib/locale/KOI8-R/X11/fonts/TrueType
> /usr/openwin/lib/locale/ru.ansi-1251/X11/fonts/TrueType
> /usr/openwin/lib/locale/th_TH/X11/fonts/TrueType
> /usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType
> /usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT
> /usr/openwin/lib/locale/zh_HK.BIG5HK/X11/fonts/TT
> /usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType
> /usr/openwin/lib/locale/zh/X11/fonts/TrueType
> /usr/openwin/lib/locale/zh.GBK/X11/fonts/TrueType
>
> /usr/X11R6/lib/X11/fonts/TrueType
> /usr/X11R6/lib/X11/fonts/truetype
> /usr/X11R6/lib/X11/fonts/tt
> /usr/X11R6/lib/X11/fonts/TTF
> /usr/X11R6/lib/X11/fonts/OTF
> /usr/share/fonts/ja/TrueType
> /usr/share/fonts/truetype
> /usr/share/fonts/ko/TrueType
> /usr/share/fonts/zh_CN/TrueType
> /usr/share/fonts/zh_TW/TrueType
> /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
>
>
> Simple fix was to copy my Windows ttf files to one of these locations. I
> created the /usr/share/fonts/truetype directory and ftp'd my Windows
> files over, restarted JBoss, and then all was well.
>
> I hope this helps others.

Thanks for the helpful posting.

There is a system property that allows user to specify his own font
directory: BIRT_FONT_PATH.

We currently enumerate a long list of directories to make sure people
have an out-of-box solution, though in your case, there is still no
true-type font in any ofn the directories.
he does not

We mulled through the idea of looking into only one directory
configured by EngineConfig for fonts. The drawback is that we may not
have good out-of-box support. We do plan to look into font support
issues in 2.1 to take into feedbacks from the users. So if anyone has
any concerns and questions, please speak up.

Stanley Wang
BIRT Engine
Re: Blank PDFs - possible help for others [message #125957 is a reply to message #116762] Wed, 08 February 2006 08:10 Go to previous message
Eclipse UserFriend
Originally posted by: rigel.inov.intranet

I want to thank you for this one. I've been for days wandering in despair to
try to figure this one out :) Why the runtime pdf generation was happening
in a linux box fc3 and not in a linux fc4... This was it !

I really hope that the BIRT team sorts this one out, or at least a good
out-of-the-box solution in the next version.

Thank you again.

Rui Gil


birtUser wrote:

> I put this out there in hopes it might help others. If this information
> has been previously posted, please forgive my redundancy, but it took me
> quite a while to figure out what was going on.
> ---------------------------------
>
> Since upgrading to 2.0, my PDFs have been showing up blank. While the
> bookmarks are there along with any graphical elements contained within
> the report are there as well, the body contains no text.




>
> Further confusing the issue was that all worked well on my Windows
> development box, but failed once deployed to my Linux / JBoss box.
>
> The problem ended up being related to missing truetype fonts on my Linux
> box. Looking through the Birt code,
> org.eclipse.birt.report.engine.emitter.pdf.FontHandler
> registerDirectories() looks in specific places for TTF files. Here's
> the directory list from the code:
>
> C:/windows/fonts
> d:/windows/fonts
> e:/windows/fonts
> f:/windows/fonts
> g:/windows/fonts
> C:/WINNT/fonts
> d:/WINNT/fonts
> e:/WINNT/fonts
> f:/WINNT/fonts
> g:/WINNT/fonts
>
> /usr/X/lib/X11/fonts/TrueType
> /usr/share/fonts/default/TrueType
>
> /usr/openwin/lib/X11/fonts/TrueType
> /usr/openwin/lib/locale/euro_fonts/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_2/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_5/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_7/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_8/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_9/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_13/X11/fonts/TrueType
> /usr/openwin/lib/locale/iso_8859_15/X11/fonts/TrueType
> /usr/openwin/lib/locale/ar/X11/fonts/TrueType
> /usr/openwin/lib/locale/hi_IN.UTF-8/X11/fonts/TrueType
> /usr/openwin/lib/locale/ja/X11/fonts/TT
> /usr/openwin/lib/locale/ko/X11/fonts/TrueType
> /usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType
> /usr/openwin/lib/locale/KOI8-R/X11/fonts/TrueType
> /usr/openwin/lib/locale/ru.ansi-1251/X11/fonts/TrueType
> /usr/openwin/lib/locale/th_TH/X11/fonts/TrueType
> /usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType
> /usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT
> /usr/openwin/lib/locale/zh_HK.BIG5HK/X11/fonts/TT
> /usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType
> /usr/openwin/lib/locale/zh/X11/fonts/TrueType
> /usr/openwin/lib/locale/zh.GBK/X11/fonts/TrueType
>
> /usr/X11R6/lib/X11/fonts/TrueType
> /usr/X11R6/lib/X11/fonts/truetype
> /usr/X11R6/lib/X11/fonts/tt
> /usr/X11R6/lib/X11/fonts/TTF
> /usr/X11R6/lib/X11/fonts/OTF
> /usr/share/fonts/ja/TrueType
> /usr/share/fonts/truetype
> /usr/share/fonts/ko/TrueType
> /usr/share/fonts/zh_CN/TrueType
> /usr/share/fonts/zh_TW/TrueType
> /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
>
>
> Simple fix was to copy my Windows ttf files to one of these locations. I
> created the /usr/share/fonts/truetype directory and ftp'd my Windows
> files over, restarted JBoss, and then all was well.
>
> I hope this helps others.
Previous Topic:Image handling
Next Topic:XML template processing with XPATH
Goto Forum:
  


Current Time: Sat May 10 09:06:56 EDT 2025

Powered by FUDForum. Page generated in 0.02849 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top