Re: Converting SVG to SVG and replacing viewBox

2021-03-20 Thread Helder Magalhães
Hello Konstantin, Because SVG is vector graphics, you don't have to resize the whole contents but only the viewBox, as you've already stated. In this case, Batik would be overkill in my opinion: a simple XML manipulation workflow would be sufficient: 1. open SVG (XML) document; 2. read

Re: Performance and rendering quality degradation between Batik Squiggle 1.9 and 1.11

2019-08-17 Thread Helder Magalhães
a quality difference, one or two pairs of screenshots between same content in the two environments would quite improve the explanation. Regards, Helder Magalhães A Sáb, 17/08/2019, 06:54, John-Val Rose escreveu: > Does anyone know why there appears to be a noticeable degradation in both > ren

Re: Print svg file with PrintTranscoder in applet

2013-07-25 Thread Helder Magalhães
Hi Batik users, Hi minh tuan, I'm doing an applet which can print svg sttring to printer. But when i use PrinterJob and set printable is PrintTranscoder then print, it has error with sun class unknown source. Could i use PrintTranscoder in applet ? or i wrong in something ? You must use the

Re: Download

2012-11-12 Thread Helder Magalhães
Hi, Hi Oliver, The download link seems to be down. http://xmlgraphics.apache.org/batik/download.cgi Clicking the binary distribution (first download link) takes me to http://mirror.catn.com/pub/apache//xmlgraphics/batik/batik-1.7.zip which isn't there. I've tried a few different

Re: SVG which renders in 1.7 fails in 1.8pre

2012-10-10 Thread Helder Magalhães
Hi Joel, What's in classes but not in the JARs is the org/apache/batik/ext/awt/image/codec/imageio subtree, which neatly explains why image rendering fails when it's absent. Is it a bug in the build.xml that this subtree is omitted? Yes, this was a regression introduced with the already

Re: How to create a Bar-Graph or Chart using Batik?

2012-10-06 Thread Helder Magalhães
Hi, Hi Arihant, Am a new user of Batik Tool-Kit I wish to create a Graph or Chart object with X-Y axis, axis labels, legends panel? Is there any class within the tool-kit for the same? Batik is neutral in terms of target usage. If you really intend doing charts, I'd suggest JFreeCharts

Re: SVG editor app

2012-09-24 Thread Helder Magalhães
Hello, Hi Oliver, I've recently forked and resurrected the GLIPS project which is an SVG editor that uses Batik, http://glipssvgeditor.sourceforge.net for my own use and code is now on github: https://github.com/okohll/svg_editor Those are great news, I've always liked GLIPS and was

Re: Bug 51908 - Illegal character in path at index 0

2012-08-05 Thread Helder Magalhães
Hi John, Is there a workaround/fix for the following build failure message? A workaround was already proposed by you [1]. ;-) It seems that this is a year-old bug, started in the 1.7 build jars. Apparently it started way before that. I could trace related changes to around 2003...

Re: Rendering CSS in JSVGCanvas

2012-03-14 Thread Helder Magalhães
Hi everyone,    We don't support the CSS hover property.  You can achieve the same basic effect with script however. After the good hint from Thomas, you might be interested in taking a look at the project status [1] to check for other possible things with limited support and/or known

Re: Batik still does not compile with Java 7

2012-03-11 Thread Helder Magalhães
Hi everyone, I just tried to compile batik svn from today with Oracle JDK 7u3 (on Windows, under cygwin) and it failed with multiple errors of the form error: package com.sun.image.codec.jpeg does not exist It works with Sun JDK 1.6.0_20. Right. A quick research showed that it appears to

Re: errors in viewing svg file. help needed

2012-02-01 Thread Helder Magalhães
Hi wolnic, Any suggestions why the image don't work with batik 1.7 ? I tried with Batik 1.8 trunk version and here are some hints: * attempt to prototype things is apparently confusing Rhino (Javascript engine); * window.* methods (like innerWidth/Height) are not supported and therefore lead

Re: errors in viewing svg file. help needed

2012-01-24 Thread Helder Magalhães
Hi wolnic, but in batik version 1.7 the file gets erros and cannot displayed correctly like firefox Just checked in Batik 1.8-pre (development version) and confirmed that the problem is the doctype being used: it isn't supposed that quotes are escaped (as quot;) at that point. Replacing the

Re: Create a multi page pdf using Batik

