Re: SVG LinearGradient
Keiron, I've upgraded FOP branch CVS to Batik 1.5b4. You may have missed that mail yesterday. :-) On 14 Nov 2002 11:28:33 +0100 Keiron Liddle wrote: On Thu, 2002-11-14 at 11:08, marco scotoni wrote: Symptoms are a blank page instead PDF File. (From a FO file) That's 'cause i have substituted FOP 0.20.4 with CVS (I need to use LinearGradient!) I use Win 2000, JDK 1.4.0, Cocoon 2.0.3, Fop CVS and Batik 1.5b4 Since there has been some api changes they will not work together. You could get them working by compiling cocoon with the fop you want and fixing the problems. Since it is not a release of fop you may find that the documents don't turn out how you want. Jeremias Maerki
Re: SVG LinearGradient
On Thu, 2002-11-14 at 11:57, Jeremias Maerki wrote: Keiron, I've upgraded FOP branch CVS to Batik 1.5b4. You may have missed that mail yesterday. :-) I saw it but for gradients it also needs the implementation in PDFGraphics2D (which in the branch depends on: pdf lib, image lib).
Re: SVG LinearGradient
i'm recompling cocoon 2.0.3 with FOP.Jar CVS and Batik 1.5b4.jar in optional library... i launch only build.bat but i have got that's error: compile: [copy] Copying 28 files to C:\cocoon-2.0.3\build\cocoon\classes [echo] Compiling with Java 1.4, debug on, optimize off, deprecation off [javac] Compiling 607 source files to C:\cocoon-2.0.3\build\cocoon\classes [javac] C:\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\serialization\FOP Serializer.java:199: setLogger(org.apache.avalon.framework.logger.Logger) in org .apache.fop.apps.Driver cannot be applied to (org.apache.log.Logger) [javac] driver.setLogger(getLogger().getChildLogger(fop)); [javac] ^ [javac] 1 error BUILD FAILED C:\cocoon-2.0.3\build.xml:954: Compile failed, messages should have been provide d. - Original Message - From: Oleg Tkachenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 12:10 PM Subject: Re: SVG LinearGradient Jeremias Maerki wrote: Keiron, I've upgraded FOP branch CVS to Batik 1.5b4. You may have missed that mail yesterday. :-) btw, fop.bat/fop.sh have to be fixed according to new xalan/xerces versions, but I'm still trying to set up my IDE (I'm using IDEA) to work with cvs over ssh. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel
Re: SVG LinearGradient
I wanna try with J2SDK 1.4.1 - Original Message - From: Oleg Tkachenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 12:35 PM Subject: Re: SVG LinearGradient marco scotoni wrote: C:\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\serialization\FOP Serializer.java:199: setLogger(org.apache.avalon.framework.logger.Logger) in org .apache.fop.apps.Driver cannot be applied to (org.apache.log.Logger) [javac] driver.setLogger(getLogger().getChildLogger(fop)); [javac] ^ [javac] 1 error BUILD FAILED
Re: SVG LinearGradient
marco scotoni wrote: I wanna try with J2SDK 1.4.1 I meant different branches of FOP's code. Look at note at http://xml.apache.org/fop/download.html - you should use fop-0_20_2-maintain branch. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel
SVG LinearGradient
Hi! i'm using on Windows 2000, Cocoon 2.0.3, Fop 0.20.4 , batik 1.5b4. I have to generate PDF file from FO and SVG code within. All is ok , except lineargradient that render a unicolor block. I've red FAQ on FOP and that's a problem of URI. but i cant be able to make it functionally. Someone has any suggest or better an example??? Thx Much Marco Scotoni __ Dark Schneider ICQ#: 13815557 Current ICQ status: + More ways to contact me __
RE: SVG LinearGradient
Can you please elaborate that a little? Feel free to provide small example illustrating the problem. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel It sounds a lot like an issue a had a while back that was never solved. What follows is my email from 1/24/02 I'm trying to embed the following SVG into my XSL-FO and run it thru FOP. Although the SVG looks fine using Adobe's SVG viewer, I get an error (below) from FOP. Apparently, it doesn't like the url() reference to the radialGradient. How can I get this to work? Thanks for any help, Scott svg width=3.5in height=1in viewBox=0 0 680 200 xmlns=http://www.w3.org/2000/svg; preserveAspectRatio=none g defs radialGradient id=PurpleToWhite gradientUnits=objectBoundingBox cx=.5 cy=.5 r=.5 stop offset=5% stop-color=white/ stop offset=100% stop-color=rgb(100,0,100)/ /radialGradient /defs rect fill=black stroke=black x=0 y=0 width=680 height=200/ circle r=80 cx=270 cy=100 fill=url(#PurpleToWhite)/ text font-family=Times font-size=135pt x=213 y=160 fill=whiteD/text /g /svg An I/O error occured while processing the URI 'file:D:/Projects/Dev/#PurpleToWhite' specified on the element circle org.apache.batik.bridge.BridgeException: file:D:/Projects/Dev/:-1 An I/O error occured while processing the URI 'file:D:/Projects/Dev/#PurpleToWhite' specified on the element circle at org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown So urce) at org.apache.batik.bridge.PaintServer.convertURIPaint(Unknown Source) at org.apache.batik.bridge.PaintServer.convertPaint(Unknown Source) at org.apache.batik.bridge.PaintServer.convertFillPaint(Unknown Source) at org.apache.batik.bridge.PaintServer.convertFillAndStroke(Unknown Sour ce) at org.apache.batik.bridge.SVGShapeElementBridge.createShapePainter(Unkn own Source) at org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unkno wn Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.build(Unknown Source) at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.j ava:413) at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(PDFRenderer.java: 382) at org.apache.fop.svg.SVGArea.render(SVGArea.java:58) at org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(PDFRend erer.java:366) at org.apache.fop.layout.inline.ForeignObjectArea.render(ForeignObjectAr ea.java:50) at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRendere r.java:223) at org.apache.fop.layout.LineArea.render(LineArea.java:163) at org.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRender er.java:192) at org.apache.fop.layout.BlockArea.render(BlockArea.java:82) at org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRe nderer.java:158) at org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:735 ) at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:700) at org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:217) at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:81) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:30 7) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182) at org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:463) at org.apache.fop.apps.Driver.render(Driver.java:481) at org.apache.fop.apps.Driver.render(Driver.java:501) at org.apache.fop.apps.Driver.run(Driver.java:552)
Re: SVG LinearGradient
Scott Moore wrote: It sounds a lot like an issue a had a while back that was never solved. What follows is my email from 1/24/02 I'm trying to embed the following SVG into my XSL-FO and run it thru FOP. Although the SVG looks fine using Adobe's SVG viewer, I get an error (below) from FOP. Apparently, it doesn't like the url() reference to the radialGradient. How can I get this to work? Now using cvs version no exception is thrown, but the circle is completely black. I have no idea why, file it to bugzilla. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel