Hi,

I am using Batik to generate PDF files.  I am trying to make sure that the text that 
Batik generates in SVG gets converted to text in PDF (otherwise the files become too 
large).  However, when I try to add the transcoding hint, 

t.addTranscodingHint(PDFTranscoder.KEY_STROKE_TEXT, Boolean.FALSE );

I get the error:

java.lang.IllegalArgumentException: false incompatible with [EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]> .

 

I figured that this error meant that it is expecting a String as the value for the 
transcoding hint, so I tried the following:

t.addTranscodingHint(PDFTranscoder.KEY_STROKE_TEXT, "false");

which it accepts, but when it goes to transcode, I get another error:

java.lang.ClassCastException   at org.apache.fop.svg.PDFTranscoder.transcode(Unknown 
Source)

 

Does anyone know the proper way to add this transcoding hint, or give me some insight 
into what I am doing wrong?  Thanks for the help!

 

Shaun

 

Reply via email to