V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
nouh
V2EX  ›  问与答

用脚本从html转pdf有什么好的方案

  •  
  •   nouh · Dec 12, 2013 · 3500 views
    This topic created in 4525 days ago, the information mentioned may be changed or developed.
    html里含svg, 研究了下pandoc,要装textlive一堆东西,有点麻烦
    10 replies    1970-01-01 08:00:00 +08:00
    icyflash
        1
    icyflash  
       Dec 12, 2013
    虚拟打印机?
    xunyu
        2
    xunyu  
       Dec 12, 2013
    perl 有pdf的模块,就是结构简单了点,打打文字没问题
    ETiV
        3
    ETiV  
       Dec 12, 2013
    用Mac OS上的浏览器, 打印, 保存为PDF...
    otakustay
        4
    otakustay  
       Dec 12, 2013 via iPad
    用phantomjs截图,图片做成pdf
    9
        5
    9  
       Dec 12, 2013
    wkhtmltopdf ? 一直在用这个,svg没试过, 应该可以。
    JoyNeop
        6
    JoyNeop  
       Dec 12, 2013
    @ETiV +42
    whuhacker
        7
    whuhacker  
       Dec 12, 2013   ❤️ 1
    sodatea
        8
    sodatea  
       Dec 13, 2013
    PhantomJS +1
    nouh
        9
    nouh  
    OP
       Dec 13, 2013
    @9 试了下,svg的图转换出来少了一块,额
    nouh
        10
    nouh  
    OP
       Dec 13, 2013
    @sodatea 可以,但是对svg的支持貌似不是很完美,转出来不一致额
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   959 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 23:36 · PVG 07:36 · LAX 16:36 · JFK 19:36
    ♥ Do have faith in what you're doing.