xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten S." <kom...@hotmail.com>
Subject PDFTranscoder.KEY_STROKE_TEXT has no effect
Date Wed, 02 Nov 2005 10:47:05 GMT
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: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message