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 klaus Förster <kl...@uibk.ac.at> on 2006/08/28 12:04:54 UTC

PDF Transcoder shifts stroke of path to bottom/left

Hi,

When I convert SVG-paths within a nested SVG-Element using batik-1.6 
batik-rasterizer, the outline of all paths gets shifted bottom/left in 
the resulting PDF. Using image/png as output format produces correct 
results as expected. The following files illustrate the problem:

PDF: http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.pdf
PNG: http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.png
SVG: http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.svg

commands used for conversion to PDF, PNG:
http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.txt

the general structure of the SVG file is as follows:
<svg width="297mm" height="210mm" viewBox="0 0 900 600">
  <svg x="10" y="55" width="640" height="542"
       viewBox="4300000 -2760000 260000 220000">
   <g stroke="#000" stroke-width="0.03%">
    <paths ... />
   </g>
  </svg>
</svg>

any ideas on how to solve this?

thanks in advance
Klaus Förster, Tirol Atlas

-- 
          O-.
          /_ )
           | (U
klaus*   /|
         / /
         ~ ~

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


Re: PDF Transcoder shifts stroke of path to bottom/left

Posted by klaus Förster <kl...@uibk.ac.at>.
Thanks Andreas for your quick reply and the provided solution!
I've installed the latest SVN version and placement now works as expected.

Klaus

Andreas Neumann wrote:
> Hi Klaus,
> 
> this problem is fixed in the latest SVN version. The SVN version 
> contains numerous bug fixes and improvements over the latest stable 
> release 1.6. I tested it with your SVG file. Here is the output: 
> http://www.carto.net/neumann/temp/klaus.pdf
> 
> I believe that Thomas and Cameron plan to release a new version (1.7) 
> soon. Until then you can build your own distribution from SVN or use one 
> of the nightly builds.
> 
> Best wishes,
> Andreas
> 
> 
> klaus Förster wrote:
> 
>> Hi,
>>
>> When I convert SVG-paths within a nested SVG-Element using batik-1.6 
>> batik-rasterizer, the outline of all paths gets shifted bottom/left in 
>> the resulting PDF. Using image/png as output format produces correct 
>> results as expected. The following files illustrate the problem:
>>
>> PDF: http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.pdf
>> PNG: http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.png
>> SVG: http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.svg
>>
>> commands used for conversion to PDF, PNG:
>> http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.txt
>>
>> the general structure of the SVG file is as follows:
>> <svg width="297mm" height="210mm" viewBox="0 0 900 600">
>>  <svg x="10" y="55" width="640" height="542"
>>       viewBox="4300000 -2760000 260000 220000">
>>   <g stroke="#000" stroke-width="0.03%">
>>    <paths ... />
>>   </g>
>>  </svg>
>> </svg>
>>
>> any ideas on how to solve this?
>>
>> thanks in advance
>> Klaus Förster, Tirol Atlas
>>
> 
> 

-- 
          O-.
          /_ )
           | (U
klaus*   /|
         / /
         ~ ~

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


Re: PDF Transcoder shifts stroke of path to bottom/left

Posted by Andreas Neumann <ne...@karto.baug.ethz.ch>.
Hi Klaus,

this problem is fixed in the latest SVN version. The SVN version 
contains numerous bug fixes and improvements over the latest stable 
release 1.6. I tested it with your SVG file. Here is the output: 
http://www.carto.net/neumann/temp/klaus.pdf

I believe that Thomas and Cameron plan to release a new version (1.7) 
soon. Until then you can build your own distribution from SVN or use one 
of the nightly builds.

Best wishes,
Andreas


klaus Förster wrote:

> Hi,
>
> When I convert SVG-paths within a nested SVG-Element using batik-1.6 
> batik-rasterizer, the outline of all paths gets shifted bottom/left in 
> the resulting PDF. Using image/png as output format produces correct 
> results as expected. The following files illustrate the problem:
>
> PDF: http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.pdf
> PNG: http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.png
> SVG: http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.svg
>
> commands used for conversion to PDF, PNG:
> http://tirolatlas.uibk.ac.at/devel/bugs/200608_batik/fop.txt
>
> the general structure of the SVG file is as follows:
> <svg width="297mm" height="210mm" viewBox="0 0 900 600">
>  <svg x="10" y="55" width="640" height="542"
>       viewBox="4300000 -2760000 260000 220000">
>   <g stroke="#000" stroke-width="0.03%">
>    <paths ... />
>   </g>
>  </svg>
> </svg>
>
> any ideas on how to solve this?
>
> thanks in advance
> Klaus Förster, Tirol Atlas
>


-- 
----------------------------------------------
Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093  Zurich, Switzerland

Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: neumann@karto.baug.ethz.ch
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/


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