How can I create a PDF file in classic ASP?

心已入冬 提交于 2019-12-30 06:40:46

问题


Is there any way to generate PDF files from classic ASP? I have a bunch of user-entered data that needs to be turned into a PDF that the user can download. How can I do this? OpenOffice allows exporting documents to PDF, so could this somehow be leveraged?


回答1:


I played around a bit with this (Persits ASPPDF): http://www.asppdf.com/




回答2:


Maybe running an external application that could be using CrystalReports... and you just pass it as an xml?

That's how i would do it... (lazy mode)




回答3:


See a full list of PDF components here: http://www.aspin.com/home/components/document/pdf Many of them are free.

It is also possible to use XSLT to output PDF but I am not sure if this is supported by the Microsoft XML Parser. I remember there were something stopping me when I tried to do this 3-4 years ago. Might be worth checking out know depending out the type of data you have as source.

However if these are static files or a one time job consider using a PDF converter on your computer and just upload the files to the server. There are heaps of tools for this, including Adobe Acrobat.



来源:https://stackoverflow.com/questions/440905/how-can-i-create-a-pdf-file-in-classic-asp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!