如何使用Classic ASP VBScript将HTML页面转换为PDF?

时间:2022-05-25 05:33:37

There seems to be a lot of paid components out there and stuff for .Net, but are there any free ways to convert an HTML page into PDF using Classic ASP VBScript? There has to be something from Adobe maybe?

似乎有很多付费组件和.Net的东西,但有没有任何免费方法使用经典ASP VBScript将HTML页面转换为PDF? Adobe可能会有一些东西吗?

4 个解决方案

#1


I've done a few jobs involving this sort of stuff. ABCPDF from websupergoo is the only way to go if you ask me. They will give you a free licence if you link back to them and their kit is by far the best performing and easiest to use and setup that I've come across.

我做过一些涉及这类事情的工作。如果你问我,来自websupergoo的ABCPDF是唯一的出路。如果您链接回他们,他们将为您提供免费许可证,他们的工具包是迄今为止表现最好,最容易使用和设置的。

If you can I'd go with the .net version but they do a ASP version too. Can't fault them.

如果你可以使用.net版本,但他们也会使用ASP版本。不能错过他们。

Its a tricky job to do it right though, you might have to amend your HTML pages to get them to look right as HTML is free flowing where as PDF's are per page. We tend to create seperate templates for ours or pass in a flag which appends a CSS class selector to the body tag which allows us to modify the page layout if being called from our PDF generator (ie don't fix a width, hide stuff you don't want rendered out, banners etc, search forms, change fonts, background images, etc.)

尽管如此,这是一项棘手的工作,您可能需要修改HTML页面以使其看起来正确,因为HTML是*流动的,而每页的PDF都是如此。我们倾向于为我们创建单独的模板或传入一个标志,该标志将一个CSS类选择器附加到body标签,这允许我们修改页面布局,如果从我们的PDF生成器调用(即不修复宽度,隐藏你的东西)不想渲染,横幅等,搜索表单,更改字体,背景图像等)

#2


  • If you can install custom components there's AspPDF.
  • 如果你可以安装自定义组件,那就是AspPDF。

  • If you can't install custom components give FPDF a try.
  • 如果您无法安装自定义组件,请尝试使用FPDF。

#3


There's ASPPDF.

#4


You can also install php (included even with most windows hosting plans) and use its included library http://php.net/manual/en/book.pdf.php

您也可以安装php(包括大多数Windows托管计划)并使用其包含的库http://php.net/manual/en/book.pdf.php

#1


I've done a few jobs involving this sort of stuff. ABCPDF from websupergoo is the only way to go if you ask me. They will give you a free licence if you link back to them and their kit is by far the best performing and easiest to use and setup that I've come across.

我做过一些涉及这类事情的工作。如果你问我,来自websupergoo的ABCPDF是唯一的出路。如果您链接回他们,他们将为您提供免费许可证,他们的工具包是迄今为止表现最好,最容易使用和设置的。

If you can I'd go with the .net version but they do a ASP version too. Can't fault them.

如果你可以使用.net版本,但他们也会使用ASP版本。不能错过他们。

Its a tricky job to do it right though, you might have to amend your HTML pages to get them to look right as HTML is free flowing where as PDF's are per page. We tend to create seperate templates for ours or pass in a flag which appends a CSS class selector to the body tag which allows us to modify the page layout if being called from our PDF generator (ie don't fix a width, hide stuff you don't want rendered out, banners etc, search forms, change fonts, background images, etc.)

尽管如此,这是一项棘手的工作,您可能需要修改HTML页面以使其看起来正确,因为HTML是*流动的,而每页的PDF都是如此。我们倾向于为我们创建单独的模板或传入一个标志,该标志将一个CSS类选择器附加到body标签,这允许我们修改页面布局,如果从我们的PDF生成器调用(即不修复宽度,隐藏你的东西)不想渲染,横幅等,搜索表单,更改字体,背景图像等)

#2


  • If you can install custom components there's AspPDF.
  • 如果你可以安装自定义组件,那就是AspPDF。

  • If you can't install custom components give FPDF a try.
  • 如果您无法安装自定义组件,请尝试使用FPDF。

#3


There's ASPPDF.

#4


You can also install php (included even with most windows hosting plans) and use its included library http://php.net/manual/en/book.pdf.php

您也可以安装php(包括大多数Windows托管计划)并使用其包含的库http://php.net/manual/en/book.pdf.php