From michealgarcia@example.com Thu Apr 01 09:33:07 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 55058 invoked from network); 1 Apr 2004 09:33:07 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Apr 2004 09:33:07 -0000 Received: (qmail 29559 invoked by uid 500); 1 Apr 2004 09:32:37 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 29544 invoked by uid 500); 1 Apr 2004 09:32:37 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 29520 invoked from network); 1 Apr 2004 09:32:37 -0000 Received: from unknown (HELO hotmail.com) (83.161.120.155) by daedalus.apache.org with SMTP; 1 Apr 2004 09:32:37 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Apr 2004 01:32:50 -0800 Received: from 83.161.120.155 by bay7-dav4.bay7.hotmail.com with DAV; Thu, 01 Apr 2004 09:32:50 +0000 X-Originating-IP: [83.161.120.155] X-Originating-Email: [michealgarcia@example.com] X-Sender: michealgarcia@example.com Message-ID: <michealgarcia@example.com> Date: Thu, 01 Apr 2004 10:32:41 +0100 From: Chris Bowditch <michealgarcia@example.com> Reply-To: michealgarcia@example.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: michealgarcia@example.com Subject: Re: Print PDF !!! References: <000901c417bb$7ddbda60$5c64a8c0@mctv> In-Reply-To: <000901c417bb$7ddbda60$5c64a8c0@mctv> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Apr 2004 09:32:50.0562 (UTC) FILETIME=[4CFCCE20:01C417CC] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Eric Chow wrote: > Hello, > > I can embedded FOP in my program to produce PDF in runtime(based on the > instruction). > > But, is there any way to directly print out the PDF with FOP api ??? If you want to directly print your document from FOP output, then I suggest you use the Postscript generator instead of PDF. You can then just stream your postscript to your printer. There is no way to directly print a PDF from java. You can shell out to Acrobat server to print a PDF, but thats slow and expensive way of doing it. Chris --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Thu Apr 01 09:46:20 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 64141 invoked from network); 1 Apr 2004 09:46:20 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Apr 2004 09:46:20 -0000 Received: (qmail 56409 invoked by uid 500); 1 Apr 2004 09:45:50 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 56393 invoked by uid 500); 1 Apr 2004 09:45:50 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 56380 invoked from network); 1 Apr 2004 09:45:50 -0000 Received: from unknown (HELO hotmail.com) (83.161.120.155) by daedalus.apache.org with SMTP; 1 Apr 2004 09:45:50 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Apr 2004 01:46:03 -0800 Received: from 83.161.120.155 by bay7-dav40.bay7.hotmail.com with DAV; Thu, 01 Apr 2004 09:46:03 +0000 X-Originating-IP: [83.161.120.155] X-Originating-Email: [michealgarcia@example.com] X-Sender: michealgarcia@example.com Message-ID: <michealgarcia@example.com> Date: Thu, 01 Apr 2004 10:45:54 +0100 From: Chris Bowditch <michealgarcia@example.com> Reply-To: michealgarcia@example.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: michealgarcia@example.com Subject: Re: How to repeat subtitle onto the following pages References: <michealgarcia@example.com> In-Reply-To: <michealgarcia@example.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Apr 2004 09:46:04.0006 (UTC) FILETIME=[25EAC060:01C417CE] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jay Chiu wrote: > Hi, > > I need to generate a report with subtitles and details as table > rows. Each subtitle row may be followed by many detail rows, > which may span multiple pages. But we want to add the same > subtitle on the beginning of the following pages with some > additional text as "Continue..." or even relative page number. This type of document can be very tricky to achieve in XSL-FO. We have been trying to do sub-totals in statements, a very similar issue. Forget quoting the number of pages for a subtitle, you wont be able to do that! One approach that will allow the header to repeat across pages is to start a new table for each subtitle. You can play around with the space-before on the table elements to get them close enough together so that they appear to be the same table. For each table define a fo:table-header, with the subtitle in that row. The subtitle will then repeat across pages but no Continued word. To get the continued word to work you will either need to resort to using a region-before and use markers (youll need some trickery to get table in flow to appear to be joined with subtitle row in region-before) or you will need to wait for XSL-FO 1.1, which provides for markers in table header/footers. Chris --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Thu Apr 01 17:14:27 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 28580 invoked from network); 1 Apr 2004 17:14:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Apr 2004 17:14:27 -0000 Received: (qmail 36246 invoked by uid 500); 1 Apr 2004 17:14:15 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 36225 invoked by uid 500); 1 Apr 2004 17:14:15 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 36198 invoked from network); 1 Apr 2004 17:14:14 -0000 Received: from unknown (HELO smtp.tiscali.ch) (83.161.120.155) by daedalus.apache.org with SMTP; 1 Apr 2004 17:14:14 -0000 Received: from [83.161.120.155] (adsl-146-249-fixip.tiscali.ch [83.161.120.155]) by smtp.tiscali.ch (8.11.7/8.11.7) with ESMTP id i31HEGr09218 for <michealgarcia@example.com>; Thu, 1 Apr 2004 19:14:17 +0200 Mime-Version: 1.0 (Apple Message framework v613) To: michealgarcia@example.com Message-Id: <michealgarcia@example.com> Content-Type: multipart/alternative; boundary=Apple-Mail-(305)587-5883 From: Olivier Crameri <michealgarcia@example.com> Subject: Accentuated characters Date: Thu, 1 Apr 2004 19:14:14 +0200 X-Mailer: Apple Mail (2.613) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --Apple-Mail-(305)587-5883 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi everyone, I am writing a java software which outputs pdfs via FOP and an xslt=20 stylesheet. Basically the same functionality and the same code as=20 showed in the ExampleObj2PDF.java tutorial. I am getting some troubles with accentuated letters. The accentuated=20 characters that are present in the xslt stylesheet are generated=20 perfectly in the pdfs. However, accentuated letters generated as sax=20 events output garbage. Here is an example of non working accents: handler.element("accents", "=E0=E0=E0 =E9=E9=E9"); I don't understand why it doesn't work. I already double-checked that=20 my java class is well encoded in utf-8. I would really appreciate any help. Thanks Olivier= --Apple-Mail-(305)587-5883 Content-Transfer-Encoding: quoted-printable Content-Type: text/enriched; charset=ISO-8859-1 Hi everyone, I am writing a java software which outputs pdfs via FOP and an xslt stylesheet. Basically the same functionality and the same code as showed in the ExampleObj2PDF.java tutorial. I am getting some troubles with accentuated letters. The accentuated characters that are present in the xslt stylesheet are generated perfectly in the pdfs. However, accentuated letters generated as sax events output garbage. Here is an example of non working accents: = <fixed><x-tad-bigger>handler.element(</x-tad-bigger><color><param>2A29,000= 0,FFFE</param><x-tad-bigger>"accents"</x-tad-bigger></color><x-tad-bigger>= , </x-tad-bigger><color><param>2A29,0000,FFFE</param><x-tad-bigger>"=E0=E0=E0= =E9=E9=E9"</x-tad-bigger></color><x-tad-bigger>); </x-tad-bigger></fixed>I don't understand why it doesn't work. I already double-checked that my java class is well encoded in utf-8. I would really appreciate any help. Thanks Olivier= --Apple-Mail-(305)587-5883-- From michealgarcia@example.com Thu Apr 01 19:01:23 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 87063 invoked from network); 1 Apr 2004 19:01:23 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Apr 2004 19:01:23 -0000 Received: (qmail 76040 invoked by uid 500); 1 Apr 2004 19:01:07 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 76006 invoked by uid 500); 1 Apr 2004 19:01:07 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 75865 invoked from network); 1 Apr 2004 19:01:05 -0000 Received: from unknown (HELO main.gmane.org) (83.161.120.155) by daedalus.apache.org with SMTP; 1 Apr 2004 19:01:05 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B97R7-000419-00 for <michealgarcia@example.com>; Thu, 01 Apr 2004 21:01:09 +0200 Received: from d5e0aae4.kabel.telenet.be ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <michealgarcia@example.com>; Thu, 01 Apr 2004 21:01:09 +0200 Received: from jcs_gde_lists by d5e0aae4.kabel.telenet.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <michealgarcia@example.com>; Thu, 01 Apr 2004 21:01:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: michealgarcia@example.com From: "Geoffrey" <michealgarcia@example.com> Subject: Re: xsl:include and fop Date: Thu, 1 Apr 2004 21:01:03 +0200 Lines: 32 Message-ID: <michealgarcia@example.com> References: <michealgarcia@example.com> <michealgarcia@example.com> X-Complaints-To: michealgarcia@example.com X-Gmane-NNTP-Posting-Host: d5e0aae4.kabel.telenet.be X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Sender: news <michealgarcia@example.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thank you, URIResolver worked like a charm for the uri's from XML to FO. I have set a custom one on the Tranformer(Factory) I still have some uri's that need to be resolved from FO to PDF (all images). Is it also possible to place an URIResolver on FOP? Thanks for the help! Geoffrey "J.Pietschmann" <michealgarcia@example.com> schreef in bericht news:michealgarcia@example.com... > Geoffrey wrote: > > 1) Is it possible to use <xsl:include and/or <xsl:import entities in xsl > > sheets used by FOP? > es. > > > 2) Is it possible to combine this with code that generates pdf (through fo) > Yes. > > > 3) (And now the real question) Is it possible to do this if your xsl are > > resources of your achive, fetched by getClass().getResource("myxsl.xsl")? > Basically: yes. It may be necesary to > - use a jar: sheme URL and/or > - provide a custom URIResolver in order to fetch included XSL > sheets from the jar. > > J.Pietschmann --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Fri Apr 02 07:42:38 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 69560 invoked from network); 2 Apr 2004 07:42:37 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 07:42:37 -0000 Received: (qmail 22252 invoked by uid 500); 2 Apr 2004 07:42:10 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 22072 invoked by uid 500); 2 Apr 2004 07:42:09 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 22054 invoked from network); 2 Apr 2004 07:42:09 -0000 Received: from unknown (HELO moutng.kundenserver.de) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 07:42:09 -0000 Received: from [83.161.120.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1B9JJk-0003Mi-00 for michealgarcia@example.com; Fri, 02 Apr 2004 09:42:20 +0200 Received: from [83.161.120.155] (helo=isu-gmbh.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1B9JJk-00081p-00 for michealgarcia@example.com; Fri, 02 Apr 2004 09:42:20 +0200 Message-ID: <michealgarcia@example.com> Date: Fri, 02 Apr 2004 09:42:18 +0200 From: Christian Geisert <michealgarcia@example.com> Organization: ISU GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.6) Gecko/20040312 Debian/1.6-3 X-Accept-Language: de-de, en-us MIME-Version: 1.0 To: michealgarcia@example.com Subject: Re: Accentuated characters References: <michealgarcia@example.com> In-Reply-To: <michealgarcia@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: kundenserver.de michealgarcia@example.com auth:c7095967f8353cd07da14967482bdbb9 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Olivier Crameri wrote: > Hi everyone, >=20 > I am writing a java software which outputs pdfs via FOP and an xslt=20 > stylesheet. Basically the same functionality and the same code as showe= d=20 > in the ExampleObj2PDF.java tutorial. >=20 > I am getting some troubles with accentuated letters. The accentuated=20 > characters that are present in the xslt stylesheet are generated=20 > perfectly in the pdfs. However, accentuated letters generated as sax=20 > events output garbage. >=20 > Here is an example of non working accents: >=20 > handler.element("accents", "=E0=E0=E0 =E9=E9=E9"); >=20 > I don't understand why it doesn't work. I already double-checked that m= y=20 > java class is well encoded in utf-8. This might be the problem. The encoding of the java source must match=20 your file.encoding (See System.getProperties()) --=20 Christian --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Fri Apr 02 09:39:25 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 50934 invoked from network); 2 Apr 2004 09:39:25 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 09:39:25 -0000 Received: (qmail 23141 invoked by uid 500); 2 Apr 2004 09:38:41 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 23105 invoked by uid 500); 2 Apr 2004 09:38:40 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 22969 invoked from network); 2 Apr 2004 09:38:39 -0000 Received: from unknown (HELO hotmail.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 09:38:39 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 2 Apr 2004 01:38:52 -0800 Received: from 83.161.120.155 by bay7-dav32.bay7.hotmail.com with DAV; Fri, 02 Apr 2004 09:38:52 +0000 X-Originating-IP: [83.161.120.155] X-Originating-Email: [michealgarcia@example.com] X-Sender: michealgarcia@example.com Message-ID: <michealgarcia@example.com> Date: Fri, 02 Apr 2004 10:38:45 +0100 From: Chris Bowditch <michealgarcia@example.com> Reply-To: michealgarcia@example.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: michealgarcia@example.com Subject: Re: Accentuated characters References: <michealgarcia@example.com> <michealgarcia@example.com> In-Reply-To: <michealgarcia@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 02 Apr 2004 09:38:52.0920 (UTC) FILETIME=[4F61FF80:01C41896] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Christian Geisert wrote: > Olivier Crameri wrote: <snip/> >> Here is an example of non working accents: >> >> handler.element("accents", "ààà ééé"); >> >> I don't understand why it doesn't work. I already double-checked that >> my java class is well encoded in utf-8. > > > This might be the problem. The encoding of the java source must match > your file.encoding (See System.getProperties()) Yes your java compiler will need to be told what encoding your source files are in, if they differ from the platform default. Chris --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Fri Apr 02 10:05:06 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 66807 invoked from network); 2 Apr 2004 10:05:06 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 10:05:06 -0000 Received: (qmail 56603 invoked by uid 500); 2 Apr 2004 10:04:36 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 56583 invoked by uid 500); 2 Apr 2004 10:04:35 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 56555 invoked from network); 2 Apr 2004 10:04:35 -0000 Received: from unknown (HELO mail03.agrinet.ch) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 10:04:35 -0000 Received: from [83.161.120.155] (83.161.120.155) by mail03.agrinet.ch (7.0.024) id 4068424A000FD45D for michealgarcia@example.com; Fri, 2 Apr 2004 12:04:45 +0200 Date: Fri, 02 Apr 2004 12:04:27 +0200 From: Jeremias Maerki <michealgarcia@example.com> To: michealgarcia@example.com Subject: Re: xsl:include and fop In-Reply-To: <michealgarcia@example.com> References: <michealgarcia@example.com> <michealgarcia@example.com> Message-Id: <michealgarcia@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.07.04 [en] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Not directly, but it should be no big problem to modify the FOP sources so you can use a URIResolver. FOP is open source after all. :-) Provided you're using FOP 0.20.5 you can start by modifying org.apache.fop.tools.URLBuilder who's job it is to convert URIs into URLs. Providing support for URIResolvers is on the todo list for the development towards version 1.0. I hope this helps. On 01.04.2004 21:01:03 Geoffrey wrote: > Thank you, URIResolver worked like a charm for the uri's from XML to FO. > I have set a custom one on the Tranformer(Factory) > > I still have some uri's that need to be resolved from FO to PDF (all > images). > Is it also possible to place an URIResolver on FOP? Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Fri Apr 02 10:12:12 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 71036 invoked from network); 2 Apr 2004 10:12:11 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 10:12:11 -0000 Received: (qmail 68323 invoked by uid 500); 2 Apr 2004 10:11:39 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 68285 invoked by uid 500); 2 Apr 2004 10:11:38 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 68229 invoked from network); 2 Apr 2004 10:11:38 -0000 Received: from unknown (HELO mail03.agrinet.ch) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 10:11:38 -0000 Received: from [83.161.120.155] (83.161.120.155) by mail03.agrinet.ch (7.0.024) id 4068424A000FDA05 for michealgarcia@example.com; Fri, 2 Apr 2004 12:11:51 +0200 Date: Fri, 02 Apr 2004 12:11:33 +0200 From: Jeremias Maerki <michealgarcia@example.com> To: michealgarcia@example.com Subject: Re: Print PDF !!! In-Reply-To: <michealgarcia@example.com> References: <000901c417bb$7ddbda60$5c64a8c0@mctv> <michealgarcia@example.com> Message-Id: <michealgarcia@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.07.04 [en] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Or you can use FOP's AWT Renderer to print your XSL-FO document, not going via michealgarcia@example.com. Caveat: AWT output might look slightly different from PDF output. Some people use the Acrobat Reader command-line to print. See the mailing list archives for details. You could also print PDF using GhostScript. On 01.04.2004 11:32:41 Chris Bowditch wrote: > Eric Chow wrote: > > > Hello, > > > > I can embedded FOP in my program to produce PDF in runtime(based on the > > instruction). > > > > But, is there any way to directly print out the PDF with FOP api ??? > > If you want to directly print your document from FOP output, then I suggest > you use the Postscript generator instead of PDF. You can then just stream your > postscript to your printer. > > There is no way to directly print a PDF from java. You can shell out to > Acrobat server to print a PDF, but thats slow and expensive way of doing it. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Fri Apr 02 12:10:47 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 36679 invoked from network); 2 Apr 2004 12:10:47 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 12:10:47 -0000 Received: (qmail 61787 invoked by uid 500); 2 Apr 2004 12:10:40 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 61769 invoked by uid 500); 2 Apr 2004 12:10:40 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 61751 invoked from network); 2 Apr 2004 12:10:39 -0000 Received: from unknown (HELO main.gmane.org) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 12:10:39 -0000 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B9NVP-00038a-00 for <michealgarcia@example.com>; Fri, 02 Apr 2004 14:10:39 +0200 Received: from c-24-10-141-29.client.comcast.net ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <michealgarcia@example.com>; Fri, 02 Apr 2004 14:10:39 +0200 Received: from j.trauntvein by c-24-10-141-29.client.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <michealgarcia@example.com>; Fri, 02 Apr 2004 14:10:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: michealgarcia@example.com From: Jon Trauntvein <michealgarcia@example.com> Subject: Re: Print PDF !!! Date: 01 Apr 2004 20:47:12 -0700 Lines: 26 Message-ID: <michealgarcia@example.com> References: <000901c417bb$7ddbda60$5c64a8c0@mctv> <michealgarcia@example.com> X-Complaints-To: michealgarcia@example.com X-Gmane-NNTP-Posting-Host: c-24-10-141-29.client.comcast.net X-Newsreader: Gnus v5.7/Emacs 20.7 Sender: news <michealgarcia@example.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Chris Bowditch <michealgarcia@example.com> writes: > Eric Chow wrote: > > > Hello, > > > > I can embedded FOP in my program to produce PDF in runtime(based on the > > instruction). > > > > But, is there any way to directly print out the PDF with FOP api ??? > > If you want to directly print your document from FOP output, then I suggest > you use the Postscript generator instead of PDF. You can then just stream your > postscript to your printer. > > There is no way to directly print a PDF from java. You can shell out to > Acrobat server to print a PDF, but thats slow and expensive way of doing it. If you don't have a postscript printer, you could alternatively shell out to ghostscript in order to convert ps/pdf to your printer's native language. Regards, Jon Trauntvein --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Fri Apr 02 12:55:10 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 67070 invoked from network); 2 Apr 2004 12:55:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 12:55:09 -0000 Received: (qmail 28002 invoked by uid 500); 2 Apr 2004 12:55:03 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 27989 invoked by uid 500); 2 Apr 2004 12:55:03 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 27968 invoked from network); 2 Apr 2004 12:55:02 -0000 Received: from unknown (HELO mercury.verizonwireless.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 12:55:02 -0000 Received: from unknown (HELO NJBEDEXSMTP03.uswin.ad.vzwcorp.com) (83.161.120.155) by mercury.verizonwireless.com with ESMTP; 02 Apr 2004 07:55:08 -0500 From: michealgarcia@example.com X-Host: redstone.odc.vzwcorp.com X-MID: 8180691 Received: by njbedexsmtp03.uswin.ad.vzwcorp.com with Internet Mail Service (5.5.2657.72) id <HYP03H9P>; Fri, 2 Apr 2004 07:55:07 -0500 To: michealgarcia@example.com Subject: RE: Print PDF !!! Date: Fri, 2 Apr 2004 07:56:42 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N you can print pdfs from within java, assuming have xml and xsl use the follwoing (i found they do not print exactly like adobe does though, so in some cases it might not be what you need) public class PrintFop { // -xml xmlinputfile.xml // -xsl xslinputfile.xsl // output to printer // input -> {"-xml", "somexmlfile.xml", "-xsl", "somexslfile.xsl", "-print"} public PrintFop(String[] args) { CommandLineOptions options = null; try { options = new CommandLineOptions(args); Starter starter = options.getStarter(); starter.run(); } catch (FOPException e) { e.printStackTrace(); MessageHandler.errorln("" + e.getMessage()); if (options != null) { if (options.isDebugMode().booleanValue()) { e.printStackTrace(); } if (options.outfile != null) { options.outfile.delete(); } } System.exit(2); } catch (java.io.FileNotFoundException e) { MessageHandler.errorln("" + e.getMessage()); if (options != null) { if (options.isDebugMode().booleanValue()) { e.printStackTrace(); } if (options.outfile != null) { options.outfile.delete(); } } System.exit(1); } } public static void main(String[] args) { String myArgs [] = {"-xml", "C:\\tmp\\test.xml", "-xsl", "C:\\tmp\\test.xsl", "-print"}; new PrintFop(myArgs); } } -----Original Message----- From: news [mailto:michealgarcia@example.com]On Behalf Of Jon Trauntvein Sent: Thursday, April 01, 2004 10:47 PM To: michealgarcia@example.com Subject: Re: Print PDF !!! Chris Bowditch <michealgarcia@example.com> writes: > Eric Chow wrote: > > > Hello, > > > > I can embedded FOP in my program to produce PDF in runtime(based on the > > instruction). > > > > But, is there any way to directly print out the PDF with FOP api ??? > > If you want to directly print your document from FOP output, then I suggest > you use the Postscript generator instead of PDF. You can then just stream your > postscript to your printer. > > There is no way to directly print a PDF from java. You can shell out to > Acrobat server to print a PDF, but thats slow and expensive way of doing it. If you don't have a postscript printer, you could alternatively shell out to ghostscript in order to convert ps/pdf to your printer's native language. Regards, Jon Trauntvein --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Fri Apr 02 13:40:12 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 97522 invoked from network); 2 Apr 2004 13:40:11 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 13:40:11 -0000 Received: (qmail 24815 invoked by uid 500); 2 Apr 2004 13:40:04 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 24733 invoked by uid 500); 2 Apr 2004 13:40:04 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 24718 invoked from network); 2 Apr 2004 13:40:03 -0000 Received: from unknown (HELO web61206.mail.yahoo.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 13:40:03 -0000 Message-ID: <michealgarcia@example.com> Received: from [83.161.120.155] by web61206.mail.yahoo.com via HTTP; Fri, 02 Apr 2004 05:37:06 PST Date: Fri, 2 Apr 2004 05:37:06 -0800 (PST) From: S R <michealgarcia@example.com> Subject: Printing Chexks To: michealgarcia@example.com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1548277425-1080913026=:8934" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-1548277425-1080913026=:8934 Content-Type: text/plain; charset=us-ascii Hi, Has anybody tried printing checks using FOP (embedding MICR Fonts). Thank you, Sudheer. Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam --0-1548277425-1080913026=:8934 Content-Type: text/html; charset=us-ascii <DIV>Hi,</DIV> <DIV>&nbsp;</DIV> <DIV>Has anybody tried printing checks using FOP (embedding MICR Fonts).</DIV> <DIV>&nbsp;</DIV> <DIV>Thank you,</DIV> <DIV>Sudheer.</DIV><p><font face=arial size=-1>Do you Yahoo!?<br> <a href="http://us.rd.yahoo.com/mailtag_us/*http://mail.yahoo.com" target="_blank"><b>Yahoo! Mail</a></b> - More reliable, more storage, less spam --0-1548277425-1080913026=:8934-- From michealgarcia@example.com Fri Apr 02 14:10:24 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 21701 invoked from network); 2 Apr 2004 14:10:24 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 14:10:24 -0000 Received: (qmail 85128 invoked by uid 500); 2 Apr 2004 14:10:15 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 85113 invoked by uid 500); 2 Apr 2004 14:10:15 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 85099 invoked from network); 2 Apr 2004 14:10:15 -0000 Received: from unknown (HELO hotmail.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 14:10:15 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 2 Apr 2004 06:10:16 -0800 Received: from 83.161.120.155 by bay7-dav26.bay7.hotmail.com with DAV; Fri, 02 Apr 2004 14:10:16 +0000 X-Originating-IP: [83.161.120.155] X-Originating-Email: [michealgarcia@example.com] X-Sender: michealgarcia@example.com Message-ID: <michealgarcia@example.com> Date: Fri, 02 Apr 2004 15:10:08 +0100 From: Chris Bowditch <michealgarcia@example.com> Reply-To: michealgarcia@example.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: michealgarcia@example.com Subject: Re: Print PDF !!! References: <michealgarcia@example.com> In-Reply-To: <michealgarcia@example.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Apr 2004 14:10:16.0787 (UTC) FILETIME=[3952EA30:01C418BC] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N michealgarcia@example.com wrote: > you can print pdfs from within java, assuming have xml and xsl use the > follwoing What you have suggested does not "print pdf" It uses java AWT classes to build the document and then print. AWT has differences from PDF or Postscript outputs, which are designed to be the same. <snip/> Chris --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Fri Apr 02 14:15:30 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 27144 invoked from network); 2 Apr 2004 14:15:30 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 14:15:30 -0000 Received: (qmail 98983 invoked by uid 500); 2 Apr 2004 14:15:22 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 98963 invoked by uid 500); 2 Apr 2004 14:15:21 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 98950 invoked from network); 2 Apr 2004 14:15:21 -0000 Received: from unknown (HELO mercury.verizonwireless.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 14:15:21 -0000 Received: from unknown (HELO NJBEDEXSMTP04.uswin.ad.vzwcorp.com) (83.161.120.155) by mercury.verizonwireless.com with ESMTP; 02 Apr 2004 09:15:27 -0500 From: michealgarcia@example.com Received: by njbedexsmtp04.uswin.ad.vzwcorp.com with Internet Mail Service (5.5.2657.72) id <2B0P5CSZ>; Fri, 2 Apr 2004 09:15:27 -0500 To: michealgarcia@example.com Subject: RE: Print PDF !!! Date: Fri, 2 Apr 2004 09:17:01 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N yea, i went through this a onth ago and the only way to have a pdf pop out the printer from java was to use the above approach, postscript did not work for me, sonce there were diff in the printed doc, i went with runtime exec and called abode32.exe -----Original Message----- From: Chris Bowditch [mailto:michealgarcia@example.com] Sent: Friday, April 02, 2004 9:10 AM To: michealgarcia@example.com Subject: Re: Print PDF !!! michealgarcia@example.com wrote: > you can print pdfs from within java, assuming have xml and xsl use the > follwoing What you have suggested does not "print pdf" It uses java AWT classes to build the document and then print. AWT has differences from PDF or Postscript outputs, which are designed to be the same. <snip/> Chris --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Fri Apr 02 17:57:57 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 72696 invoked from network); 2 Apr 2004 17:57:57 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 17:57:57 -0000 Received: (qmail 30758 invoked by uid 500); 2 Apr 2004 17:57:46 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 30464 invoked by uid 500); 2 Apr 2004 17:57:44 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 30451 invoked from network); 2 Apr 2004 17:57:44 -0000 Received: from unknown (HELO web12201.mail.yahoo.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 17:57:44 -0000 Message-ID: <michealgarcia@example.com> Received: from [83.161.120.155] by web12201.mail.yahoo.com via HTTP; Fri, 02 Apr 2004 09:57:47 PST Date: Fri, 2 Apr 2004 09:57:47 -0800 (PST) From: Jerry <michealgarcia@example.com> Subject: urgent help needed using FOP To: michealgarcia@example.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I have a problem with displaying tiff data in PDF format using FOP. We have binary data in tiff stored in database. What I need to do is to write a servlet to get those binary data in tiff format from database and put those data in a byte array. Next, in the same servlet, I need to get those binary data in tiff format from the byte array and display them on the web in PDF format using FOP. I know if the binary data is formatted object, it is easy to convert it into PDF using FOP. However, the data in the byte array "bt" in tiff does not belong to the standard formatting object. My understanding is I need to either convert it into the formatting object using XSL or convert it into XML. However, I am new to FOP and XML/XSL and do not know how to do that. If possible, we need to convert the data format in memory,that means, everything is done in memory, not save it as a file first and process using FOP. Anyone has the experience and would like to share the knowledge and experience with me, I will greatly appreciate. If you have a piece of codes for me to share, that will be greatly helpful. I also attached my piece of codes for your reference. I know my code is not working, because I tried to convert non-standard formatting object to PDF. I need to do something about this part. Please help me. Thanks in advance, Jerry *********************************************************** import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import java.util.zip.*; import java.sql.*; import java.text.*; import java.net.*; import java.util.Properties; import java.awt.image.*; import com.sun.media.jai.codec.*; import com.sun.media.jai.*; import javax.media.jai.JAI; import javax.media.jai.*; import javax.media.jai.RenderedOp; import javax.media.jai.PlanarImage; import javax.media.jai.OpImage; import javax.media.jai.util.*; import javax.media.jai.remote.SerializableRenderedImage; import java.awt.image.renderable.ParameterBlock; import java.lang.Object; import java.awt.Image; import javax.swing.ImageIcon; import java.io.ByteArrayOutputStream.*; import com.csi.utils.StringUtils; import com.csi.daserver.global.*; import com.csi.dcserver.objects.DCSession; import com.csi.dcserver.exceptions.*; import com.csi.daserver.utils.MsgPool; import com.csi.dcserver.crypto.Crypto; import org.xml.sax.InputSource; import org.apache.fop.apps.Driver; import org.apache.fop.apps.XSLTInputHandler; import org.apache.fop.messaging.MessageHandler; import org.apache.avalon.framework.logger.ConsoleLogger; import org.apache.avalon.framework.logger.Logger; public class ImageDownload extends HttpServlet { Logger log = null; .... public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { ... //got the binary data in tiff format from database and put the binary data in byte array bt Byte[] bt = (byte[]) v.elementAt(0); sendPDFBinaryResponse(resp, req, bt, "application/pdf"); return; } } // private void sendPDFBinaryResponse(HttpServletResponse res,HttpServletRequest req, byte[] bt,StringsContTypeHeader) throws IOException, ServletException{ if(sContTypeHeader=="application/pdf"){ if (log == null) { log = new ConsoleLogger(ConsoleLogger.LEVEL_WARN); MessageHandler.setScreenLogger(log); } renderFO(new InputSource(new ByteArrayInputStream(bt)), res); } } public void renderFO(InputSource foFile, HttpServletResponse response) throws ServletException { try { ByteArrayOutputStream out = new ByteArrayOutputStream(); response.setContentType("application/pdf"); Driver driver = new Driver(foFile, out); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); driver.run(); byte[] content = out.toByteArray(); response.setContentLength(content.length); response.getOutputStream().write(content); response.getOutputStream().flush(); } catch (Exception ex) { throw new ServletException(ex); } } ... } **************** This is the exact error I got: org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1172) at org.apache.fop.apps.Driver.render(Driver.java:498) at org.apache.fop.apps.Driver.run(Driver.java:565) __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Fri Apr 02 20:53:18 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 77183 invoked from network); 2 Apr 2004 20:53:18 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 20:53:18 -0000 Received: (qmail 93255 invoked by uid 500); 2 Apr 2004 20:53:02 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 93235 invoked by uid 500); 2 Apr 2004 20:53:02 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 93199 invoked from network); 2 Apr 2004 20:53:01 -0000 Received: from unknown (HELO localhost.localdomain) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 20:53:01 -0000 Received: from localhost.localdomain (integerservices [83.161.120.155]) by localhost.localdomain (8.12.10/8.12.10) with ESMTP id i32Kr6tt022148 for <michealgarcia@example.com>; Fri, 2 Apr 2004 17:23:06 -0330 Received: (from john@localhost) by localhost.localdomain (8.12.10/8.12.10/Submit) id i32Kr51q022146 for michealgarcia@example.com; Fri, 2 Apr 2004 17:23:05 -0330 X-Authentication-Warning: localhost.localdomain: john set sender to michealgarcia@example.com using -f Subject: Re: urgent help needed using FOP From: John Austin <michealgarcia@example.com> To: michealgarcia@example.com In-Reply-To: <michealgarcia@example.com> References: <michealgarcia@example.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1080939185.19399.42.camel@integerservices> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Fri, 02 Apr 2004 17:23:05 -0330 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N You asked this question on the devl list and Chris gave you an excellent answer. He also suggested that you read up a bit on XSL-FO as there are standard techniques that can be used to embed TIFF images in XSL-FO documents. Several people spent a bit of time reading your servlet. Please re-read Chris' answer to you and look for an example XSL-FO document that embeds a TIFF graphic. You should be able to find XSL-FO resources on the web. Look for the web version of Dave Pawson's book. Look for the Mulberry resources and the OASIS web site. Search the FOP-USER archives as well as the Mulberry XSL list archive. I don't think you need a servlet yet. The first thing you need is an XSL-FO example of a document that embeds a TIFF document. You may need to understand XSL-FO better to do this. You can render this in PDF, PCL, etc using FOP from the command line. Your next step would be to generate the TIFF file from the database as Chris suggested. This could be done with a CGI or Servlet. You'll get a lot of help here as long as people can see that you've made some effort on your own. On Fri, 2004-04-02 at 14:27, Jerry wrote: > Hi, > > I have a problem with displaying tiff data in PDF > format using FOP. We have binary data in tiff stored > in database. What I need to do is to write a servlet > to get those binary data in tiff format from database > and put those data in a byte array. Next, in the same > servlet, I need to get those binary data in tiff > format from the byte array and display them on the web > in PDF format using FOP. I know if the binary data is > formatted object, it is easy to convert it into PDF > using FOP. However, the data in the byte array "bt" in > tiff does not belong to the standard formatting > object. > My understanding is I need to either convert > it into the formatting object using XSL or convert it > into XML. However, I am new to FOP and XML/XSL and do > not know how to do that. If possible, we need to > convert the data format in memory,that means, > everything is done in memory, not save it as a file > first and process using FOP. Anyone has the > experience and would like to share the knowledge and > experience with me, I will greatly appreciate. If you > have a piece of codes for me to share, that will be > greatly helpful. > > I also attached my piece of codes for your reference. > I know my code is not working, because I tried to > convert non-standard formatting object to PDF. I need > to do something about this part. Please help me. > > Thanks in advance, > > > Jerry > > *********************************************************** > import javax.servlet.*; > import javax.servlet.http.*; > import java.io.*; > import java.util.*; > import java.util.zip.*; > import java.sql.*; > import java.text.*; > > > import java.net.*; > import java.util.Properties; > import java.awt.image.*; > import com.sun.media.jai.codec.*; > import com.sun.media.jai.*; > import javax.media.jai.JAI; > import javax.media.jai.*; > import javax.media.jai.RenderedOp; > import javax.media.jai.PlanarImage; > import javax.media.jai.OpImage; > import javax.media.jai.util.*; > import > javax.media.jai.remote.SerializableRenderedImage; > import java.awt.image.renderable.ParameterBlock; > import java.lang.Object; > import java.awt.Image; > import javax.swing.ImageIcon; > import java.io.ByteArrayOutputStream.*; > > > import com.csi.utils.StringUtils; > import com.csi.daserver.global.*; > import com.csi.dcserver.objects.DCSession; > import com.csi.dcserver.exceptions.*; > import com.csi.daserver.utils.MsgPool; > import com.csi.dcserver.crypto.Crypto; > > > import org.xml.sax.InputSource; > > import org.apache.fop.apps.Driver; > import org.apache.fop.apps.XSLTInputHandler; > import org.apache.fop.messaging.MessageHandler; > > import > org.apache.avalon.framework.logger.ConsoleLogger; > import org.apache.avalon.framework.logger.Logger; > > > public class ImageDownload extends HttpServlet { > > Logger log = null; > .... > public void doGet(HttpServletRequest req, > HttpServletResponse resp) throws ServletException, > IOException { > > ... > > //got the binary data in tiff format from database > and put the binary data in byte array bt > Byte[] bt = (byte[]) v.elementAt(0); > > sendPDFBinaryResponse(resp, req, bt, > "application/pdf"); > return; > } > } > > // > private void > sendPDFBinaryResponse(HttpServletResponse > res,HttpServletRequest req, byte[] > bt,StringsContTypeHeader) throws IOException, > ServletException{ > > > > if(sContTypeHeader=="application/pdf"){ > > if (log == null) { > log = new > ConsoleLogger(ConsoleLogger.LEVEL_WARN); > MessageHandler.setScreenLogger(log); > } > > > renderFO(new InputSource(new > ByteArrayInputStream(bt)), res); > > > } > > } > > > > > > public void renderFO(InputSource foFile, > HttpServletResponse response) throws ServletException > { > try { > ByteArrayOutputStream out = new > ByteArrayOutputStream(); > > > response.setContentType("application/pdf"); > > Driver driver = new Driver(foFile, out); > driver.setLogger(log); > driver.setRenderer(Driver.RENDER_PDF); > > driver.run(); > > byte[] content = out.toByteArray(); > > > response.setContentLength(content.length); > response.getOutputStream().write(content); > response.getOutputStream().flush(); > > > > } catch (Exception ex) { > throw new ServletException(ex); > } > } > > ... > > } > > > **************** > This is the exact error I got: > > org.xml.sax.SAXParseException: Content is not allowed > in prolog. > at > org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1172) > at org.apache.fop.apps.Driver.render(Driver.java:498) > at org.apache.fop.apps.Driver.run(Driver.java:565) > > > __________________________________ > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway > http://promotions.yahoo.com/design_giveaway/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: michealgarcia@example.com > For additional commands, e-mail: michealgarcia@example.com -- John Austin <michealgarcia@example.com> --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Fri Apr 02 21:43:50 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 5215 invoked from network); 2 Apr 2004 21:43:50 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 21:43:50 -0000 Received: (qmail 21405 invoked by uid 500); 2 Apr 2004 21:43:17 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 21334 invoked by uid 500); 2 Apr 2004 21:43:17 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 21271 invoked from network); 2 Apr 2004 21:43:16 -0000 Received: from unknown (HELO hoth.whitehilltech.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 21:43:16 -0000 Received: by HOTH with Internet Mail Service (5.5.2653.19) id <GHSJ0KW5>; Fri, 2 Apr 2004 17:43:46 -0400 Message-ID: <60098A15DB40D511B69F00508B8B84BF04906BAE@HOTH> From: Rob Stote <michealgarcia@example.com> To: michealgarcia@example.com Subject: RE: Print PDF !!! Date: Fri, 2 Apr 2004 17:43:36 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C418FB.8DA00090" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C418FB.8DA00090 Content-Type: text/plain In java the ability to print PDF with the "new" Java printfinally wirks for PDF. You set the stream type to PDF and send it to the printer... Like so: import java.io.*; import javax.print.*; import javax.print.attribute.*; import javax.print.attribute.standard.*; import javax.print.event.*; public class Print { public static void main(String[] args) { try { // Open the image file InputStream is = new BufferedInputStream( new FileInputStream("filename.gif")); // Find the default service DocFlavor flavor = DocFlavor.INPUT_STREAM.PDF; PrintService service = PrintServiceLookup.lookupDefaultPrintService(); // Create the print job DocPrintJob job = service.createPrintJob(); Doc doc = new SimpleDoc(is, flavor, null); is.close(); } catch (IOException e) { } } } CAVEAT: This does not work in 1.4 Rob -----Original Message----- From: michealgarcia@example.com [mailto:michealgarcia@example.com] Sent: Friday, April 02, 2004 10:17 AM To: michealgarcia@example.com Subject: RE: Print PDF !!! yea, i went through this a onth ago and the only way to have a pdf pop out the printer from java was to use the above approach, postscript did not work for me, sonce there were diff in the printed doc, i went with runtime exec and called abode32.exe -----Original Message----- From: Chris Bowditch [mailto:michealgarcia@example.com] Sent: Friday, April 02, 2004 9:10 AM To: michealgarcia@example.com Subject: Re: Print PDF !!! michealgarcia@example.com wrote: > you can print pdfs from within java, assuming have xml and xsl use the > follwoing What you have suggested does not "print pdf" It uses java AWT classes to build the document and then print. AWT has differences from PDF or Postscript outputs, which are designed to be the same. <snip/> Chris --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com ------_=_NextPart_001_01C418FB.8DA00090 Content-Type: text/html Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2657.73"> <TITLE>RE: Print PDF !!!</TITLE> </HEAD> <BODY> <P><FONT SIZE=3D2>In java the ability to print PDF with the = &quot;new&quot; Java printfinally wirks for PDF. You set the stream = type to PDF and send it to the printer...</FONT></P> <P><FONT SIZE=3D2>Like so:</FONT> </P> <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>import = java.io.*;</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>import = javax.print.*;</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>import = javax.print.attribute.*;</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>import = javax.print.attribute.standard.*;</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>import = javax.print.event.*;</FONT> <BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; </FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>public = class Print {</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>public static = void main(String[] args) {</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>try {</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>// Open the = image file</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>InputStream = is =3D new BufferedInputStream(</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>new = FileInputStream(&quot;filename.gif&quot;));</FONT> <BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; </FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>// Find the = default service</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>DocFlavor = flavor =3D DocFlavor.INPUT_STREAM.PDF;</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>PrintService = service =3D&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = PrintServiceLookup.lookupDefaultPrintService();</FONT></P> <P><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; </FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>// Create the = print job</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>DocPrintJob = job =3D service.createPrintJob();</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>Doc doc =3D = new SimpleDoc(is, flavor, null);</FONT> </P> <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT = SIZE=3D2>is.close();</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>} catch = (IOException e) {</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>}</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>}</FONT> <BR><FONT SIZE=3D2>}</FONT> </P> <P><FONT SIZE=3D2>CAVEAT: This does not work in 1.4</FONT> </P> <BR> <P><FONT SIZE=3D2>Rob</FONT> </P> <BR> <P><FONT SIZE=3D2>-----Original Message-----</FONT> <BR><FONT SIZE=3D2>From: michealgarcia@example.com [<A = HREF=3D"mailto:michealgarcia@example.com">mailto:Robert.Walker@V= erizonWireless.com</A>] </FONT> <BR><FONT SIZE=3D2>Sent: Friday, April 02, 2004 10:17 AM</FONT> <BR><FONT SIZE=3D2>To: michealgarcia@example.com</FONT> <BR><FONT SIZE=3D2>Subject: RE: Print PDF !!!</FONT> </P> <BR> <P><FONT SIZE=3D2>yea, i went through this a onth ago and the only way = to have a pdf pop</FONT> <BR><FONT SIZE=3D2>out the printer from java was to use the above = approach, postscript </FONT> <BR><FONT SIZE=3D2>did not work for me, sonce there were diff in the = printed doc, i went with</FONT> <BR><FONT SIZE=3D2>runtime exec and called abode32.exe</FONT> </P> <BR> <P><FONT SIZE=3D2>-----Original Message-----</FONT> <BR><FONT SIZE=3D2>From: Chris Bowditch [<A = HREF=3D"mailto:michealgarcia@example.com">mailto:bowditch_chris@hotmail= .com</A>]</FONT> <BR><FONT SIZE=3D2>Sent: Friday, April 02, 2004 9:10 AM</FONT> <BR><FONT SIZE=3D2>To: michealgarcia@example.com</FONT> <BR><FONT SIZE=3D2>Subject: Re: Print PDF !!!</FONT> </P> <BR> <P><FONT SIZE=3D2>michealgarcia@example.com wrote:</FONT> </P> <P><FONT SIZE=3D2>&gt; you can print pdfs from within java, assuming = have xml and xsl use the</FONT> <BR><FONT SIZE=3D2>&gt; follwoing</FONT> </P> <P><FONT SIZE=3D2>What you have suggested does not &quot;print = pdf&quot; It uses java AWT classes to</FONT> <BR><FONT SIZE=3D2>build </FONT> <BR><FONT SIZE=3D2>the document and then print. AWT has differences = from PDF or Postscript </FONT> <BR><FONT SIZE=3D2>outputs, which are designed to be the same.</FONT> </P> <P><FONT SIZE=3D2>&lt;snip/&gt;</FONT> </P> <P><FONT SIZE=3D2>Chris</FONT> </P> <BR> <BR> <P><FONT = SIZE=3D2>---------------------------------------------------------------= ------</FONT> <BR><FONT SIZE=3D2>To unsubscribe, e-mail: = michealgarcia@example.com</FONT> <BR><FONT SIZE=3D2>For additional commands, e-mail: = michealgarcia@example.com</FONT> </P> <P><FONT = SIZE=3D2>---------------------------------------------------------------= ------</FONT> <BR><FONT SIZE=3D2>To unsubscribe, e-mail: = michealgarcia@example.com</FONT> <BR><FONT SIZE=3D2>For additional commands, e-mail: = michealgarcia@example.com</FONT> </P> </BODY> </HTML> ------_=_NextPart_001_01C418FB.8DA00090-- From michealgarcia@example.com Fri Apr 02 22:18:39 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 18317 invoked from network); 2 Apr 2004 22:18:39 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Apr 2004 22:18:39 -0000 Received: (qmail 92468 invoked by uid 500); 2 Apr 2004 22:18:09 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 92425 invoked by uid 500); 2 Apr 2004 22:18:08 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 92253 invoked from network); 2 Apr 2004 22:18:07 -0000 Received: from unknown (HELO web40701.mail.yahoo.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Apr 2004 22:18:07 -0000 Message-ID: <michealgarcia@example.com> Received: from [83.161.120.155] by web40701.mail.yahoo.com via HTTP; Fri, 02 Apr 2004 14:18:13 PST Date: Fri, 2 Apr 2004 14:18:13 -0800 (PST) From: Jim Skelton <michealgarcia@example.com> Subject: client applet to display PDF generated from XML To: michealgarcia@example.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Does anyone know of an applet or other method available that can take an XML file with an XML-FO XSLT and internally generate a PDF file which can then be displayed in a browser (probably a frame)? This seems to be done all the time with servlets, but I'm having difficulty trying to find a stand-alone applet that can do this. I have things setup to generate PDF files using FOP on the commandline, but I would like this to work soley on a client, within IE for example, so that a user can select the XML content within the browser and have it display in PDF format, where the user could possibly save or print it. Is such an applet available? Thanks for your help. __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Mon Apr 05 01:12:02 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 43783 invoked from network); 5 Apr 2004 01:12:02 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 5 Apr 2004 01:12:02 -0000 Received: (qmail 21842 invoked by uid 500); 5 Apr 2004 01:11:42 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 21381 invoked by uid 500); 5 Apr 2004 01:11:39 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 21353 invoked from network); 5 Apr 2004 01:11:39 -0000 Received: from unknown (HELO correosrv.nht-norwick.com) (83.161.120.155) by daedalus.apache.org with SMTP; 5 Apr 2004 01:11:39 -0000 Received: (qmail 21839 invoked by uid 1005); 5 Apr 2004 01:11:46 -0000 Received: from michealgarcia@example.com by CORREOSRV by uid 1002 with qmail-scanner-1.12 (. Clear:. Processed in 0.096058 secs); 05 abr 2004 01:11:46 -0000 Received: from unknown (HELO telefonica.net) (michealgarcia@example.com@[83.161.120.155]) (envelope-sender <michealgarcia@example.com>) by correosrv.nht-norwick.com (qmail-ldap-1.03) with SMTP for <michealgarcia@example.com>; 5 Apr 2004 01:11:46 -0000 Message-ID: <michealgarcia@example.com> Date: Mon, 05 Apr 2004 03:13:01 +0200 From: Enrique Rodriguez Lasterra <michealgarcia@example.com> User-Agent: Mozilla Thunderbird 0.5 (X11/20040306) X-Accept-Language: en-us, en MIME-Version: 1.0 To: michealgarcia@example.com Subject: columns and images Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, I'm developing and xsl to render documents in two columns. These documents usually have tables and i like to span they to see it better. I'm wirting the table inside a block with the span="all" attribute, but the table still be attached to one column. Does fop support this feature? Regards, Enrique. code: . . . <fo:block space-after.optimum="4pt" space-after.maximum="6pt" space-after.minimum="2pt" space-before.optimum="4pt" space-before.maximum="6pt" space-before.minimum="2pt" font-size="8pt" span="all"> <fo:table margin-right="2mm" margin-left="2mm" table-layout="fixed" width="100%"> . . . --------------------------------------------------------------------- To unsubscribe, e-mail: michealgarcia@example.com For additional commands, e-mail: michealgarcia@example.com From michealgarcia@example.com Mon Apr 05 07:22:36 2004 Return-Path: <michealgarcia@example.com> Delivered-To: michealgarcia@example.com Received: (qmail 45058 invoked from network); 5 Apr 2004 07:22:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 5 Apr 2004 07:22:36 -0000 Received: (qmail 96728 invoked by uid 500); 5 Apr 2004 07:22:06 -0000 Delivered-To: michealgarcia@example.com Received: (qmail 96694 invoked by uid 500); 5 Apr 2004 07:22:06 -0000 Mailing-List: contact michealgarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:michealgarcia@example.com> list-unsubscribe: <mailto:michealgarcia@example.com> list-post: <mailto:michealgarcia@example.com> Reply-To: michealgarcia@example.com Delivered-To: mailing list michealgarcia@example.com Received: (qmail 96668 invoked from network); 5 Apr 2004 07:22:06 -0000 Received: from unknown (HELO web10908.mail.yahoo.com) (83.161.120.155) by daedalus.apache.org with SMTP; 5 Apr 2004 07:22:06 -0000 Message-ID: <michealgarcia@example.com> Received: from [83.161.120.155] by web10908.mail.yahoo.com via HTTP; Mon, 05 Apr 2004 00:22:18 PDT Date: Mon, 5 Apr 2004 00:22:18 -0700 (PDT) From: Varadharajan Sethuraman <michealgarcia@example.com> Subject: hide logging message To: michealgarcia@example.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I was running the sample of ExampleXML2PDF. Its working fine. [ERROR] Logger not set [INFO] building formatting object tree [WARNING] Screen logger not set - Using ConsoleLogger. [INFO] setting up fonts [INFO] [1] [INFO] Parsing of document complete, stopping renderer But I am getting the above message in the console. is Logger must set in the Driver class? or How do
{'source': 'Apache Software Foundation Public Mail Archives'}