Hi all,
After an in depth analysis of what is the problem, I found that is in the 'Service Provider Interface' Java functionality. When svg1.2 extension is needed, in the classpath the lib/batik-extension.jar should be placed, that contains SPI's to force the usage of the 1.2 Bridge (found in the squiggle-ext example). But in a estrange way, my program doesn't "accepts" this overrides, even placing this JAR on the classpath. Some one can help? Thanks, regards, GLoureiro ________________________________ From: Loureiro, Gil Sent: quarta-feira, 10 de Outubro de 2007 18:52 To: '[email protected]' Subject: Using SVG1.2 (FlowText) All, I'm trying to use batik 1.7 (jvm 1.5) embed in my program to transcode svg contents into image. Inside the contents I've the svg 1.2 flowtext (element with respective subelements) mixed with others. All the svg1.0 elements are displayed correctly, but 1.2 not. The code chunk's are presented above, some one can help? ... UserAgentAdapter userAgent=new UserAgentAdapter(); ctx=new SVG12BridgeContext( userAgent, null, new DocumentLoader(userAgent)); builder=new DynamicGVTBuilder(); ctx.setDynamicState(SVG12BridgeContext.DYNAMIC); GraphicsNode gvt=builder.build(ctx, document); ... ... //creating the text element final Element element=((SVG12OMDocument)doc).createElementNS("http://xml.apache.org/batik/ext" /*doc.getDocumentElement().getNamespaceURI()*/, handledElementTagName); element.setAttribute("xmlns", "http://xml.apache.org/batik/ext"); //creating the text node Text textValue=doc.createTextNode(text); Element fr=doc.createElement("flowRegion"); Element rt=doc.createElement("rect"); EditorToolkit.setAttributeValue(rt,"x",10); EditorToolkit.setAttributeValue(rt,"y",10); EditorToolkit.setAttributeValue(rt,"width",200); EditorToolkit.setAttributeValue(rt,"height",200); fr.appendChild(rt); element.appendChild(fr); Element fd=doc.createElement("flowDiv"); Element fp=doc.createElement("flowPara"); fp.appendChild(textValue); fd.appendChild(fp); element.appendChild(fd); ... Cumprimentos, Loureiro, Gil Document Engineering Manager Document Services _________________________________________ Edinfor - a LogicaCMG company Rua Particular da EDP (à rua cidade Goa nº11), 2685 Sacavém Portugal M: +351 93 741 8888 E: [EMAIL PROTECTED] <BLOCKED::mailto:[EMAIL PROTECTED]> www.edinfor.logicacmg.com <BLOCKED::http://www.edinfor.logicacmg.com/> Este e-mail e quaisquer anexos com ele transmitidos são destinados exclusivamente às pessoas nele endereçadas, os quais poderão conter informação legalmente protegida, confidencial ou sigilosa. Não deverá fazer qualquer cópia desta mensagem, utilizá-la para qualquer fim ou transmitir o seu conteúdo a terceiros. Caso tenha recebido este e-mail indevidamente, por favor apague-o definitivamente do seu sistema sem o copiar e informe o respectivo remetente. Obrigado.
