[prev in list] [next in list] [prev in thread] [next in thread] 

List:       batik-users
Subject:    Re: SVG to PDF using FOP
From:       "=?ISO-8859-1?Q?Lars_Eirik_R=F8nning?=" <larseirik () gmail ! com>
Date:       2008-06-13 6:26:24
Message-ID: e9df2eab0806122326g1946181bu167d2e46103fda13 () mail ! gmail ! com
[Download RAW message or body]

Thanks Jeremias.
I will have try this today!

On Thu, Jun 12, 2008 at 4:33 PM, Jeremias Maerki <dev@jeremias-maerki.ch>
wrote:

> Im' not sure if I've understood you correctly. The PDF Transcoder is a
> plug-in for Batik. pdf-transcoder.jar (bundled with Batik) is a subset
> of Apache FOP. Classes like FopFactory are only used when you convert
> XSL-FO to PDF.
>
> If you want to programmatically transcoder SVG files to PDF, please read
> the basics about the Transcoder API:
> http://xmlgraphics.apache.org/batik/using/transcoder.html
> Then, instead of JPEGTranscoder or PNGTranscoder, instantiate
> org.apache.fop.svg.PDFTranscoder. The pattern remains the same.
>
> For this, the batik-rasterizer.jar is not needed but some other JARs
> from Batik's lib directory are. The alternative is that you download FOP
> 0.95beta. You've tried 0.93 but that is already a bit old.
>
> I hope that helps.
>
> On 12.06.2008 09:58:57 Lars Eirik R=F8nning wrote:
> > Hi.
> > I have used the batik rasterizer.jar to generate pdf files from svg.
> > I would like to do this using the regular pdftranscoder , that is not
> using
> > the batik-rasterizer.
> > When i look at FOP i see that there are lots of classes which is not
> found
> > within my batik project.
> > FopFactory is one of these.
> >
> > I guess that the batik implemention wraps the functionality of the
> > pdftranscoder in some way, but i would very much like to know how i can
> use
> > batik to get a pdf.
> >
> > I tried to add the dependency fop version 0.93 but this seems to depend
> on
> > earlier versions of batik.
> >
> > is ther an easy way to programmatically transcode to pdf without having
> to
> > use the rasterizer.jar?
> >
> > Thanks for helping guys.
>
>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>

[Attachment #3 (text/html)]

Thanks Jeremias.<br>I will have try this today!<br><br><div class="gmail_quote">On \
Thu, Jun 12, 2008 at 4:33 PM, Jeremias Maerki &lt;dev@jeremias-maerki.ch&gt; \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Im&#39; not sure if I&#39;ve \
understood you correctly. The PDF Transcoder is a<br> plug-in for Batik. \
pdf-transcoder.jar (bundled with Batik) is a subset<br> of Apache FOP. Classes like \
FopFactory are only used when you convert<br> XSL-FO to PDF.<br>
<br>
If you want to programmatically transcoder SVG files to PDF, please read<br>
the basics about the Transcoder API:<br>
<a href="http://xmlgraphics.apache.org/batik/using/transcoder.html" \
target="_blank">http://xmlgraphics.apache.org/batik/using/transcoder.html</a><br> \
Then, instead of JPEGTranscoder or PNGTranscoder, instantiate<br> \
org.apache.fop.svg.PDFTranscoder. The pattern remains the same.<br> <br>
For this, the batik-rasterizer.jar is not needed but some other JARs<br>
from Batik&#39;s lib directory are. The alternative is that you download FOP<br>
0.95beta. You&#39;ve tried 0.93 but that is already a bit old.<br>
<br>
I hope that helps.<br>
<div><div></div><div class="Wj3C7c"><br>
On 12.06.2008 09:58:57 Lars Eirik Rønning wrote:<br>
&gt; Hi.<br>
&gt; I have used the batik rasterizer.jar to generate pdf files from svg.<br>
&gt; I would like to do this using the regular pdftranscoder , that is not using<br>
&gt; the batik-rasterizer.<br>
&gt; When i look at FOP i see that there are lots of classes which is not found<br>
&gt; within my batik project.<br>
&gt; FopFactory is one of these.<br>
&gt;<br>
&gt; I guess that the batik implemention wraps the functionality of the<br>
&gt; pdftranscoder in some way, but i would very much like to know how i can use<br>
&gt; batik to get a pdf.<br>
&gt;<br>
&gt; I tried to add the dependency fop version 0.93 but this seems to depend on<br>
&gt; earlier versions of batik.<br>
&gt;<br>
&gt; is ther an easy way to programmatically transcode to pdf without having to<br>
&gt; use the rasterizer.jar?<br>
&gt;<br>
&gt; Thanks for helping guys.<br>
<br>
<br>
<br>
<br>
</div></div>Jeremias Maerki<br>
<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a \
href="mailto:batik-users-unsubscribe@xmlgraphics.apache.org">batik-users-unsubscribe@xmlgraphics.apache.org</a><br>
 For additional commands, e-mail: <a \
href="mailto:batik-users-help@xmlgraphics.apache.org">batik-users-help@xmlgraphics.apache.org</a><br>
 <br>
</blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic