You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by benamou <je...@inria.fr> on 2006/04/18 09:57:28 UTC

problem with stroke-dasharray while converting svg to pdf with batik-rasterizer

Hi,

it seems any decimal value of
stroke-dasharray

default to 1 when converting svg to pdf.

I am using JRE1.5 on windows XP and Server 2003

Thanks

JD

Re: problem with stroke-dasharray while converting svg to pdf with batik-rasterizer

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Three to four months for FOP at the moment.

On 18.04.2006 15:26:23 Jean-David Benamou wrote:
> Can you give me a rough idea of the frequency of
> such upgrades ?
> 
> Thanks
> JD
> 
> 
> 
> Jeremias Maerki wrote:
> 
> >I'd have to push it in. Right now it's only in trunk. The branch for
> >0.92 is already made. The fix for PS/EPS cannot go into 0.92 anymore
> >since Commons 1.0 is already released.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: problem with stroke-dasharray while converting svg to pdf with batik-rasterizer

Posted by Jean-David Benamou <je...@inria.fr>.
Can you give me a rough idea of the frequency of
such upgrades ?

Thanks
JD



Jeremias Maerki wrote:

>I'd have to push it in. Right now it's only in trunk. The branch for
>0.92 is already made. The fix for PS/EPS cannot go into 0.92 anymore
>since Commons 1.0 is already released.
>
>On 18.04.2006 15:05:40 thomas.deweese wrote:
>  
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: problem with stroke-dasharray while converting svg to pdf with batik-rasterizer

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I'd have to push it in. Right now it's only in trunk. The branch for
0.92 is already made. The fix for PS/EPS cannot go into 0.92 anymore
since Commons 1.0 is already released.

On 18.04.2006 15:05:40 thomas.deweese wrote:
> Hi Jeremias,
> 
>    Will this fix be in your 0.92 release?
> 
>    If so I was planning on importing the updated pdf-transcoder.jar once 
> the
> release was made...
> 
> Jeremias Maerki <de...@jeremias-maerki.ch> wrote on 04/18/2006 08:50:23 AM:
> 
> > I don't think so. It's probably a little more complicated:
> > We haven't migrated the PDF and PS transcoders that were developed in
> > FOP over to Batik, yet. If you want theses changes you'll have to get
> > the sources for FOP Trunk from Subversion. You can skip XML Graphics
> > Commons for now because you're probably not interested in the fix for
> > PS/EPS output, only PDF. You'll need to build FOP from the sources and
> > take fop-transcoder-allinone.jar and use that JAR file instead of the
> > pdf-transcoder.jar in Batik's lib directory.
> > 
> > On 18.04.2006 14:43:45 benamou wrote:
> > > OK thanks
> > > does that means that it should work in batik nightly builds ?
> > > JD
> > > 
> > > ----- Original Message ----- 
> > > From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
> > > To: <ba...@xmlgraphics.apache.org>
> > > Sent: Tuesday, April 18, 2006 2:39 PM
> > > Subject: Re: problem with stroke-dasharray while converting svg to pdf 
> with 
> > > batik-rasterizer
> > > 
> > > 
> > > > Thanks for reporting this. I've fixed it in both PDFGraphics2D (FOP
> > > > Trunk) and PSGraphics2D (XML Graphics Commons Trunk). The latter had 
> a
> > > > similar but somewhat different bug.
> > > >
> > > > Changes in SVN:
> > > > http://svn.apache.org/viewcvs?rev=394928&view=rev
> > > > http://svn.apache.org/viewcvs?rev=394927&view=rev
> > > >
> > > > On 18.04.2006 10:08:36 benamou wrote:
> > > >> Sorry here is a test case :
> > > >>
> > > >> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="210mm" 
> 
> > > >> height="297mm" viewBox="0 0 210 297"><rect x="20" y="20" width="10" 
> 
> > > >> height="10" fill="none" stroke="black" stroke-width="0.25" 
> > > >> stroke-dasharray="0.25"/></svg>
> > > >>
> > > >> the svg has the correct number of dashes
> > > >>
> > > >> the pdf obtained with
> > > >>
> > > >> java -jar batik-rasterizer -d test.pdf -m application/pdf test.svg
> > > >>
> > > >> shows only 5 per side.
> > > >>   ----- Original Message ----- 
> > > >>   From: benamou
> > > >>   To: batik-users@xmlgraphics.apache.org
> > > >>   Sent: Tuesday, April 18, 2006 9:57 AM
> > > >>   Subject: problem with stroke-dasharray while converting svg to 
> pdf with 
> > > >> batik-rasterizer
> > > >>
> > > >>
> > > >>
> > > >>   Hi,
> > > >>
> > > >>   it seems any decimal value of
> > > >>   stroke-dasharray
> > > >>
> > > >>   default to 1 when converting svg to pdf.
> > > >>
> > > >>   I am using JRE1.5 on windows XP and Server 2003
> > > >>
> > > >>   Thanks
> > > >>
> > > >>   JD


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: problem with stroke-dasharray while converting svg to pdf with batik-rasterizer

