We are moving part of our application to Sharepoint. The pages that create Pdf's will create single and multiple Pdf's with no problems. It does not create a Pdf if we have a TOC. It does not create a TOC in either a web browser or by saving the file to disk. When saving the file we get a 0 length file. When trying to open in browser we get the message that the file is corrupted. We verified the situation by running the same code locally outside of Sharepoint and it will create the TOC.
Do you have any ideas what might cause this problem?
We need to test this issue. Can you please tell me your OS and the versions of Shaerpoint and .Net?
Never mind we found the problem. I originally created the pdf code and put the path to a banner image in the web.config file. The programmer who is doing the conversion had moved all the images to a shared image folder and did not update the path in web.config. I discoverd this when I was putting a word doc and code sample for you to work with. I noticed the image line in the toc section and thought it might be a good idea to check the toc without the image. When it worked we realized the image had been moved and that turned out to be the problem.