2011-08-22 Thread Helder Magalhães
Hi, Hi Dayana, How is it possible to create multiple page pdf using batik PDFTranscoder? My SVG file is very big and I wish to convert it to multiple pages in pdf to print it across mutiple pages If you crawled through the mailing lists, you'd find a couple interesting threads [1] [2].

Re: batik stopped working

2011-08-18 Thread Helder Magalhães
Hi, Hi Mattijs, The same day, last Friday the 12th of August, it just stopped working. It seems that it can’t generate a file in the temp folder. ** ** I have looked into the log, and I see this error message: [15-Aug-2011 12:06:08] PHP Warning: shell_exec() [a

Re: generate DXF File

2011-06-30 Thread Helder Magalhães
Hi Olaf, I´m looking for a solution to convert an svg (batik) to DXF. [...] On the other hand I start thinking about doing this by myself. What could be an a approach -  writing a transcoder or using the GVT Tree ? Although the name is somehow misleading, taking a look at the rasterizer [1]

Re: Combine SVG out of single SVG files

2011-06-22 Thread Helder Magalhães
Hi everyone, One way to do it...assumes the file was read and placed into a byte array by loadMyFile() (your implementation). All fluff and exception handling removed, but the basic sequence is: [...] Apart from this (good) suggestion, note that SVG also has an import mechanism, namely the

Re: Empty batik.jar and version identification

2011-06-14 Thread Helder Magalhães
Hi all, Hi Daniel, quick note at first: I send this question to the mailing list last week. Today I saw that there was a verification mail for subscription. I don't know if my first email has been broadcastet through the mailing list. Yes it did [1]. ;-) If the first mail came in,

Re: text-anchor: middle bug?

2011-06-12 Thread Helder Magalhães
Hi Henryk, Effectively, the problem appears to be that under some circumstances, text-anchor: middle does not work, and instead aligns the text somewhat in the text-advance direction of where it ought to be; specifically, in the figure below, the line should bisect all three tspans, but

Re: batik osgi bundles

2011-06-06 Thread Helder Magalhães
Dear Helder, Hi Martina, Thanks for your reply. We are using the batik library which is downloadable form the download page. So I downloaded the binary distribution for JRE 1.4+ and there we are using all the jar files in the lib folder (batik-anim.jar, batik-awt-util.jar,...). I want to

Re: batik osgi bundles

2011-06-03 Thread Helder Magalhães
Hello, Hi Martina, I want to use batik within my OSGi application. Are there already bundle versions of the batik library available? Do you mean the ones available in the download page [1]? Note that you have instructions about source code access there as well. Also, Cameron has been

Re: Is Batik Bug Report 44151 fixed?

2011-01-11 Thread Helder Magalhães
Hi All, Pahonel Laviniu and Helder Maglhaes, Hi Scott, I have the same problem with Batik Bug Report 44151, which is reported by Pahonel Laviniu And also reported by Helder Maglhaes at 2009-5-15. I didn't report the issue, I just updated its summary [1]. I am wondering

Re: BATIK RASTERIZER under Linux is not rendering TEXT

2010-12-20 Thread Helder Magalhães
Hi Petronel, BATIK RASTERIZER under Linux is not rendering TEXT Anyone please have any ideea what can be wrong with this ? It's funny that's under Linux and you provide almost no information (Java vendor, JDK/JRE version, Linux flavor - remember there are dozens!, Batik version, etc.) but it

Re: Minimum acceptable/desired Java version and related thoughts

2010-11-13 Thread Helder Magalhães
Hi everyone, In the scope of bug 46434 [1], I believe it was highly desired to have user feedback about this. It's great to see user expressing their feedback, thanks! :-) FYI, Java 5 is already end of life as well, http://java.sun.com/j2se/1.5/ Yeah, but Java for Business releases will

Minimum acceptable/desired Java version and related thoughts

2010-11-07 Thread Helder Magalhães
Hi everyone, In the scope of bug 46434 [1], I believe it was highly desired to have user feedback about this. To sum up, the question is which Java version are you using and/or, tightly related, whether you'd agree to raise the minimum version to Java 1.5. Note that currently in 1.8-pre (trunk

Re: How to remove a JSVGComponent AND killing the threads created by it?

2010-11-01 Thread Helder Magalhães
Hi Andreas, Thanks for your reply! I've been finally able to fix the problem. However I don't think that the patch provided on Bugzilla works. Therefore here my changes on the CleanerThread class for anyone interested: Overall, it looks good. Could you turn it into a patch and attach to the

Re: How to remove a JSVGComponent AND killing the threads created by it?

2010-10-30 Thread Helder Magalhães
Hi everybody, Hi Andreas, I created a GUI using several instances of the batik JSVGComponent. Some of these components gets removed after a while, e.g. dialogues. Though each comnponent creates some threads, called RunnableQueue-nn and Timer-nn. Where are these threads created and why?

Re: Nagabhushan Sss is out of the office.

2010-10-22 Thread Helder Magalhães
Hi Nagabhushan, I will be out of the office starting  10/19/2010 and will not return until 10/25/2010. I will respond to your message when I return. For an urgent issue, please contact Rachna Issar I believe this has already happened in the past. Again, please consider disabling

Oracle (previously Sun) JDK/JRE: couple of imageio fixes + critical security update

2010-10-14 Thread Helder Magalhães
Hi everyone, Today I stumbled across the (Oracle) SE 1.6 update 22 release notes [1]. Initially, it made me curious about a couple of imageio-related issues [2] [3], something which may become useful in the scope of related Batik issue 46513 [4] (possibly/probably there is also related interest

Re: SVGGraphics2D cannot reproduce gradients (Bug 42387)

2010-10-10 Thread Helder Magalhães
Hi tiwaris, I am facing the exact same problem as described in Bug 42387. https://issues.apache.org/bugzilla/show_bug.cgi?id=42387 No, I believe you have faced bug 49558 [1]. I've marked it as duplicate (although works for me might be formally more correct as there's no formal proof) to

Nabble mailing list interface: migration request

2010-10-10 Thread Helder Magalhães
Hi everyone, I've asked [1] the Nabble team to migrate the Batik forums [2] to the newest format. There were some issues with the current (old.nabble.com), detailed in my request [1] for whoever is curious, and I believe that migrating to the current (nabble2) interface is probably better than

Re: Batik and XmlHttpRequest / accessing Batik objects from javascript in svg

2010-10-07 Thread Helder Magalhães
Hi there, Hi Roland, The difficulty is WHEN to bind the object. First try was to simply call it in the init()-Method of the Applet after using canvas.setURI(…). However, this method is async, so my bind-method will not yet find even a bridgeContext (it is null). Therefore, I thought it

Re: Batik and XmlHttpRequest / accessing Batik objects from javascript in svg

2010-10-05 Thread Helder Magalhães
Hi Roland, Regarding communication, I already use getURL() now. However, there seems to be a bug that has already been mentioned here, but was confirmed as fixed. Yet it still (or again) seems to exist: I cannot use getURL() inside an Applet (works fine in squiggle)  without granting a right

Re: Batik 1.5 - export control request

2010-09-29 Thread Helder Magalhães
Hi Julie, Could you please indicate whether the Apache software Batik 1.5 contains specific export control requirements and what is the export control classification number of this software as I do not find any export provision is the copyright license? I'm not a lawyer so I'm not able to

Re: Javascript and Batik Applet

2010-08-19 Thread Helder Magalhães
Hi Mark, I think you're missing the rhino jar from your classpath. Apparently not. According to the original message: My class path includes batik-dom.jar, batik-swing.jar, batik-util.jar, batik-awt-util.jar, batik-bridge.jar, batik-css.jar, batik-ext.jar, batik-gvt.jar,

Re: Problem with transcoding svg file that contains reference to animated gif

2010-08-19 Thread Helder Magalhães
Hi Arek, I have encountered problem with transcoding svg file that contains reference to animated gif (batik transcoder hangs on 'transcode' method). Problem was reported in https://issues.apache.org/bugzilla/show_bug.cgi?id=28806 and occurs in version 1.7. Does anyone could help with

Re: Cannot stop default arrow key actions - Solution?

2010-08-17 Thread Helder Magalhães
Hi Joel, Please reply to previous thread messages (in this case, [1]) in order to avoid creating multiple thread about the same subject: it eases a bit searching and browsing through the mailing list, etc.. ;-) I seem to have fixed the problem. But I an not sure it is the best way to do

Re: Javascript and Batik Applet

2010-08-13 Thread Helder Magalhães
Hi Bob, (Sorry for the delay in answering: this message got lost in my drafts folder.) For too many bureaucratic, security and policy reasons I have been tasked to create an javascript based SVG viewer for IE. Cool, it's one of the things I'd like to do myself, but time is my enemy... :-)