Posted by th...@kodak.com.
Hi Jeremias,

   Will this fix be in your 0.92 release?

   If so I was planning on importing the updated pdf-transcoder.jar once 
the
release was made...

Jeremias Maerki <de...@jeremias-maerki.ch> wrote on 04/18/2006 08:50:23 AM:

> I don't think so. It's probably a little more complicated:
> We haven't migrated the PDF and PS transcoders that were developed in
> FOP over to Batik, yet. If you want theses changes you'll have to get
> the sources for FOP Trunk from Subversion. You can skip XML Graphics
> Commons for now because you're probably not interested in the fix for
> PS/EPS output, only PDF. You'll need to build FOP from the sources and
> take fop-transcoder-allinone.jar and use that JAR file instead of the
> pdf-transcoder.jar in Batik's lib directory.
> 
> On 18.04.2006 14:43:45 benamou wrote:
> > OK thanks
> > does that means that it should work in batik nightly builds ?
> > JD
> > 
> > ----- Original Message ----- 
> > From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
> > To: <ba...@xmlgraphics.apache.org>
> > Sent: Tuesday, April 18, 2006 2:39 PM
> > Subject: Re: problem with stroke-dasharray while converting svg to pdf 
with 
> > batik-rasterizer
> > 
> > 
> > > Thanks for reporting this. I've fixed it in both PDFGraphics2D (FOP
> > > Trunk) and PSGraphics2D (XML Graphics Commons Trunk). The latter had 
a
> > > similar but somewhat different bug.
> > >
> > > Changes in SVN:
> > > http://svn.apache.org/viewcvs?rev=394928&view=rev
> > > http://svn.apache.org/viewcvs?rev=394927&view=rev
> > >
> > > On 18.04.2006 10:08:36 benamou wrote:
> > >> Sorry here is a test case :
> > >>
> > >> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="210mm" 

> > >> height="297mm" viewBox="0 0 210 297"><rect x="20" y="20" width="10" 

> > >> height="10" fill="none" stroke="black" stroke-width="0.25" 
> > >> stroke-dasharray="0.25"/></svg>
> > >>
> > >> the svg has the correct number of dashes
> > >>
> > >> the pdf obtained with
> > >>
> > >> java -jar batik-rasterizer -d test.pdf -m application/pdf test.svg
> > >>
> > >> shows only 5 per side.
> > >>   ----- Original Message ----- 
> > >>   From: benamou
> > >>   To: batik-users@xmlgraphics.apache.org
> > >>   Sent: Tuesday, April 18, 2006 9:57 AM
> > >>   Subject: problem with stroke-dasharray while converting svg to 
pdf with 
> > >> batik-rasterizer
> > >>
> > >>
> > >>
> > >>   Hi,
> > >>
> > >>   it seems any decimal value of
> > >>   stroke-dasharray
> > >>
> > >>   default to 1 when converting svg to pdf.
> > >>
> > >>   I am using JRE1.5 on windows XP and Server 2003
> > >>
> > >>   Thanks
> > >>
> > >>   JD
> > >
> > >
> > >
> > > Jeremias Maerki
> > >
> > >
> > > 
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: 
batik-users-unsubscribe@xmlgraphics.apache.org
> > > For additional commands, e-mail: 
batik-users-help@xmlgraphics.apache.org
> > > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: 
batik-users-help@xmlgraphics.apache.org
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: problem with stroke-dasharray while converting svg to pdf with batik-rasterizer

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I don't think so. It's probably a little more complicated:
We haven't migrated the PDF and PS transcoders that were developed in
FOP over to Batik, yet. If you want theses changes you'll have to get
the sources for FOP Trunk from Subversion. You can skip XML Graphics
Commons for now because you're probably not interested in the fix for
PS/EPS output, only PDF. You'll need to build FOP from the sources and
take fop-transcoder-allinone.jar and use that JAR file instead of the
pdf-transcoder.jar in Batik's lib directory.

