如何自动将HTML转换为PDF? [英] How can I automate HTML-to-PDF conversions?

查看:85
本文介绍了如何自动将HTML转换为PDF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用htmldoc已有一段时间了,但是遇到了一些相当严重的限制.我需要最终解决方案才能在Linux机器上工作.我将从Perl应用程序中调用此库/实用程序/应用程序,因此任何Perl接口都将是一个奖励.

I've been using htmldoc for a while, but I've run into some fairly serious limitations. I need the end solution to work on a Linux box. I'll be calling this library/utility/application from a Perl app, so any Perl interfaces would be a bonus.

推荐答案

注意:此答案来自2008年,现在可能不正确;请检查其他答案

NOTE: This answer is from 2008 and is probably now incorrect; please check the other answers

PrinceXML 是我见过的最好的XML(它解析常规HTML以及XML/XHTML ).最好吗? 嗯,它通过了acid2测试,我认为这真是令人印象深刻

PrinceXML is the best one I've seen (it parses regular HTML as well as XML/XHTML). How is it the best? Well, it passes the acid2 test which I thought was pretty darn impressive

但是,它很贵

这篇关于如何自动将HTML转换为PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