Before FOP giving outof memory exception. I fixed it using the documentation provioded in apache website. But now, after the rendering, once the pdf is created, the PDF is not opening the document and giving File is damaged and could not be repaired error and not allowing to open the pdf form.
You give us very little information that would allow us to help you. You need to tell us how you run FOP (command-line or embedded in your application). Are there any error messages. Did you use the -d option in fop.bat/fop.sh? You should also upgrade your FOP version. 0.20.1 is VERY old. I'm closing this bug. You should subscribe to the fop-user mailing list and ask follow-up questions there. Bugzilla is for bugs, requests for enhancement and patches. Thanks.
batch transition to closed remaining pre-FOP1.0 resolved bugs