You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Samuel Neff <sa...@serndesign.com> on 2002/07/20 06:43:11 UTC
Using FOP from ColdFusion
I'm new to FOP and Java. I'm trying to use FOP from ColdFusion and am
running into an error.
Character conversion error: "Unconvertible UTF-8 character
beginning with 0xaa" (line number may be too low).
The conversion works fine using the fop.bat file.
<cfscript>
ThisPath=ExpandPath(".\");
SourceFile=ThisPath & "fopexample.xml";
TargetFile=ThisPath & "fopexample.pdf";
fileSource=CreateObject("java","java.io.File");
fileSource.init(TargetFile);
inputHandler=CreateObject("java","org.apache.fop.apps.InputHandler");
src=inputHandler.fileInputSource(fileSource);
tgt=CreateObject("java","java.io.FileOutputStream");
tgt.init(TargetFile);
drv=CreateObject("java","org.apache.fop.apps.Driver");
drv.init(src,tgt);
rndr=CreateObject("java","org.apache.fop.render.pdf.PDFRenderer");
rndr.init();
drv.setRenderer(rndr); // <--- ERROR OCCURS HERE
drv.run();
</cfscript>
Thanks,
Sam