Re: SVG generated file not opening correctly in Browser

2010-08-12 Thread Helder Magalhães
Hi Chris, [...] but when I open the file with a browser it doesn't open correctly(have tried both Firefox and Opera, just done 'File,Open'). I have attached a snapshot of how the file is displayed in Firefox, the chart is squashed(exact same in Opera). But when I open it in InkScape(SVG

Re: JSVGCanvas Problems - Rendering and Writing

2010-08-10 Thread Helder Magalhães
Hi Eric, First, if we use DOMUtilities to write out the Document from our canvas, we get a duplicate xmlns attribute in the resulting SVG file, causing every viewer I've tried to refuse to render it. This is only a minor inconvenience, but seems like a real bug. I've only observed the

Re: Unable to read more than 1MB file

2010-04-23 Thread Helder Magalhães
Hi Prashanth, I am using batik1.7 to view the svg files, but the thing is i am not able to open the more than 1MB of file. Can you please help me out in this matter. One megabyte of SVG can take quite a bit of memory, depending on content (filters, animation, etc.). :-) Note that the default

Re: Line element does not render with gradient stroke

2010-04-09 Thread Helder Magalhães
Hi Teck Hua Lee, Thanks for investigating and reporting this. :-) When using the PNGTranscoder (1.7 and trunk), I noticed that lines with gradient strokes will not render. [...] Is this a known issue or should I file a bug? Apparently it is correct as-is: a good explanation is available in

