I'm transcoding SVG Documents to PDF but the resulting PDFs are much bigger
than the SVG file (~factor 5), so i tried to configure the PDFTranscoder to
render text instead of shapes but setting the hint to
PDFTranscoder.KEY_STROKE_TEXT=true has no effect.
Here's the code i'm using:
File outFile = new File(path);
PDFTranscoder trPDF = new PDFTranscoder();
trPDF.addTranscodingHint(PDFTranscoder.KEY_STROKE_TEXT, Boolean.TRUE);
TranscoderInput trInput = new TranscoderInput(ivDoc);
OutputStream ostream = new FileOutputStream(outFile);
TranscoderOutput trOutput = new TranscoderOutput(ostream);
trPDF.transcode(trInput, trOutput);
I'm using Batik 1.6 with the included PDFTranscoder.jar on Win2000 JDK1.5.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]