Hi Carsten,
"Carsten S." <[EMAIL PROTECTED]> wrote on 11/02/2005 05:47:05 AM:
> 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.
This would tell it to always it to always stroke text, which is
not really what you want. Anyways, currently when operating
properly, the PDF Transcoder will always converts text as text
when it can, but it only handles 'simple' text, no tspans, no
x/y no text on path.
Coincidentally, I just noticed (literally last night) that the
PDFTranscoder bridges were not getting properly registered with
Batik which would also cause this, I would suggest trying the
patch attached to:
http://issues.apache.org/bugzilla/show_bug.cgi?id=37330
You may also need the patch from:
http://issues.apache.org/bugzilla/attachment.cgi?id=16853
You will have to check out FOP from SVN and build it
(just run ant). Then copy 'build/fop-transcoder-allinone.jar'
into the batik 'lib' directory as 'pdf-transcoder.jar'.
Or you could wait a week or so when I suspect that these
patches will make their way into the FOP SVN repository.
> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]