Re: prob affinetransformation and bound

2010-04-05 Thread Helder Magalhães
Hi heran, i have a svg picture which is rendering in a graphic greater document. i get the graphicsnode from my builder i do translation and a scale up upon it. the i make a bufferizedimage (java) to draw it. result : i see the svg but partially ! the svg itself is well resized (now

Re: How to create a svg animate tag during runtime and animate it?

2010-03-15 Thread Helder Magalhães
Hi Fabian, first of all thanks for your reply, but if you create the elements (rect and animate) and then create the document and load it, it should be the same if you already drawn the elements in a svg file and open it. Nope. :-p Actually, there is a key difference between having the

Re: How to create a svg animate tag during runtime and animate it?

2010-03-15 Thread Helder Magalhães
Hi Fabian, But what do I have to do, if I want to do exactly this during runtime? I've tried this: SVGOMAnimationElement animate = (SVGOMAnimationElement) this.svgDocument.createElementNS(SVGDOMImplementation.SVG_NAMESPACE_URI, SVG12Constants.SVG_ANIMATE_TAG); animate.setAttribute(dur,

Re: How to compress Batik with Proguard ?

2010-03-14 Thread Helder Magalhães
Hi Stefano, I'm using batik for a very simple application, and it's a shame that I'm forced to use more than 10Mb of libraries for that. Yup, I guess the large size is negative, specially for web (applet-based) applications... :-| I tried to use Proguard to shrink the libraries, but the

Re: Nightly builds

2010-03-10 Thread Helder Magalhães
Hi Cameron, I noticed recently that my Batik nightly builds haven’t been building since some time last year.  They should be building again now.  You can see a bunch of commits included in the build I kicked off earlier today: Oops... Actually, I had noticed for a while already, but I

Re: Creating an image on the fly from a servlet

2010-02-27 Thread Helder Magalhães
Hi Jan, I finally got it. Weird. It isn’t still clear enough to me, but... If the image is being saved from a browser (FF MSIE), the servlet is launched AGAIN. In this another request there are MISSING original parameters, so in my case it is catched and no output is written into the

Re: SVG Tiny

2010-02-24 Thread Helder Magalhães
Hi Gustavo, I would like to generate SVG in the Tiny format (http://www.w3.org/TR/SVGMobile/). There are plans to implement this functionality? AFAIK, this is already (mostly, at least) implemented into the framework. You may be interested in taking a look at the most recent specification,

Re: Creating an image on the fly from a servlet

2010-02-22 Thread Helder Magalhães
Hi Jan, Although I can see the result in the target browser, I am unable to save the image on a local disk. Actually, in Firefox I can notice an attempt to save the file, but in a download manager it is of zero size and it is not really present in the target location. MSIE offers me save the

Re: CleanerThread never terminates, causes leaks in webapp

2010-02-18 Thread Helder Magalhães
Hi everyone, GeoTools basically has the identical problem [http://jira.codehaus.org/browse/GEOT-2742]. I will investigate how to apply a similar approach and submit a patch. I've just noticed bug 48771 [1] was created. (In general, it's always good to have a link between mailing list threads

Re: CleanerThread never terminates, causes leaks in webapp

2010-02-17 Thread Helder Magalhães
Hi Joel, We are using Batik in a webapp context and the thread org.apache.batik.util.CleanerThread never terminates. This is a serious problem as it prevents the webapp's classloader from being garbage collected. Am I doing something wrong?  Is there a way to clean up and stop this thread

Re: Reload Style Sheet

2010-02-17 Thread Helder Magalhães
Hi vyang, I'm wondering if there is another way for JSVGCanvas to reload an external style sheet without having to reset the canvas document ie calling setSVGDocument(). Probably. ;-) I'm not into the details as I never needed to do such thing, nor I properly checked if Batik provides

Re: Batik Transcoder jar size

2010-02-15 Thread Helder Magalhães
Hi Teck Hua Lee, From my experiments, I need the following jars for my transcoder to work correctly during runtime. This comes up to about 4MB. Do you guys have any suggestions on how to reduce the distribution size? Is there a Batik tiny distro? AFAIK, there isn't a Batik tiny distribution

Re: problem with batik transcoder on a headless system

2010-02-09 Thread Helder Magalhães
Hi everyone, (Simon) but still, any help would be very much appreciated. You've mentioned you were using Java6 but, probably not being the cause, I'd suggest giving more detail on the Java version (and implementor... Sun? OpenJDK? GCJ?) and also surrounding things (operating

Re: Rendering precision

2010-02-07 Thread Helder Magalhães
Hi Johan, I had the same problem and couldn't find any quality settings. I did find a protected method of transcoders: createRenderer(), which returns an ImageRenderer. You can set Java2D rendering hints on this class. By creating a simple subclass you can tell the ImageRenderer to use the

Re: problem with batik transcoder on a headless system

2010-02-06 Thread Helder Magalhães
Hi simon, i have developed a yanel resource-type which is using the batik transcoder to create png and jpg from svg. on my local computer everything works like a charm. after i deployed it on a haedless server i run into a problem. i tried Djava.awt.headless=true and xvfb. and a real simple

Re: Transcoder TileCache

2010-01-28 Thread Helder Magalhães
Hi nithril, In fact I call the LRUCache.setsize at init of my webapp. It flushed the LRUCache.used list and set the LRUCache.maxsize variable to 0. The LRUCache.free list remains at 50 (which it initizialed by TileCache) which is in my opinion not logic. I noticed you have reported issue

Re: Accessing the current SVG's Script Global Object

2010-01-23 Thread Helder Magalhães
Hi Christian, Okay I thought I'd cracked it using the getInterpreter method on the JSVGCanvas But the method doesn't seem to be available [...] Any ideas ! Yep, crawling through the mailing list... ;-D Just teasing you, but actually there are already a few interesting threads and

Re: My canvas does not display some changes

2010-01-17 Thread Helder Magalhães
Hi Dao, I take the same code and insteed of setting the visibility on/off, I want a smoother rendering. I decide to add an animate element on the opacity attribute. FWIW, I've done experiments with this in the past but ended up using plain blinking (toggle the display property) due to the

Re: My canvas does not display some changes

2010-01-15 Thread Helder Magalhães
Hi Dao, Sorry about the confusion. It is not a mask in SVG terms. The mask for me is just a business term. Oops... ;-) Technically, it is just an element, like an other which is in a g appended before the first rendering. It is appended directly to the SVG root element Yeah, when Thomas

Re: Export or rasterize SVG with embedded SVG's

2010-01-10 Thread Helder Magalhães
Hi Andries, Dear batik users, this could be the wrong place but here I go : This is the right place [1] for this sort of questions. :-) You can/should also take a look at the Apache FOP [2] project, given it's level of specialty for typography/printing-related operations (PDF support and

Re: Batik show null error popup

2010-01-09 Thread Helder Magalhães
Hi Rana30, Response inline... I will get the a pop up, which is showing the null  when I try to change the view box properties. Please find the error detail in the attachment. Code: SVGOMElement svgRoot = (SVGOMElement) doc.getRootElement(); svgRoot.setAttribute( viewBox, 0 0 600 700 );

Re: contribution advice?

2010-01-08 Thread Helder Magalhães
Hi jonathan, I'd suggest taking this sort of discussions in batik-dev. That mailing list is not only for Batik committers, it's meant for developers working on or wanting to work on Batik itself [1]. ;-) Response inline... Happy New Year Batikeers, Thanks! I hope it will be a great year

Re: Text and lines not rendering

2010-01-02 Thread Helder Magalhães
Hi Matthew, Response inline... Thanks for the swift response. This has sorted out both issues. Great! :-) I am amazed, however, that Inkscape, Firefox and Safari all ignored the typo in the CSS declaration! Batik generally is a bit strict regarding error processing [1]. In this case,

