代码之家  ›  专栏  ›  技术社区  ›  Oscar Godson

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

  •  1
  • Oscar Godson  · 技术社区  · 14 年前

    我敢肯定,这已经被问过很多次了,但是我很好奇是否可以上传一个PDF到某个网站,保持它的私密性,然后返回HTML/CSS?或者,有没有办法用冷融合来做到这一点?它应该和PDF文件差不多。我通过hackathon的一个开发人员听说有一个PDF转换器使用Webkit引擎,但我不知道在哪里可以找到它,也不知道它是如何工作的。

    提前谢谢(不,我得用冷饮)!

    1 回复  |  直到 14 年前
        1
  •  3
  •   Henry    14 年前

    您可以使用 <cfpdf>

    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">
    

    仅供参考, < 当前由 iText