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.