> documentProperties=createObject('java','java.util.HashMap').init();
> templateStream=createObject('java','java.io.FileInputStream').init(generat
> edTemplate);
> documentPrinter=variables.loader.create('org.ujac.print.DocumentPrinter').
> init(templateStream,documentProperties);
> resourceLoader=variables.loader.create('org.ujac.util.io.FileResourceLoade
> r').init(arguments.resPath);
> documentPrinter.setResourceLoader(resourceLoader);
> pdfStream=createObject('java','java.io.FileOutputStream').init(pdfPath);
> documentPrinter.printDocument(pdfStream,true);

Are you closing your FileInputStream / FileOutputStream?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298543
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to