Upgrading to 0.93 - Deprecated methods
- I am trying to run 0.93 using 0.20.5's API. I'm just wondering if
someone would know off the top of their heads the equivalent calls?
Reading the upgrade page indicates that a new API was release with 0.93
and based on the error that I'm getting, I should be calling different
I was using the setInputSource(), setOutputStream() and run() methods.
Here is the list of relevant calls to FOP (in Coldfusion and some lines
were taken out for simplicity):
<cfset THIS.driver = CreateObject("java", "org.apache.fop.apps.Driver")>
<cfset var reader = CreateObject("java", "java.io.StringReader")>
<cfset var input = CreateObject("java", "org.xml.sax.InputSource")>
<cfset var output = CreateObject("java", "java.io.FileOutputStream")>
<cfset output.init( ARGUMENTS.pdfFile )>
PS: I am not the originator of the original code that this was taken
- Fournier,Danny [NCR] wrote:
>If you have downloaded FOP onto your machine you can take a look at
> I am trying to run 0.93 using 0.20.5's API. I'm just wondering if
> someone would know off the top of their heads the equivalent calls?
example code on how to embed FOP with the new API in the following
directory below the root of your FOP install: