hi !

i have the following java code to generate a pdf file:

        Options options = new Options();
            options.loadUserconfiguration("userconfig.xml");

        Driver driver = new Driver( new InputSource( "d:\\projects\\FOPTest.fo" ),
new FileOutputStream( "d:\\projects\\FOPTest.pdf" ) );
        driver.setRenderer( Driver.RENDER_PDF );
        driver.run();


it's for sure, that the FOPTest.fo file is in the folder projects, but FOP
says file not found exception.

when i have the fo-file in the same folder as the executable class ( like
this:
        Driver driver = new Driver( new InputSource( "FOPTest.fo" ),    new
FileOutputStream( "FOPTest.pdf" ) ); )

it works.
but when i have the source fo file in a different order i get that
exception.

anybody know why addressing the fo-file doesn't work ?


greetings

Nick Winger


(Software-Developer)
==============================
VANGUARD Software GmbH
Julius Tandler Platz 8
1090 Vienna, AUSTRIA

Phone: +43-1-3195263-20
Fax:   +43-1-3195263-90
http://www.vanguard.at
==============================



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to