Re: create a JSVGCanvas from an inputstream

2010-01-01 Thread Helder Magalhães
Hi dao, Response inline... Added in [2]. not sure of how to reference the thread Great! :-) I noticed an entry added to the how-to, but the actual page [1] doesn't exist yet...? To reference a thread, just copy a link from the archives [2]. While using the official archives, the trick

Re: xlink namespace missing in href attribute

2010-01-01 Thread Helder Magalhães
Hi Gerrit, Response inline... Hi Helder, thanks a lot for your tips. Glad to know it helped! :-) I used your line taken from [1], and it worked. Apparently, you have to pass a qualified attribute name which includes the prefix. This is even specified in the org.w3c.dom.Element

Re: Text and lines not rendering

2010-01-01 Thread Helder Magalhães
Hi Matthew, Response inline... I have some SVG that contains text and lines and only parts of it render with Squiggle or Batik, and even then there are differences between what renders. I guess I'm missing something here... What are the rendering differences between Squiggle and Batik?

Re: create a JSVGCanvas from an inputstream

2009-12-30 Thread Helder Magalhães
Hi everyone, Response inline... (jonathan wood) Here are a couple of load routines I use frequently .. Hope they help you narrow your problem. (dao) Thank you, it works fine! I will keep those routine somewhere In the wiki [1], perhaps...? ;-) The how-to section [2] seemed