On 18.04.2006 14:43:45 benamou wrote:
> OK thanks
> does that means that it should work in batik nightly builds ?
> JD
> 
> ----- Original Message ----- 
> From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
> To: <ba...@xmlgraphics.apache.org>
> Sent: Tuesday, April 18, 2006 2:39 PM
> Subject: Re: problem with stroke-dasharray while converting svg to pdf with 
> batik-rasterizer
> 
> 
> > Thanks for reporting this. I've fixed it in both PDFGraphics2D (FOP
> > Trunk) and PSGraphics2D (XML Graphics Commons Trunk). The latter had a
> > similar but somewhat different bug.
> >
> > Changes in SVN:
> > http://svn.apache.org/viewcvs?rev=394928&view=rev
> > http://svn.apache.org/viewcvs?rev=394927&view=rev
> >
> > On 18.04.2006 10:08:36 benamou wrote:
> >> Sorry here is a test case :
> >>
> >> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="210mm" 
> >> height="297mm" viewBox="0 0 210 297"><rect x="20" y="20" width="10" 
> >> height="10" fill="none" stroke="black" stroke-width="0.25" 
> >> stroke-dasharray="0.25"/></svg>
> >>
> >> the svg has the correct number of dashes
> >>
> >> the pdf obtained with
> >>
> >> java -jar batik-rasterizer -d test.pdf -m application/pdf test.svg
> >>
> >> shows only 5 per side.
> >>   ----- Original Message ----- 
> >>   From: benamou
> >>   To: batik-users@xmlgraphics.apache.org
> >>   Sent: Tuesday, April 18, 2006 9:57 AM
> >>   Subject: problem with stroke-dasharray while converting svg to pdf with 
> >> batik-rasterizer
> >>
> >>
> >>
> >>   Hi,
> >>
> >>   it seems any decimal value of
> >>   stroke-dasharray
> >>
> >>   default to 1 when converting svg to pdf.
> >>
> >>   I am using JRE1.5 on windows XP and Server 2003
> >>
> >>   Thanks
> >>
> >>   JD
> >
> >
> >
> > Jeremias Maerki
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: problem with stroke-dasharray while converting svg to pdf with batik-rasterizer

Posted by benamou <je...@inria.fr>.
OK thanks
does that means that it should work in batik nightly builds ?
JD

----- Original Message ----- 
From: "Jeremias Maerki" <de...@jeremias-maerki.ch>
To: <ba...@xmlgraphics.apache.org>
Sent: Tuesday, April 18, 2006 2:39 PM
Subject: Re: problem with stroke-dasharray while converting svg to pdf with 
batik-rasterizer


> Thanks for reporting this. I've fixed it in both PDFGraphics2D (FOP
> Trunk) and PSGraphics2D (XML Graphics Commons Trunk). The latter had a
> similar but somewhat different bug.
>
> Changes in SVN:
> http://svn.apache.org/viewcvs?rev=394928&view=rev
> http://svn.apache.org/viewcvs?rev=394927&view=rev
>
> On 18.04.2006 10:08:36 benamou wrote:
>> Sorry here is a test case :
>>
>> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="210mm" 
>> height="297mm" viewBox="0 0 210 297"><rect x="20" y="20" width="10" 
>> height="10" fill="none" stroke="black" stroke-width="0.25" 
>> stroke-dasharray="0.25"/></svg>
>>
>> the svg has the correct number of dashes
>>
>> the pdf obtained with
>>
>> java -jar batik-rasterizer -d test.pdf -m application/pdf test.svg
>>
>> shows only 5 per side.
>>   ----- Original Message ----- 
>>   From: benamou
>>   To: batik-users@xmlgraphics.apache.org
>>   Sent: Tuesday, April 18, 2006 9:57 AM
>>   Subject: problem with stroke-dasharray while converting svg to pdf with 
>> batik-rasterizer
>>
>>
>>
>>   Hi,
>>
>>   it seems any decimal value of
>>   stroke-dasharray
>>
>>   default to 1 when converting svg to pdf.
>>
>>   I am using JRE1.5 on windows XP and Server 2003
>>
>>   Thanks
>>
>>   JD
>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: problem with stroke-dasharray while converting svg to pdf with batik-rasterizer

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Thanks for reporting this. I've fixed it in both PDFGraphics2D (FOP
Trunk) and PSGraphics2D (XML Graphics Commons Trunk). The latter had a
similar but somewhat different bug.

Changes in SVN:
http://svn.apache.org/viewcvs?rev=394928&view=rev
http://svn.apache.org/viewcvs?rev=394927&view=rev

On 18.04.2006 10:08:36 benamou wrote:
> Sorry here is a test case : 
> 
> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="210mm" height="297mm" viewBox="0 0 210 297"><rect x="20" y="20" width="10" height="10" fill="none" stroke="black" stroke-width="0.25" stroke-dasharray="0.25"/></svg>
> 
> the svg has the correct number of dashes 
> 
> the pdf obtained with 
> 
> java -jar batik-rasterizer -d test.pdf -m application/pdf test.svg
> 
> shows only 5 per side. 
>   ----- Original Message ----- 
>   From: benamou 
>   To: batik-users@xmlgraphics.apache.org 
>   Sent: Tuesday, April 18, 2006 9:57 AM
>   Subject: problem with stroke-dasharray while converting svg to pdf with batik-rasterizer
> 
> 
> 
>   Hi,
> 
>   it seems any decimal value of
>   stroke-dasharray
> 
>   default to 1 when converting svg to pdf.
> 
>   I am using JRE1.5 on windows XP and Server 2003
> 
>   Thanks
> 
>   JD



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org