From owner-freebsd-java@FreeBSD.ORG Sun Apr 17 18:01:05 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA28016A4CF for ; Sun, 17 Apr 2005 18:01:05 +0000 (GMT) Received: from apate.telenet-ops.be (apate.telenet-ops.be [195.130.132.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id E252643D2D for ; Sun, 17 Apr 2005 18:01:04 +0000 (GMT) (envelope-from w_beheydt@telenet.be) Received: from localhost (localhost.localdomain [127.0.0.1]) by apate.telenet-ops.be (Postfix) with SMTP id 7F886381D8; Sun, 17 Apr 2005 20:01:03 +0200 (CEST) Received: from [192.168.1.24] (d54C237A2.access.telenet.be [84.194.55.162]) by apate.telenet-ops.be (Postfix) with ESMTP id 3878538166; Sun, 17 Apr 2005 20:01:03 +0200 (CEST) Message-ID: <4262A402.8000508@telenet.be> Date: Sun, 17 Apr 2005 19:59:30 +0200 From: Wouter Beheydt User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Prohorenko References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: HTML -> Java Browser -> PDF printer X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: w_beheydt@telenet.be List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Apr 2005 18:01:06 -0000 Alexander Prohorenko wrote: >Hi. > >I've got a big site, completely in HTML (JSP) with CSS, etc. I've got a task to automatically generate PDF from any of the URL of this site. > >XML-FO - is not an answer. First of all, the way HTML-FO-PDF isn't very short, and besides, it doesn't understand a lot of HTML extensions, as well as CSSes, etc. > >HTMLDOC - is not an answer, too. It generates too terrible PDF sometimes, besides, doesn't know what CSS, too. > >The last thing which comes into my mind is a server-side HTML printing to PDF printer. The result is the good-looking in most cases. However, there is another problem, is how to do this Java server-side printing of HTML, as HTML should be rendered (!) first (and this should be done automatically!). As for the free software, the only thing which I found is JRex, but it's pretty wet and I believe it'd be bad in the automatic mode running on production server. Unfortunetly, we can't allow commercial software at this moment. > >I've also tried HotJava from ports (somebody told me that it can work out for this task) but it doesn't start at all and shows the followin error: > >/usr/local/jdk1.1.8/lib/i386/green_threads/libawt.so: Undefined symbol "xmDrawingAreaWidgetClass" (libawt.so) >java.lang.UnsatisfiedLinkError: no awt in shared library path > at java.lang.Runtime.loadLibrary(Runtime.java) > at java.lang.System.loadLibrary(System.java) > at > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:399) > at sunw.hotjava.ui.SplashImage.(SplashFrame.java:75) > at sunw.hotjava.ui.SplashFrame.(SplashFrame.java:48) > at sunw.hotjava.Main.main(Main.java:85) > >Have anybody tried to solve this problem and had anyone suceeded? I'd be very thankful for any suggestion. > >Thank you! > >-- Alexander Prohorenko. > > >------------------------------------------------------------------------ > >_______________________________________________ >freebsd-java@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-java >To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > Alexander, I don't understand exactly what you're trying to do. If you're talking about generating pdf in java, perhaps try iText. I use it to generate pdf documents from database content on my site. http://www.lowagie.com/iText/ Greetz, Wouter