Re: background for text

2009-12-30 Thread Helder Magalhães
Hi Dao, Response inline... interesting, I never think filter oriented... but if I want to highlight a filled shape, the yellow never appears, isn't it? FWIW, I never saw a way to highlight shapes which works well in all situations. For example, popular ways to highlight objects are: 1. Use

Re: jsvgcanvas serialization

2009-12-28 Thread Helder Magalhães
Hi Dao, Response inline... Considering the different messages I find, the JSVGCanvas is not serializable. So, why does it implements serializable? I didn't check the code for sure, but it might have been (serializable) in the past and afterward, during some feature implementation, broken by

Re: Rendering part of svg document at specified position in JGVTComponent

2009-12-20 Thread Helder Magalhães
Hi Tomasz, My previous post with same topic has some error, so I'm sending it again. Weird... In fact I received the previous message properly (i.e., in my email) but it doesn't display well in the official mailing list archive [1]. An unofficial archive displays it as expected [2], though...

Re: xlink namespace missing in href attribute

2009-12-19 Thread Helder Magalhães
Hi Gerrit, Response inline... Running the above code with Batik 1.6 or 1.7 produces the following output: [output] Not only is the xlink namespace added a second time (it was already present in the root element), but the namespace prefix is missing in the href attribute. Since

Re: SVG update performances over X11 export display

2009-12-01 Thread Helder Magalhães
Hi Olivier, I have very bad performances using batik to display and update a SVG over a X11 export display. I don't know about the internals of X11 export display, but I can imagine that would be close to Remote Desktop and/or VNC, possibly more efficient. But given that Java ultimately

Re: SVG update performances over X11 export display

2009-11-30 Thread Helder Magalhães
Hi Olivier, I modify the document in the thread getUpdateManager().getUpdateRunnableQueue().invokeLater Good, this is the recommended way [1] for doing it. :-) but I have several elements to change, and for the moment, I do a lot of invokeLater. In my local machine, it runs very well. I

Re: SVG update performances over X11 export display

2009-11-30 Thread Helder Magalhães
Hi Olivier, Is there a way to do this with the batik framework: beginBatchModifications() thread1 - getUpdateRunnableQueue().invokeLater(runnable1) thread2 - getUpdateRunnableQueue().invokeLater(runnable2) thread3 - getUpdateRunnableQueue().invokeLater(runnable3) thread2 -

Re: Mouse Interaction behavior

