Hi,

I have a piece of code which uses the Apache FOP PDFTranscoder to
convert a piece of SVG  (created with Batik) into PDF.

Code is as follows:

        Transcoder loTranscoder = new PDFTranscoder();

        loInputFile = new File("test2.svg");
        InputStream loSVGInputStream = new
FileInputStream(loInputFile);       
        TranscoderInput loSVGInput = new TranscoderInput(loSVGInputStream);
       
        OutputStream loPDFOutputStream = new FileOutputStream("test2.pdf");
        loPDFOutputStream = new BufferedOutputStream(loPDFOutputStream);
       
        TranscoderOutput loPDFOutput = new
TranscoderOutput(loPDFOutputStream);
       
        loTranscoder.transcode(loSVGInput, loPDFOutput);
       
        loPDFOutputStream.close();
        loSVGInputStream.close();


The issue I am having, is that when using the SVN trunk version of
Batik, I am getting a rasterized format pdf, which is pretty ugly and
81kbyte!

When I use Batik 1.6 however, the resulting pdf is a very nice vector
style pdf that is only 2kbyte!

I am wanting to use the SVN trunk version of Batik, as I am creating the
initial SVG file from a WMF file, using the WMFTranscoder (to SVG).
This works fine with SVN trunk version of Batik... BUT,... with Batik
1.6... it produces a not so good SVG file, with a encoding of Cp1252 ,
so, nothing really loads it (including Batik!!!)

Is there a reason why the latest SVN trunk version of Batik produces a
rasterized format PDF, when the "old" Batik 1.6 produces a really nice
vector style PDF?

How can I get SVN trunk version of Batik to output a PDF the same as
Batik 1.6 does?

If you would like the pdf files, and the svg files involed, email me
offlist, and I will email them

Thanks
Antonio Broughton

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to