Forum OpenACS Q&A: Response to Help for using HTMLDOC to output pdf file/download pdf file

Thanks.  Tilmann .

I copied the set_the_usual_form_variable to the OACS4.5 and make it works. The file name can be passed into the pdf_downloader procedure. And the html file and pdf file can be generated. The only problem is that server doesn't serve pdf file out.

ns_returnfile 200 "application/pdf" $file_name_pdf. This code doesn't return anything.

I guess the problem is the permission issue of serving virutal url in new OAC4.5. Can someone who developed the new file-storage package give some hints?

Thanks,

Jay