2009-11-21 Thread Helder Magalhães
Hi everyone,    BTW this discussion should really take place on batik-users since it doesn't involve development of Batik. True, note that I'm now only replying to batik-users. If not, any clues about where the geometrical processing is really done are welcomed!     What you might

Re: recursive use tag doesn´t work in batik - in Fi refox 3.5 it´s ok

2009-10-22 Thread Helder Magalhães
Hi Olaf, i have an svg file which looks very similar like the one at the end of this message. when i load this with Firefox 3.5 everything looks like expected. It's awkward to me that it works in Firefox, as far as I know the use element [1] should be empty and therefore no child content is

Re: recursive use tag doesn´t work in batik - in Fi refox 3.5 it´s ok

2009-10-22 Thread Helder Magalhães
Hi Olaf, i modified my code and then it works - thanks. Glad to know. :-) i guess FF is a little bit more tolerant than batik - or incorrect, i don´t know. It's not a matter of tolerance, it's a matter of conformance to the specification. ;-) I created a reduced test case and was about

Re: Help tracing a rendering problem in JSVGCanvas

2009-10-01 Thread Helder Magalhães
Hi Aurora, My svg files are quite big (85 KBs), created with CorelDraw. They are static, just some boxes and text. Yet, creating a very simple example which shows that would be valuable. The yellow boxes are not in the svg; they are JTextFields added to the same JSVGCanvas (and they are

Re: Help tracing a rendering problem in JSVGCanvas

2009-09-30 Thread Helder Magalhães
Hi ahhahh, No exception is thrown, but the lowest part of my svg is badly rendered. I have some images to show you the problem. Can I attach them? Yes, attaching them would be valuable, specially if images refer to reduced SVG test cases [1] (and not to actual screen-shots of the unexpected

Re: Update problem (partial update on JSVGCanvas)

2009-09-28 Thread Helder Magalhães
Hi Claire, All removals are performed in update manager thread, I test my application under Debug mode. You seem to be doing things properly, so I'd invite you to share a simple test case and/or provide more details such as operating system, Java version, etc. Actually I made a

Re: Question on Zoom

2009-09-10 Thread Helder Magalhães
Hi Bharat, Can someone give me sample code on how to control zoom in and zoom out. I have added svg file on applet and now with the help of two buttons I want to control the zooming feature. If you want to customize the zoom interactors behavior, a good place to start is:

Re: Different behaviour of SVGGraphics2D with same program on similar machines

2009-09-09 Thread Helder Magalhães
Hi oroadfc, But try the same program, same batik version, same java version (1.6) on my home machine (standard win xp box again) and it outputs one big bitmap blob to the svg file... You don't state which Batik version this occurred in! Also without at least a screenshot of the problem it's

Re: Unknown language: text/ecmascript [Precisions inside: problem with DOMUtilities]

2009-09-03 Thread Helder Magalhães
Hi Mathieu, I'll try to write you a little script in order to show precisely the problem (whithout any assuptions). Great. Being able to easily reproduce always helps a lot. But, waiting for it, can you help me, please, whith the DOMUtilities.parseXML method? I'm not very comfortable

Re: Help to migration from ASV to BSV

2009-08-31 Thread Helder Magalhães
Hi Nilesh, Currently i dont have images for example.Atcually in BSV blur image getting display compare to ASV. Not providing any examples [1] makes it pretty hard to provide any help or valuable feedback... I have doubts in ASV images get display over HTML frame and BSV that images

Re: clip-path and onmouseover (or click, onmouseout, etc.) events!

2009-08-26 Thread Helder Magalhães
Hi Mathieu, The problem is that i don't know how to deal with the sources of batik: I donwloaded these (and the patch) but i don't know how i can apply this patch and re-create the jars of the library (Do i need to use a specific ide?). Naturally, you'll need a JDK [1] or equivalent for

Re: Unknown language: text/ecmascript

2009-08-26 Thread Helder Magalhães
Hi Mathieu, java.lang.Exception: Unknown language: text/ecmascript If you mix several equivalent language types ('text/ecmascript' and 'text/javascript', for example), be aware that Cameron recently committed a fix for unexpected behavior in these cases [1]. This is only available in nightly

Re: clip-path and onmouseover (or click, onmouseout, etc.) events!

2009-08-20 Thread Helder Magalhães
Hi Mathieu, I created a clip-path element: A filled circle masked (more precisely clip-pathed) by a filled rectangle. On the circle element of the svg document, i put a onmouseover and a onmuseout attributes, wich calls a javascript method which changes the color of my shape. The problem

Re: direct access to tree to modify a shown SVG-Document?

2009-08-15 Thread Helder Magalhães
Hi Sven, Hello all. [...] It might been some mess up made my your mailing list interface (Nabble), but I've noticed the whole message was sent in a single line...? Please separate sentences (using paragraphs, for example) in order to separate ideas and ease the reply process. ;-) Now I'm

Re: direct access to tree to modify a shown SVG-Document?

2009-08-14 Thread Helder Magalhães
Hi Sven, This is a duplicate thread (of another one created one minute before)... I'd suggest replying to the original thread only. Regards, Helder - To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org For

Re: direct access to tree to modify a shown SVG-Document?

2009-08-14 Thread Helder Magalhães
Hi Sven, This is a duplicate thread (of another one created one minute before)... I'd suggest replying to the original thread only. Correction: the previous thread was deleted (on the Nabble interface), although the mailing list has triggered the messages (I've received two messages). I'd

Re: Calling Javascript From Inside An Applet

2009-08-10 Thread Helder Magalhães
Hi gary, svg contentScriptType=text/javascript width=200 height=200 version=1.1 xmlns=http://www.w3.org/2000/svg; [...] 1. Inline the show_alert() method inside the SVG itself or point the SVG to an external script (e.g. script type=text/ecmascript xlink:href=functions.js/). Note that the

Re: SVG viewer

2009-07-28 Thread Helder Magalhães
Hi Joel, First of all, you originally sent the message for the *subscription address* of the Batik developers list [1]. That doesn't make sense, and I'm wondering if that can even cause some trouble... Please be careful. :-| we want to use SVG viewer to view files ,before installing SVG

Re: Manipulating SVG images

2009-07-24 Thread Helder Magalhães
Hi Habib, (from a previous message) For example, for an svg image which contains a circle, I should be able to trigger an even by clicking the circle. Is it possible with Batik? Yes, this is possible. Mark directed towards a JavaScript (actually, ECMAScript) solution for simplicity. But

Re: Help: SVG Font Converter cannot extract from TTF

2009-07-21 Thread Helder Magalhães
Hi creatxr, I've tried several non-ascii TTF fonts, it shows the same message. It means that SVG Font Converter don't support non-ascii TTF. As Thomas has stated and myself (even without testing) find it hard to believe, the font converted should support Unicode fonts properly... I've

Re: Text Not Displaying

2009-07-19 Thread Helder Magalhães
Hi Doug, For some reason, text is no longer displaying for me in Batik 1.7 on MacOS X.  The text is there, because the cursor changes when I mouse over it, and I can select it and even copy it.  It simply doesn't display, no matter what attribute values I use. Wow, that *is* weird... :-|

Re: Help: SVG Font Converter cannot extract from TTF

2009-07-19 Thread Helder Magalhães
Hi Creatxr, java -jar batik-ttf2svg.jar ./bnucdp.ttf -o ./output/bnucdp.svg My knowledge about the SVG Font Converter [1] is close to none, but I'd suggest playing with the -l and -h switches, as the font may have several missing characters... Also, you may try using the -ascii switch to see

Re: problem on converting TTF to SVG: it doesn't support non ascii TTF like chinese?

2009-07-19 Thread Helder Magalhães
Hi Creatxr, Please don't create (similar) multiple threads before holding a few days for a response on a previous one... java -jar batik-ttf2svg.jar c:/windows/Fonts/bnucdp.ttf -autorange -o e:/a/bnucdp.svg -testcard    ---fail [...] java -jar batik-ttf2svg.jar

Re: size of a svg document!

2009-06-19 Thread Helder Magalhães
Hi Paul, there is a nice getBBox() method for SVGLocatable, which works quite well (at least with Batik 1.8), although it is tricky and not really documented. Well, I wouldn't say tricky: that method is part of the SVG DOM and therefore it's better documented within the specification [1].

Re: Zoom Out Limit

2009-06-10 Thread Helder Magalhães
Hi mistercaste, To limit the zoom-out function: [code snippet] ...hope this helps. Cheers :-) Thanks for sharing. :-) I'd suggest that interesting/potentially useful code snippets would be placed in the Batik Wiki [1] to avoid getting lost within the mailing list. The UserContributions

  1   2   3   4   >