通过API或ColdFusion将PDF转换为HTML?

时间:2010-10-25 22:30:56

标签: html css pdf coldfusion

我已经多次询问了这一点,我确定,但我很好奇是否可以将PDF上传到某个网站,保持私有状态,并获取HTML / CSS?或者,ColdFusion有没有办法做到这一点?它需要与PDF相同。我通过黑客马拉松的开发人员听说有一个使用Webkit引擎的PDF转换器,但我不知道在哪里找到它或它是如何工作的。

提前致谢(不,我必须使用coldfusion)!

1 个答案:

答案 0 :(得分:3)

您可以使用<cfpdf>(适用于ColdFusion 8或更高版本)生成PDF图像

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7995.html

<!--- Generate thumbnails from pages in a PDF document --->
<cfpdf
    required
    action = "thumbnail"
    source = "absolute or relative pathname to a PDF file|PDF document variable|
        cfdocument variable"
    optional
    destination = "directory path where the thumbnail images are written"
    format = "png|jpeg|tiff"
    imagePrefix = "string used as a prefix in the output filename"
    overwrite = "yes|no"
    password = "PDF source file password"
    pages = "page or pages to make into thumbnails"
    resolution= "low|high"
    scale = "percentage between 1 and 100"
    transparent = "yes|no">

仅供参考,<cfpdf>目前由iText

提供支持