electronically sign and authenticate PDF files
Hi *, Is it posible to electronically sign PDF files that will be created with FOP?? Are there any features in FOP?? Has some one already tried it?? regards Dmitri
Re: Codeformatting finished
On Mon, 30 Jul 2001, Arved Sandstrom wrote: I see in ViewCVS that everything looks OK, and I managed to 'cvs update' one file as a test, but I can't 'cvs checkout' at the moment. Anyone else having this problem? Nope, I checked out just now. [snip] If I can figure out exactly what it is you did, and restore my 'cvs checkout', I can take care of 3 of these. They were affected by marker support, basically. Shouldn't conflict with Mark's changes, in a logical sense, but 'patch' might not think so. [snip] OK, I'm not sure I understand 100%. The current CVS does _not_ reflect Mark's patch at all, and you have a patch which applies a portion of Mark's patch, to the _formatted_ codebase. Is that correct? And it is then a question of applying the rest of the patch to Block, AreaTree, Page, and TestConverter, right? Just trying to get my head straight. :-) You're right. It was getting a little late and reformatting took much longer time then estimated - guess i boggered up my brain :) The current CVS does not reflect Mark's patch. The original attachment contained a portion of Mark's patch to the formatted codebase. Tore Regards, Arved P.S. Thanks for the yeoman effort. -- Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Halifax, Nova Scotia Wireless * B2B * J2EE * XML - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Headers and pagination
Hi all, I'm wondering if anyone can tell me how to have varying headers for the same page sequence or make page numbers flow over a number of page sequences. I don't think I can, but I'm new to all of this and I could've have missed something really simple. I know I can get different headers for each page sequence, but I don't know how to make the page number flow on from the previous page sequence. Using initial-page-number would work, but I don't know how many pages are in the first sequence, and I also don't know how many pages are in the subsequent page sequence. Cheers Tim Keen Analyst Programmer WERD Project Dept of Natural Resources Mines 4th Floor, Mineral House 41 George St Brisbane QLD 4000 (07) 3224 2559 (ph) (07) 3224 7963 (fax) [EMAIL PROTECTED] The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: fop and parsers
Dear Adel, You need to test it with parser of your choice. Normally you have to do slight modifications to get correct results. I am using Oracle XSLT and it is working fine. Wish you luck. - Original Message -- adel ben [EMAIL PROTECTED] wrote: To:[EMAIL PROTECTED] From:adel ben [EMAIL PROTECTED] Date:Mon, 30 Jul 2001 05:59:00 -0700 (PDT) Subject:fop and parsers Hi all, I have tested FOP with the xerces parser and xalan processor and it works correctly. However, I would like to use other packages like jaxp. Can FOP work without any modification in the source code? can anyone tell me if it can work correctly with other parsers and processors. with regards, adel ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Raju Dave iORMYX GmbH Frankfurt am Main Germany [EMAIL PROTECTED] [EMAIL PROTECTED] _ For Rs. 2,000,000 worth of Aptech scholarships click below http://events.rediff.com/aptechsch/scholarship.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Headers and pagination
At 05:59 PM 7/31/01 +1000, [EMAIL PROTECTED] wrote: I know I can get different headers for each page sequence, but I don't know how to make the page number flow on from the previous page sequence. Using initial-page-number would work, but I don't know how many pages are in the first sequence, and I also don't know how many pages are in the subsequent page sequence. Hi, Tim FOP now implements fully 2 properties on fo:page-sequence that are exactly what you need - 'force-page-count' and 'initial-page-number'. You will be the first known 3rd party tester. :-) The _default_ behaviour of page-numbering is to already do what you want to do (the default behaviour of 'initial-page-number'). The aforementioned properties happen to give you extra flexibility. Also check out the 'format' property... Regards, Arved Sandstrom Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Headers and pagination
Title: RE: Headers and pagination Hi, I've just been playing with this stuff, and it all seems to work fine. If you don't specify initial-page-number the pages will happily keep counting; you can even change the format between page sequences without affecting the count. One thing I did notice: if you use initial-page-number then something tries to force the new page sequence onto an odd page; this does not happen when allowing the page numbers to flow on between sequences. You can prevent this behaviour using force-page-count=no-force (I'm assuming it defaults to auto when using initial-page-count). FOP now implements fully 2 properties on fo:page-sequence that are exactly what you need - 'force-page-count' and 'initial- page-number'. You will be the first known 3rd party tester. :-) Also check out the 'format' property... I've included a test sample below which works fine with last night's CVS. Just change the commented page-sequence bits to experiment with the different numbering/formatting possibilities. Regards, Twylite -- XML included below, hope your mailer knows what not to do. ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format fo:layout-master-set fo:simple-page-master master-name=cover page-height=29.7cm page-width=21cm margin-top=2.5cm margin-bottom=2.5cm margin-left=2.5cm margin-right=2cm fo:region-after extent=1cm / fo:region-body margin-top=3cm / /fo:simple-page-master fo:simple-page-master master-name=meta page-height=29.7cm page-width=21cm margin-top=2.5cm margin-bottom=2.5cm margin-left=2.5cm margin-right=2cm fo:region-after extent=1cm / fo:region-body margin-top=1.1cm margin-bottom=1.1cm / /fo:simple-page-master fo:simple-page-master master-name=bodypage page-height=29.7cm page-width=21cm margin-top=2.5cm margin-bottom=2.5cm margin-left=2.5cm margin-right=2cm fo:region-after extent=1cm / fo:region-body margin-top=2.1cm margin-bottom=1.1cm / /fo:simple-page-master /fo:layout-master-set !-- fo:page-sequence master-name=cover -- fo:page-sequence master-name=cover force-page-count=no-force fo:static-content flow-name=xsl-region-after fo:block font-family=Helvetica font-size=10pt text-align=start Page: fo:page-number / /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block font-family=Helvetica font-size=18pt text-align=center My Reference Manual /fo:block /fo:flow /fo:page-sequence !-- fo:page-sequence master-name=meta format=i -- !-- fo:page-sequence master-name=meta format=i initial-page-number=1 -- fo:page-sequence master-name=meta format=i initial-page-number=1 force-page-count=no-force fo:static-content flow-name=xsl-region-after fo:block font-family=Helvetica font-size=10pt text-align=start Page: fo:page-number / /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block font-family=Times Roman font-size=12pt text-align=justify First page of metadata. /fo:block /fo:flow /fo:page-sequence !-- fo:page-sequence master-name=bodypage -- fo:page-sequence master-name=bodypage initial-page-number=1 fo:static-content flow-name=xsl-region-after fo:block font-family=Helvetica font-size=10pt text-align=start Page: fo:page-number / /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block font-family=Times Roman font-size=12pt text-align=justify First page of body. /fo:block /fo:flow /fo:page-sequence /fo:root
[Bug 2880] - Incorrect rendering on non-ASCII machines
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2880 *** shadow/2880 Mon Jul 30 02:14:16 2001 --- shadow/2880.tmp.8889Tue Jul 31 03:40:41 2001 *** *** 21,24 I suppose you're using methods like writeBytes or writeChars or something like that. In EBCDIC machines the results are different when writen bytes or chars ! to a file. --- 21,32 I suppose you're using methods like writeBytes or writeChars or something like that. In EBCDIC machines the results are different when writen bytes or chars ! to a file. ! ! --- Additional Comments From [EMAIL PROTECTED] 2001-07-31 03:40 --- ! I've been working on source files. I've found a possible soultion. The error is ! caused by the use of getBytes() in String translations. I've susbstituted ! getBytes() by getBytes(ISO-8859-1), so the render of PDF files runs in my ! EBCDIC (S390) machine and in my ASCII (windows) machine. ! I think the PDFDocument class should include a setEncoding(String enc) and ! a getEncoding() methods. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Add a blank page at end of fo:sequence-page
Hi. I'm interested to add a blank page at end of fo:sequence-page when the number of page is odd. I am interested that every o:page-sequenceof my document *.fo has a even number of pages. does anybody know how can i do that iun fop 0.17. Thanks. Antonio M. Marín FernándezSADIEL, S.A.c/ Isaac Newton s/n Edificio Sadiel - Sodean, Isla de la Cartuja41092 SEVILLATel. 955043600 Fax 955043601Tel. 955064712http://www.sadiel.es e-mail: [EMAIL PROTECTED]
Re: pdf to xml ?????
Hai Alex, Thanks a lot for ur prompt response.Actually I'm trying to create structured xml of the content of a PDF file. thanx again in advance rajiv --- Alex McLintock [EMAIL PROTECTED] wrote: --- rajeev nair [EMAIL PROTECTED] wrote: hi all, How can i convert pdf files into xml files. Any help will be greatly appreciated. regards rajiv 1) When asking questions like this it is best if you give more details of what you are trying to do. Are you trying to create structured xml of the content of a PDF file, or are you trying to get an XSL:FO representation of the whole page? Are you trying to convert PDF into SVG? 2) FOP is a rendering tool for XSL:FO so this is off topic. Alex = Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ DR WHO COMPETITION: http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104 Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: pdf to xml ?????
Thanks a lot for ur prompt response.Actually I'm trying to create structured xml of the content of a PDF file. You may want to have a look at this: http://www.planetmarkup.com/mainpage.asp?webpageid=76 Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Question and FAQ
Hi, Sorry for this may-be very common question, but I can't reach the FAQ because it is on the 8090 port and our firewall doesn't let us use this port. Is there another way to reach the FAQ (through a 'normal' port)? Therefore here is my qustion: I tested my xsl-fo with FOP using the -awt option to preview it. Very nice and handy. But I realised that the 'real' PDF doens't appear the same as the awt preview!!! Manly with the table borders! How come the rendering is better on the previewer than on the pdf file? Is there a way to change it (except waiting for you guys who make a fabulous job to finish it)? Thanks and cheers Emmanuel Ponette Euro DB Place de l'Université, 16 B-1348 Louvain-La-Neuve Phone: +32 10 47 67 44 Fax: +32 10 47 67 67 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/apps XTDriver.java
keiron 01/07/31 05:51:18 Modified:src/org/apache/fop/apps XTDriver.java Log: don't need to add prop mappings anymore Revision ChangesPath 1.6 +1 -30 xml-fop/src/org/apache/fop/apps/XTDriver.java Index: XTDriver.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/XTDriver.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- XTDriver.java 2001/07/30 20:29:18 1.5 +++ XTDriver.java 2001/07/31 12:51:18 1.6 @@ -1,5 +1,5 @@ /* - * $Id: XTDriver.java,v 1.5 2001/07/30 20:29:18 tore Exp $ + * $Id: XTDriver.java,v 1.6 2001/07/31 12:51:18 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -175,35 +175,6 @@ } catch (ClassCastException e) { MessageHandler.errorln(mappingClassName + is not an element mapping); -} -return null; -} - -/** - * add the element mapping with the given class name - */ -public void addPropertyList(String listClassName) { -createPropertyList(listClassName).addToBuilder(this.treeBuilder); -} - -/** - * protected method used by addPropertyList(String) to - * instantiate list mapping class - */ -protected PropertyListMapping createPropertyList(String listClassName) { -MessageHandler.logln(using property list mapping + listClassName); - -try { -return (PropertyListMapping)Class.forName(listClassName).newInstance(); -} catch (ClassNotFoundException e) { -MessageHandler.errorln(Could not find + listClassName); -} catch (InstantiationException e) { -MessageHandler.errorln(Could not instantiate + listClassName); -} catch (IllegalAccessException e) { -MessageHandler.errorln(Could not access + listClassName); -} catch (ClassCastException e) { -MessageHandler.errorln(listClassName - + is not an property list); } return null; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fop -xml file.xml -xsl file.xsl -pdf file.pdf
Hi all, Here is what I want to do. I am using the Fop command line application giving to it three parameters: the xml file, the xsl file and the name of the output pdf file. I have an xml file with the following content: document chapter title./title paragraph color=blue size=19pt text. /text /paragraph paragraph color=red size=10pt text. /text /paragraph /chapter chapter /chapter /document The idea is that color and size attributes are specific to each paragraph. The texts within different paragraphs could be coloured in different colours and could have different sizes. I tried to build the xsl file and for a paragraph I used a fo:block formatting object. The problem is that the font_size attribute of fo:block formatting object has to have a fixed value, so the xsl file should look like xsl:template match=paragraph fo:block font-size=9pt font-family=sans-serif line-height=10pt text-align=start background-color=blue start-indent=1cm xsl:value-of select=./ /fo:block /xsl:template But I would like that the font-size and background-color to take the values (somehow and I don't know how) from xml file. I tried something like this: fo:block font-size=xsl:value-of select=@size/ font-family=sans-serif line-height=10pt text-align=start background-color=blue start-indent=1cm xsl:value-of select=./ /fo:block but it didn't work. Can anyone help me? Thanks, Horiana - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: fop -xml file.xml -xsl file.xsl -pdf file.pdf
Hi Horiana, using xsl:attribute ... should work for you. It sets an attribute to the parent (short version:) fo:block xsl:attribute name=background-color xsl:value-of select=@bgcolor/ /xsl:attribute xsl:attribute name=font-size xsl:value-of select=@size/ /xsl:attribute xsl:value-of select=./ /fo:block Erik Rehrmann IOn AG - [EMAIL PROTECTED] -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 31. Juli 2001 15:21 An: [EMAIL PROTECTED] Betreff: fop -xml file.xml -xsl file.xsl -pdf file.pdf Hi all, Here is what I want to do. I am using the Fop command line application giving to it three parameters: the xml file, the xsl file and the name of the output pdf file. I have an xml file with the following content: document chapter title./title paragraph color=blue size=19pt text. /text /paragraph paragraph color=red size=10pt text. /text /paragraph /chapter chapter /chapter /document The idea is that color and size attributes are specific to each paragraph. The texts within different paragraphs could be coloured in different colours and could have different sizes. I tried to build the xsl file and for a paragraph I used a fo:block formatting object. The problem is that the font_size attribute of fo:block formatting object has to have a fixed value, so the xsl file should look like xsl:template match=paragraph fo:block font-size=9pt font-family=sans-serif line-height=10pt text-align=start background-color=blue start-indent=1cm xsl:value-of select=./ /fo:block /xsl:template But I would like that the font-size and background-color to take the values (somehow and I don't know how) from xml file. I tried something like this: fo:block font-size=xsl:value-of select=@size/ font-family=sans-serif line-height=10pt text-align=start background-color=blue start-indent=1cm xsl:value-of select=./ /fo:block but it didn't work. Can anyone help me? Thanks, Horiana - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: fop -xml file.xml -xsl file.xsl -pdf file.pdf
Hello! U have to convert xml into fo first and then you can use command line utility. I would suggest using batch file to combine two steps of converting into fo and then into pdf. Raju Here is what I want to do. I am using the Fop command line application giving to it three parameters: the xml file, the xsl file and the name of the output pdf file. I have an xml file with the following content: document chapter title./title paragraph color=blue size=19pt text. /text /paragraph paragraph color=red size=10pt text. /text /paragraph /chapter chapter /chapter /document The idea is that color and size attributes are specific to each paragraph. The texts within different paragraphs could be coloured in different colours and could have different sizes. I tried to build the xsl file and for a paragraph I used a fo:block formatting object. The problem is that the font_size attribute of fo:block formatting object has to have a fixed value, so the xsl file should look like xsl:template match=paragraph fo:block font-size=9pt font-family=sans-serif line-height=10pt text-align=start background-color=blue start-indent=1cm xsl:value-of select=./ /fo:block /xsl:template But I would like that the font-size and background-color to take the values (somehow and I don't know how) from xml file. I tried something like this: fo:block font-size=xsl:value-of select=@size/ font-family=sans-serif line-height=10pt text-align=start background-color=blue start-indent=1cm xsl:value-of select=./ /fo:block but it didn't work. Can anyone help me? Thanks, Horiana - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Raju Dave iORMYX GmbH Frankfurt am Main Germany [EMAIL PROTECTED] [EMAIL PROTECTED] _ For Rs. 2,000,000 worth of Aptech scholarships click below http://events.rediff.com/aptechsch/scholarship.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: AW: fop -xml file.xml -xsl file.xsl -pdf file.pdf
Thank you very much. It worked. Horiana Erik Rehrmann rehrmann@ionTo: '[EMAIL PROTECTED]' [EMAIL PROTECTED] .ag cc: Subject: AW: fop -xml file.xml -xsl file.xsl -pdf file.pdf 31/07/2001 16:31 Please respond to fop-dev Hi Horiana, using xsl:attribute ... should work for you. It sets an attribute to the parent (short version:) fo:block xsl:attribute name=background-color xsl:value-of select=@bgcolor/ /xsl:attribute xsl:attribute name=font-size xsl:value-of select=@size/ /xsl:attribute xsl:value-of select=./ /fo:block Erik Rehrmann IOn AG - [EMAIL PROTECTED] -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 31. Juli 2001 15:21 An: [EMAIL PROTECTED] Betreff: fop -xml file.xml -xsl file.xsl -pdf file.pdf Hi all, Here is what I want to do. I am using the Fop command line application giving to it three parameters: the xml file, the xsl file and the name of the output pdf file. I have an xml file with the following content: document chapter title./title paragraph color=blue size=19pt text. /text /paragraph paragraph color=red size=10pt text. /text /paragraph /chapter chapter /chapter /document The idea is that color and size attributes are specific to each paragraph. The texts within different paragraphs could be coloured in different colours and could have different sizes. I tried to build the xsl file and for a paragraph I used a fo:block formatting object. The problem is that the font_size attribute of fo:block formatting object has to have a fixed value, so the xsl file should look like xsl:template match=paragraph fo:block font-size=9pt font-family=sans-serif line-height=10pt text-align=start background-color=blue start-indent=1cm xsl:value-of select=./ /fo:block /xsl:template But I would like that the font-size and background-color to take the values (somehow and I don't know how) from xml file. I tried something like this: fo:block font-size=xsl:value-of select=@size/ font-family=sans-serif line-height=10pt text-align=start background-color=blue start-indent=1cm xsl:value-of select=./ /fo:block but it didn't work. Can anyone help me? Thanks, Horiana - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tables on multiple pages
Hi, sorry if it was asked many times before, but I'm waiting for Alex to sort the FAQ problem out ;o) What should I do for my tables to go to another page (with title if possible) if it is bigger than the page size? Private answer can be done if it is a common question. Cheers Emmanuel Ponette Euro DB Place de l'Université, 16 B-1348 Louvain-La-Neuve Phone: +32 10 47 67 44 Fax: +32 10 47 67 67 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Fatal error again
I assume the person who posted me this is getting this error and wants to know more...It doesn't really look like volunteered information for the FAQ. Alex Originally from: [EMAIL PROTECTED] Date: Tue, 31 Jul 2001 08:21:20 + (GMT+00:00) Subject: [FAQ] FATAL ERROR null Driver driver = new Driver(); driver.setRenderer( Driver.RENDER_PDF ); org.apache.fop.apps.InputHandler inputHandler = new org.apache.fop.apps.XSLTInputHandler(xmlFile, xslFile); //on this line I obtain FATAL ERROR null XMLReader parser = inputHandler.getParser(); driver.buildFOTree(parser, inputHandler.getInputSource()); driver.format(); driver.setOutputStream(new FileOutputStream(new File(d:\\test.pdf))); driver.render(); = Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ DR WHO COMPETITION: http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104 Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: AW: fop -xml file.xml -xsl file.xsl -pdf file.pdf
Sorry I can't check the archives but they seem to be down. I'm having trouble with keep properties: I need to ensure that titles aren't orphaned from their bodies. I want to add keep-with-next.within-page=always to the block that contains the title page, but it doesn't work and is noted on the features page as being broken. When will there be a fixed version? keep-together would also be incredibly useful. This problem makes fop almost unusable for me, as otherwise I have to tell the authors to 'add more words to get the pages to lay out nice' which is not really OK... Another question: the -awt renderer. Is there any standard programmatic way to divert that output into a custom viewer so that fop can be used to create the reporting piece for a Swing db-based application, or should I just attack the source with a blunt intelligence? This has potential to solve all my problems! Thanks, Alistair -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:43 PM To: [EMAIL PROTECTED] Subject: Re: AW: fop -xml file.xml -xsl file.xsl -pdf file.pdf Thank you very much. It worked. Horiana Erik Rehrmann rehrmann@ionTo: '[EMAIL PROTECTED]' [EMAIL PROTECTED] .ag cc: Subject: AW: fop -xml file.xml -xsl file.xsl -pdf file.pdf 31/07/2001 16:31 Please respond to fop-dev Hi Horiana, using xsl:attribute ... should work for you. It sets an attribute to the parent (short version:) fo:block xsl:attribute name=background-color xsl:value-of select=@bgcolor/ /xsl:attribute xsl:attribute name=font-size xsl:value-of select=@size/ /xsl:attribute xsl:value-of select=./ /fo:block Erik Rehrmann IOn AG - [EMAIL PROTECTED] -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 31. Juli 2001 15:21 An: [EMAIL PROTECTED] Betreff: fop -xml file.xml -xsl file.xsl -pdf file.pdf Hi all, Here is what I want to do. I am using the Fop command line application giving to it three parameters: the xml file, the xsl file and the name of the output pdf file. I have an xml file with the following content: document chapter title./title paragraph color=blue size=19pt text. /text /paragraph paragraph color=red size=10pt text. /text /paragraph /chapter chapter /chapter /document The idea is that color and size attributes are specific to each paragraph. The texts within different paragraphs could be coloured in different colours and could have different sizes. I tried to build the xsl file and for a paragraph I used a fo:block formatting object. The problem is that the font_size attribute of fo:block formatting object has to have a fixed value, so the xsl file should look like xsl:template match=paragraph fo:block font-size=9pt font-family=sans-serif line-height=10pt text-align=start background-color=blue start-indent=1cm xsl:value-of select=./ /fo:block /xsl:template But I would like that the font-size and background-color to take the values (somehow and I don't know how) from xml file. I tried something like this: fo:block font-size=xsl:value-of select=@size/ font-family=sans-serif line-height=10pt text-align=start background-color=blue start-indent=1cm xsl:value-of select=./ /fo:block but it didn't work. Can anyone help me? Thanks, Horiana - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: XSL-FO Engine comparisons
I've been spending a lot of time lately with Docbook and XSL-FO as part of the ongoing development of my next book, Processing XML with Java. To that end, I've been putting the various XSL-FO engines on the market through their paces. I'm trying to find one that will actually let me produce the complete, finished book from my Docbook source code and Norm Walsh's XSLT-to-XSL-FO stylesheet. I thought I'd share my experiences here. It's not FO-based, but I've been experimenting with ReportMill, which was originally for use with WebObjects but is not (more or less) accessible via Java. It looks pretty promising but I don't think it's geared toward long structured documents. -- Steve Lane Vice President Chris Moyer Consulting, Inc. 833 West Chicago Ave Suite 203 (312) 433-2421 http://www.fmpro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: XSL-FO Engine comparisons
Hi, I am now working on reporting tool which outputs reports into XSL FO, so I have some experinece with tools described here. Althoug we are using only quite simple formatting I would like to say something to this topic as well. On 31 Jul 2001, at 9:24 Elliotte Rusty Harold wrote about XSL-FO Engine comparisons : FOP FOP was the first XSL-FO engine and is certainly the most popular. It's open source and far easier to install than PassiveTeX, the other open source alternative. However, of the ones I was able to actually test it produced by far the worst output. It had the most annoying formatting troubles. For example, it ate all the blank lines in my source code I have to agree that FOP is worst I have used, but is improving rapidly. In version 0.17, which was recent in the time I started to follow developement it was practicaly unusable due to lack of international support. Now I am quite satisfied, in basics FOP fullfills our needs although some workarounds are still needed. examples and put extra indentation at the front of the first line of each example. I've noticed that probably more than half of the bug reports on the Docbook-APPS mailing list about the Docbook XSL-FO stylesheets can actually be attributed to bugs in FOP. FOP is improving rapidly -- one major bug I noted in footnote handling was fixed in the last couple of weeks while I was performing my tests -- but it's clearly not even an alpha quality release yet. A lot of work needs to be done before FOP can be recommended for more than experimentation. XEP I was unable to get XEP to run. It was totally non-functional, and did not produce any output. I know some other people have gotten it to run -- the PDF version of the XSL specification was produced with XEP. However, it simply did not work for me at all. However good the XEP engine may be at converting XSL-FO documents to PDF, its horrible user interface and incomprehensible installation procedure eliminated it from my consideration. I am using evaluation version of XEP with success. It is far better than FOP. It has strange behavior on repeating table headers and it doesn't support collapsing border model on tables. Instalation i quite easy, version 2.50 has even installer which configures BAT file for you. There is one issue - JAXP MUST NOT be installed as JAVA extension - In that case XEP fails with Class not found exception. PassiveTeX As I had some experience with TeX that suggested that TeX is I nightmare I even didn't try It. :-)) Antenna House XSL Formatter The Antenna House XSL Formatter produced very attractive output, on a par with that generated by PassiveTeX and much better than FOP's. I noticed no major flaws or cosmetic bugs. Antenna House also claims they're the only formatter able to handle mixed writing-modes such as "tb-rl" for Chinese/Japanese/Korean, though I didn't test that. I have to agree that Antenna is best I have seen Most importantly, Antenna House had by far the easiest installation and the nicest user interface of all the formatters tested. More work is still needed, but at least I could conceive of giving this formatter to a non-programmer end-user. The others all have effectively non-existent user interfaces, and horrible installation procedures. The Antenna house I think that lack of user interface is not bug but feature, FOP and XEP are renderers intended for usage in application servers and servlets. Software that will provide environment for creating and rendering FO documnets via services like FOP and XEP must be created. Problems with instalation and similar things are common feature of really portable and OS independent Java software. formatter was the only one of the four that took me less than an hour from download to first use. The downside to this otherwise excellent engine is that it's Windows only and based on Windows graphics primitives rather than PostScript or PDF. It displays on the screen very nicely, and prints nicely too. However, it does not produce a PDF document that I can send to my editor or a typesetter. Bottom line: none of the formatters are yet suitable for producing a finished product. one of them can replace TeX or QuarkXPress. You might I think there is other reason for formatters beeing not production redy as well. This reason is that XSL FO is only in CR state of its first version. I think 1.1 or 2.0 XSL FO Recomendation will be far better. be able to publish a simple book with these, but you'd have to design your book and style sheet so that you avoided the bugs and unimplemented features of the processor. Antenna House probably produces the most polished output, and I'd use it if all I wanted to do was print out a document from my laser printer. However, since I need PDF files I can send to my editors and download to a typesetter, my choice for the time being is PassiveTeX. -- pa
Re: Codeformatting finished
Hi. After codeformatting, some file is broken, I guess. Looking into org/apache/fop/fonts/Glyphs.java and org/apache/fop/layout/LineArea.java, for example, unicode-escaped characters(such as \u2297) become unescaped or ?. (Maybe, characters in ISO-8859-1 got unescaped, and others become ?.) Though Fop still compiles , these may cause malformed output. Any idea? === SASAKI Suguru mailto : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problems with different versions of FOP (SVG vs inline-graphics)
I've recently upgraded to Fop 19.0. While it now provides inline graphic support, which I need, it broke certain SVG rendering, which I also need. This SVG rendering still works in Fop 18.1 - so some of the time I need to use this old build, and the rest of the time the recent build. Is the broken SVG code expected to be fixed in the next build, and if so, when is it expected to come out? Or is it currently already fixed in CVS? Also, for now is there any way to switch between different versions of Fop at runtime (ie to rename all the packages in one of the jars)? For those who don't know what broken SVG rendering I'm talking about, here's the exception that's thrown (which oddly enough looks like a CLASSPATH error): Exception in thread main java.lang.NoSuchMethodError at org.apache.batik.bridge.CSSUtilities.convertVisibility(CSSUtilities.java:376 ) at org.apache.batik.bridge.SVGSVGElementBridge.createGraphicsNode(SVGSVGElement Bridge.java:100) at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:65) at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.java:386 ) at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(PDFRenderer.java:338) at org.apache.fop.svg.SVGArea.render(SVGArea.java:57) at org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(PDFRenderer.ja va:322) at org.apache.fop.layout.inline.ForeignObjectArea.render(ForeignObjectArea.java :49) at org.apache.fop.render.PrintRenderer.renderAreaContainer(PrintRenderer.java:1 87) at org.apache.fop.layout.ColumnArea.render(ColumnArea.java:31) at org.apache.fop.render.PrintRenderer.renderSpanArea(PrintRenderer.java:255) at org.apache.fop.layout.SpanArea.render(SpanArea.java:51) at org.apache.fop.render.PrintRenderer.renderBodyAreaContainer(PrintRenderer.ja va:240) at org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:638) at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:130) at org.apache.fop.apps.Driver.render(Driver.java:487) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:62) at org.apache.fop.apps.Fop.main(Fop.java:19) Thanks, e d - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: XSL-FO Engine comparisons
Elliotte, However, it simply did not work for me at all. However good the XEP engine may be at converting XSL-FO documents to PDF, its horrible user interface and incomprehensible installation procedure eliminated it from my consideration. Installation package of XEP 2.5 evaluation version consists of two files: readme.txt and Setup.class. You run Setup.class and follow the prompts; I wonder if this is not intuitive. (A further step would be using InstallShield; but this is hard to achieve for a Java application :-)). Anyhow, in case of installation problems, you can direct your questions to RenderX support ([EMAIL PROTECTED]). I realize that our poor command-line utility is far from being a model of user-friendliness. There are reasons for this: XEP is sold exclusively for server applications, and we care more about efficiency than about ease of use. Still there are many downloads from our site, and we get enough feedback from people who manage to get our tool running. This makes me think it's not really impossible. If you ever decide to retry XEP, I would be glad to assist you. Bottom line: none of the formatters are yet suitable for producing a finished product. I dare not say that XEP is good enough to suit your needs :-). But (IMVHO) it's difficult to make statements about maturity level of an application if you have never run it. Best regards, Nikolai Grigoriev RenderX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: XSL-FO Engine comparisons
At 09:24 AM 7/31/01 -0400, Elliotte Rusty Harold wrote: [SNIP] So far, I've experimented with four different XSL-FO processors: the Apache XML Project's FOP, Sebastian Rahtz's PassiveTeX, the Antenna House XSL Formatter 1.1E, and RenderX's XEP. Two are implemented in Java, one in native Windows code, and one in TeX. FOP and PassiveTeX are open source. Antenna House and XEP are payware. Here are my experiences with each: FOP FOP was the first XSL-FO engine and is certainly the most popular. It's open source and far easier to install than PassiveTeX, the other open source alternative. However, of the ones I was able to actually test it produced by far the worst output. It had the most annoying formatting troubles. For example, it ate all the blank lines in my source code examples and put extra indentation at the front of the first line of each example. I've noticed that probably more than half of the bug reports on the Docbook-APPS mailing list about the Docbook XSL-FO stylesheets can actually be attributed to bugs in FOP. FOP is improving rapidly -- one major bug I noted in footnote handling was fixed in the last couple of weeks while I was performing my tests -- but it's clearly not even an alpha quality release yet. A lot of work needs to be done before FOP can be recommended for more than experimentation. [SNIP] No arguments from me, in the main. You've basically established that there is a reasonably strong correlation between effort expended and progress. :-) The 2 commercial efforts probably put in more person-hours per day than FOP gets in a week, and of course PassiveTeX gets even less attention than FOP. FOP developers and committers have never suggested that the processor is anything other than a work in progress. My best guess is that if we have a production release by the end of the year then we'll be doing well. Alpha is a long ways away. My experience with DocBook FO stylesheets and all of the formatters suggest that even though your statement about bugs on the Docbook-APPS mailing list is most likely true, that there are sizeable chunks of DocBook FO that do not layout properly in _any_ formatter. Statistically, if the huge majority of people that process DocBook FO are using FOP, then it stands to reason that they are turning up lots of bugs and that almost all are from FOP. Says very little about FOP relative to other processors. And how many _unique_ defects are being reported? But you're right - nobody should be using the processor in production. Not yet. When we think it's ready we'll say so. Bottom line: none of the formatters are yet suitable for producing a finished product. Ñone of them can replace TeX or QuarkXPress. You might be able to publish a simple book with these, but you'd have to design your book and style sheet so that you avoided the bugs and unimplemented features of the processor. Antenna House probably produces the most polished output, and I'd use it if all I wanted to do was print out a document from my laser printer. However, since I need PDF files I can send to my editors and download to a typesetter, my choice for the time being is PassiveTeX. Antenna House is good, but as you say it's Windows only...serious drawback. RenderX XEP, IMHO, is the best all-round FO processor available right now. I certainly have had no problems in using it, either. Useful review, in any case. If you happen to post it elsewhere, do us a favour - specifically note that we (FOP) do not recommend FOP for general production, that it is under development, and that it's not even close to alpha. All points you made yourself. Thanks. Regards, Arved Sandstrom Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Headers and pagination
I must be really confused. I thought that the header was defined once and only once in the page-sequence as static-content and the page-sequence-master children allowed for the use of different page layouts for different pages, but not content of the page. Anyway, if you could lead me to an example I would be very happy. Cheers Tim -Original Message- From: Arved Sandstrom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 1 August 2001 10:15 To: [EMAIL PROTECTED] Subject: RE: Headers and pagination At 09:44 AM 8/1/01 +1000, [EMAIL PROTECTED] wrote: Are you expecting me to test FOP 0.19 or the latest CVS version? If it's the former then it doesn't do what I tested it for, which is page numbering continuing on from previous page-sequence while specifying initial-page-count=auto for all page-sequences. I tested is by modifying Trevor's example (see attached). [ SNIP ] Latest CVS. For my application I'm attempting to convert XML using XSLT to PDF, and in this case the size of the data in the flow of every page-sequence is undefined. Continuing the page count from page-sequence to page-sequence appears to be okay as far as the XSL:FO spec, but I want to change the header during a page sequence. Let me see if I can make it clearer: Page 1 Page 2 Page 3 Page n - - - - | Hdr 1 | | Hdr 2 | | Hdr 2 | | Hdr 2 | | - | | - | | - | | - | | Flow1 | | Flow1 | | Flow2 | | Flow3 | | | | | | | | | - - - - Remember all the flows are undefined so Flow 1 could be 1..n pages etc.. If you want to change the header during a page-sequence then you need to use page-sequence-master, and some combo of single-page-master-reference, repeatable-page-master-reference and repeatable-page-master-alternatives. I don't immediately see any stumbling block to what you want to do. Regards, Arved Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: New patch for FOP
I hand reconciled your patch with the current CVS... right before CVS went down. I'll apply the patch tomorrow when it's back up (assuming it is back up). This is just a FYI so no one else does it too. -Steve -Original Message-From: Mark [mailto:[EMAIL PROTECTED]]Sent: Sunday, July 22, 2001 5:46 AMTo: [EMAIL PROTECTED]Subject: New patch for FOPHi foptometrists,I have put a new batch of files onto my fop site at http://www.inomial.com/fop.The new patch (fop-010722.patch) includes a couple of fixes to the PDF output - namely, external images and internal links should now both work in PDF. (Thanks to Darren Munt for giving me some examples of the problem here).This leaves only the force-page-count as a "known issue" (ie something I haven't looked at yet) I have also added code to deal with root extensions but I don't have any examples to test with; if someone could tell me what I should use, that would help (because root extensions are *completely* untested).Feedback/bug reports welcome!CheersMark
Embedded Barcode - no errors - but not visible in resulting PDF
Fop-0.19.0-CVS My servlet is generating a PDF with embedded Barcode 3of9 font. I'm having problems on 3 different machines. I'm using Type 1 font. I get no errors during the generation process (command-line or servlet) and no errors from Acrobat when loading/displaying the file. I simply get no display of the barcode font. My test file is docs/examples/fonts.fo I changed the first 2 blocks to display my barcode fonts... fo:block font-family=Helvetica font-size=14pt SAdHC39a Type1 Barecode 3 of 9 follows... /fo:block fo:block space-after.optimum=16pt font-family=SAdHC39a !ABC123! /fo:block fo:block font-family=Helvetica font-size=14pt SAdHC39b Type1 Barecode 3 of 9 follows... /fo:block fo:block space-after.optimum=16pt font-family=SAdHC39b !ABC123! /fo:block I took a look at the resulting PDF and it confirms that the font is being embedded into the file. I don't understand why it is not displayed in Acrobat Reader. Any ideas? /jhd = excerpt from resulting PDF file = 13 0 obj /Type /FontDescriptor /FontName /SAdHC39a /FontBBox [-100 -398 810 752] /Flags 6 /CapHeight 747 /Ascent 747 /Descent -393 /ItalicAngle 210 /StemV 0 /FontFile 14 0 R endobj 14 0 obj /Length 28113 /Filter [ /ASCII85Decode /FlateDecode ] /Length1 5863 /Length2 19933 /Length3 545 stream GatS snip @~ endstream endobj 15 0 obj /Type /Font /Subtype /Type1 /Name /F15 /BaseFont /SAdHC39a /Encoding /WinAnsiEncoding /FirstChar 0 /LastChar 255 /Widths 16 0 R /FontDescriptor 13 0 R endobj 16 0 obj [ 500 snip 500 0] endobj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Codeformatting finished
I've noticed that the formatter has been pretty aggressive in overriding the right margin. It has exceeded 80 cols in files which had conformed to that margin (e.g. DocumentReader.java), going to such lengths as to merge string constants which had previously been split with +, and merging comment lines! Cheeky. I agree it is much more important to get a consistent indentation and replacement of tabs with spaces, but is it generally regarded as desirable to have files fold lines at 79? If so, is it OK to submit patches which achieve this for errant files as they are encountered? Peter -- Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest Lord, to whom shall we go? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Fix (not Patch) to changes on 26 July that broke Embedded Font layout
I've tracked down the reason for the problem I reported below. Unfortunately, I've done this in the pre-codeformat sources and I don't have access to a patch generator (well maybe but it's a minor fix). In org.apache.fop.layout.LineArea towards the end of the function: private int getWordWidth(String word, boolean doMap) the line (992 in old code) was changed to be: width += getCharWidth(currentChar); This caused some characters to be mapped twice. The fix I'm suggesting is to split the function: private int getCharWidth(char c) which begins int width = currentFontState.width(currentFontState.mapChar(c)); if (width = 0) { ... into two functions as follows: private int getCharWidth(char c) { return getMappedCharWidth(currentFontState.mapChar(c)); } private int getMappedCharWidth(char c) { int width = currentFontState.width(c); if (width = 0) { ... and then changed the above mentioned line in getWordWidth() to be: width += getMappedCharWidth(currentChar); I hope this can be checked and committed soon. TTFN Struan Judd * And so it begins ... ICQ: 4498196 http://neongraal.sf.org.nz mailto:[EMAIL PROTECTED] Voicemail and Fax: +1 (201) 305-1011 x1006 -Original Message- From: Struan Judd [mailto:[EMAIL PROTECTED]] Sent: Friday, 27 July 2001 12:53 To: [EMAIL PROTECTED] Subject: The current CVS version seems to be seriously broken It builds fine but the finally laid out PDF has overlapping areas and non-lined up leading edges of table columns. I am using an embedded font but that's all I can think of that different from defaults. If I checkout as at 25th of July it works fine. So what's been checked in recently that might affect that. TTFN Struan Judd * And so it begins ...ICQ: 4498196 http://neongraal.sf.org.nz mailto:[EMAIL PROTECTED] Voicemail and Fax: +1 (201) 305-1011 x1006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]