cvs commit: xml-fop build.xml
keiron 02/01/11 00:07:48 Modified:.Tag: fop-0_20_2-maintain build.xml Log: updates version number (removes jdk11 stuff) Submitted by: Christian Geisert [EMAIL PROTECTED] Revision ChangesPath No revision No revision 1.44.2.1 +3 -31 xml-fop/build.xml Index: build.xml === RCS file: /home/cvs/xml-fop/build.xml,v retrieving revision 1.44 retrieving revision 1.44.2.1 diff -u -r1.44 -r1.44.2.1 --- build.xml 12 Sep 2001 09:30:40 - 1.44 +++ build.xml 11 Jan 2002 08:07:48 - 1.44.2.1 @@ -15,7 +15,7 @@ FOP is the world's first print formatter driven by XSL formatting objects. It -is a Java 1.1 application that reads a formatting object tree and then turns +is a Java 1.2 application that reads a formatting object tree and then turns it into a PDF document. The formatting object tree, can be in the form of an XML document (output by an XSLT engine like XT or Xalan) or can be passed in memory as a DOM Document or (in the case of XT) SAX events. @@ -166,9 +166,9 @@ tstamp/ property name=Name value=Fop/ property name=name value=fop/ -property name=version value=0.20.1/ +property name=version value=0.20.2/ filter token=version value=${version}/ -property name=year value=1999-2001/ +property name=year value=1999-2002/ echo message=--- ${Name} ${version} [${year}] / @@ -215,14 +215,6 @@ property name=jimi value=JimiImage.java/ property name=jai value=JAIImage.java/ -property name=ignore_jdk11 - value=org/apache/fop/render/awt/** - ,org/apache/fop/viewer/** - ,**/GifJpegImage.java - ,**/JimiImage.java - ,**/PrintStarter.java - ,**/AWTStarter.java/ - property name=xslt value=org.apache.xalan.xslt.Process/ property name=src.properties.xsl value=${src.codegen}/properties.xsl/ property name=src.propmaker.xsl value=${src.codegen}/propmaker.xsl/ @@ -522,19 +514,6 @@ excludes=**/*${ignore_this},${jimi}/ /target - target name=compile-jdk11 depends=codegen, prepare-src -echo message=Compiling the sources for JDK1.1/ -!-- create directories -- -mkdir dir=${build.dest}/ - -javac srcdir=${build.src} - destdir=${build.dest} - debug=${debug} - deprecation=${deprecation} - optimize=${optimize} - excludes=**/${ignore_this},${Jimi},${ignore_jdk11}/ - /target - !-- === -- !-- Creates the class package -- !-- === -- @@ -571,13 +550,6 @@ /target target name=all depends=package/ !-- all target for us Makefile converts ;-) -- - - target name=package-jdk11 depends=compile-jdk11,hyphenation -echo message=Creating the jar file ${build.dir}/${name}11.jar/ -jar jarfile=${build.dir}/${name}-jdk11.jar - basedir=${build.dest} - includes=org/**,conf/**,hyph/**/ - /target !-- === -- !-- Prepares the docs -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP Extensions
Hi, I think you confusing a few things. Starting from this page: http://xml.apache.org/fop/extensions.html (it could be a bit better and there will be some examples one day) The default extensions are svg and the bookmarks so you can just use these. To make your own extension you need to consider what you want to do first. 1. do you want to put a formatting object area in the output, eg. some text, block etc. 2. do you want a graphic in the output, ie. somthing that could be done with svg 3. do you want to do some document specific settings such as what the bookmarks does also what version are you using, this is about the latest release. If 1. then you need to do a similar sort of thing to all other fo objects. If 2. then you setup a class that can get a DOM and turn it into SVG. If 3. then it is a bit more difficult. It doesn't say to extend ExtensionObj, this is just an example. More below... On 2002.01.10 18:15 Software AG wrote: Hi, there. Trying to create a FOP Extension I'm getting totally confused with the docs. The HTML document says to just have a look at org.apache.fop.extensions.* and implement the ExtensionObj interface. ExtensionObj is not an interface but a class, and hardly documented. So all I know is I need to overload the public Status layout(Area area) method. I have rendering code that eats a dom tree and spits out a java.awt.Image or GIF or whatsoever. Looking at the SVG extension code confused me more than it helped. From the list archives I could not derive a cookbook what to do. - What class do I have to extend: Area (like SVGArea) or ExtensionObj? You will likely need to extend FObj. - How is this new class going to get the DOM tree inside the fo:instream-foreign-object element? The same what that SVG gets the DOM - How is this new class going to pass the rendered image to FOP? ?? If you want SVG for the output then just do what the SVG does, ie. put the SVG DOM into an SVGArea. - How do I correctly register the new class so FOP will call it? As on the website include the following file /META-INF/services/org.apache.fop.fo.ElementMapping. In this file you need to put the fully qualified classname of your element mappings class. This class must implement the org.apache.fop.fo.ElementMapping interface. - What happens if I cannot provide name spaces on the elements? You must have a separate namespace. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: embedding svg in xsl:fo generates nullpointer, help ...
Manuel Moons [EMAIL PROTECTED] wrote: I'm trying to put an svg in my xsl:fo document and then trying to generate a pdf document. But when doing this I get the following: ERROR 10106 [fop ] (): Could not set base URL for svg java.net.MalformedURLException: java.lang.NullPointerException This can happen for example if you feed FOP with a SAX stream. I fixed this with org.apache.fop.configuration.Configuration.put(baseDir, file:///foo/bar); somewhere before the invocation. The value supplied has to be a valid URL but it is never read unless you use internal references in your SVG. If you do the latter, you might be in trouble. It also seems that it starts on a new page every time I use an svg That's a completely different problem. Maybe your SVGs are too large. BTW giving width/height in px is unwise and may be the cause of the problem. HTH J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 5805] New: - fo:block text-align=endfo:page-number-citation ref-id={generate-id(.)}//fo:block doesn't right align
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5805. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5805 fo:block text-align=endfo:page-number-citation ref-id={generate-id(.)}//fo:block doesn't right align Summary: fo:block text-align=endfo:page-number-citation ref- id={generate-id(.)}//fo:block doesn't right align Product: Fop Version: all Platform: PC OS/Version: Windows 9x Status: NEW Severity: Normal Priority: Other Component: general AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I've produced the following much simplified fo file. It produces a PDF with a front page ToC. The ToC contains the title of the section, it's number in the sequence of title elements and its page reference fo:page-number-citation ref- id={generate-id(.)}/. Both the sequence number and the page number are placed in fo:block text- align=end elements. Whilst this works fine for the sequence number, the page citation is not properly right aligned. More specifically, whilst the element is right aligned in the table cell, the list it produces is dog-legged. The xsl file i use is: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- Turns on indenting -- xsl:output indent=yes/ !-- Executes the template -- xsl:template match=/ !-- Declares the root -- fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- Defines the layout master set -- fo:layout-master-set !-- Defines the simple page master -- fo:simple-page-master master-name=A4 page- width=210mm page-height=297mm margin-top=10mm margin-bottom=10mm margin- left=10mm margin-right=10mm !-- Defines the Page Body region -- fo:region-body/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-name=A4 initial-page- number=1 language=en country=uk !-- Displays the Page Body -- fo:flow flow-name=xsl-region-body !-- Displays the Table of Contents in a 3 column table -- fo:table fo:table-column column- width=100mm/ fo:table-column column- width=20mm/ fo:table-column column- width=20mm/ fo:table-body xsl:apply-templates mode=toc/ /fo:table-body /fo:table /fo:flow /fo:page-sequence fo:page-sequence master-name=A4 language=en country=uk !-- Displays the Page Body -- fo:flow flow-name=xsl-region-body xsl:apply-templates mode=title/ /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template match=text() mode=toc/ xsl:template match=title mode=toc fo:table-row fo:table-cell fo:blockxsl:apply-templates mode=display//fo:block /fo:table-cell fo:table-cell fo:block text-align=endxsl:value-of select=count(preceding::title)//fo:block /fo:table-cell fo:table-cell fo:block text-align=endfo:page-number- citation ref-id={generate-id(.)}//fo:block /fo:table-cell /fo:table-row /xsl:template xsl:template match=text() mode=title/ xsl:template match=title mode=title fo:block break-after=page id={generate-id(.)}xsl:apply- templates mode=display//fo:block /xsl:template xsl:template
table-cells
Hi, I have a problem with table-cells width : if the text inside the cell is only a long word, it is not truncated and doesn't fit in the cell. Howcould imanage that? Anyhelp much appreciated! thanks, Baptiste CASANOVA [EMAIL PROTECTED]
Re: table-cells
Did you tried using the "width" and "height" attributes of a table-cell? Thanks Carmelo Montanez - Original Message - From: Baptiste Casanova To: [EMAIL PROTECTED] Sent: Friday, January 11, 2002 8:29 AM Subject: table-cells Hi, I have a problem with table-cells width : if the text inside the cell is only a long word, it is not truncated and doesn't fit in the cell. Howcould imanage that? Anyhelp much appreciated! thanks, Baptiste CASANOVA [EMAIL PROTECTED]
AW: table-cells
Hi, for englisch language you cantry: fo:flow flow-name="xsl-region-body" language="en" hyphenate="true" hyphenation-push-character-count="2" hyphenation-remain-character-count="2" bye Alex -Ursprüngliche Nachricht-Von: Baptiste Casanova [mailto:[EMAIL PROTECTED]]Gesendet: Freitag, 11. Januar 2002 14:30An: [EMAIL PROTECTED]Betreff: table-cells Hi, I have a problem with table-cells width : if the text inside the cell is only a long word, it is not truncated and doesn't fit in the cell. Howcould imanage that? Anyhelp much appreciated! thanks, Baptiste CASANOVA [EMAIL PROTECTED]
Re: table-cells
yes i did, and that is the problem! My word is written in its cell (which has a fixed width)but also in the next cell. In fact what i would like to do is truncate the word if it is larger than the cell. - Original Message - From: Carmelo Montanez To: [EMAIL PROTECTED] Sent: Friday, January 11, 2002 3:46 PM Subject: Re: table-cells Did you tried using the "width" and "height" attributes of a table-cell? Thanks Carmelo Montanez - Original Message - From: Baptiste Casanova To: [EMAIL PROTECTED] Sent: Friday, January 11, 2002 8:29 AM Subject: table-cells Hi, I have a problem with table-cells width : if the text inside the cell is only a long word, it is not truncated and doesn't fit in the cell. Howcould imanage that? Anyhelp much appreciated! thanks, Baptiste CASANOVA [EMAIL PROTECTED]
RE: table-cells
Title: RE: table-cells Hello, CM Did you tried using the width and height attributes of a table-cell? BC My word is written in its cell (which has a fixed width) but also in the next cell. BC In fact what i would like to do is truncate the word if it is larger than the cell. I've got the same problem. I've not defined width and height, but used the column definitions: fo:table-column column-width=70mm/ fo:table-column column-width=100mm/ The table is printed correctly, but if a cell content is larger then its cell, it's not clipped. I've used several ways for clipping, and I guess that FOP can't clip yet, can it? I tried to insert the cell's content into a block and defined several attributes, like fo:block clip=auto overflow=scroll Running this fo, FOP warns me: Attribute clip is not supported yet. I also tried other values for overflow without any effect. Jens
Re: uncommitted patches
Keiron Liddle wrote: Hi Christian, I agree that it is good to get patches in, the problem has been that in many cases these patches are altering messy code (eg. LineArea.java) and I had the same thoughts while looking at the patches... but I think it's ok for the maintenance branch. its a case of fix one problem and create others or it is not clear if it works properly. This problem is best solved by better design and testing (and more resources). Absolutly agreed. The most important (and hardest) part is the to make a good new design (and I hope I can contribute a bit). I will commit the ones you propose and hope for the best. Thanx! Regards, Keiron. Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Table layout
Matt Savino wrote: Right now keep-with-next at the row level is the only thing that works. But if you have more rows than can fit on a page, FOP goes into an endless loop. This issue isn't adressed at all in the upocoming maintenance release is it? It is adressed .. and you hereby voluntered to test the forthcoming release candidate ;-) Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Table layout
will do Christian Geisert wrote: Matt Savino wrote: Right now keep-with-next at the row level is the only thing that works. But if you have more rows than can fit on a page, FOP goes into an endless loop. This issue isn't adressed at all in the upocoming maintenance release is it? It is adressed .. and you hereby voluntered to test the forthcoming release candidate ;-) Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Table of Contents
I'm building a table of contents, which works just fine except for one little detail. If seems the fo:page-number-citations are not aligning correctly. For instance, the enclosing block looks like this: fo:table-cellfo:block text-align="end"fo:page-number-citation ref=id="blah"//fo:block/fo:table-cell The parent block has text-align="end", but the page numbers come out left justified, not right justified. If I remove the fo:page-number-citation ref=id="blah"/ and hardcode some page numbers, they come out correctly right-justified. Is there some way I can make this work correctly with 0.20.2? Will the upcoming maintenance release fix this bug? Thanks, Scott
Question or request for extension
Is there a way to get the time a document was rendered and put that in text, e.g., " printed on 11.01.2001 10:16:02 AM " If not, where might a relative java-newbie attempt to add this? Any help always appreciated, John
RE: Question or request for extension
Off hand I do not know of a way to have FOP print when it was rendered, but it should certainly be possible to have the FO include this information. For example if you are using Xalan you could call a Java function (via extension) to get the date and time and include that in the input for FOP. HTH, Art -Original Message-From: Dunning, John [mailto:[EMAIL PROTECTED]]Sent: Friday, January 11, 2002 6:23 PMTo: '[EMAIL PROTECTED]'Subject: Question or request for extension Is there a way to get the time a document was rendered and put that in text, e.g., " printed on 11.01.2001 10:16:02 AM " If not, where might a relative java-newbie attempt to add this? Any help always appreciated, John
font in fop
Hi i have set my font in userconfig file , how can i set this userconfig file in fopdriver. plz give me solution , its urgent for me thanks -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]