nouh
V2EX  ›  问与答

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

  •  
  •   nouh · Dec 12, 2013 · 3940 views
    This topic created in 4723 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
    icyflash
    Dec 12, 2013
    1
    虚拟打印机?
    xunyu
    xunyu
    Dec 12, 2013
    2
    perl 有pdf的模块,就是结构简单了点,打打文字没问题
    ETiV
    ETiV
    Dec 12, 2013
    3
    用Mac OS上的浏览器, 打印, 保存为PDF...
    otakustay
    otakustay
    Dec 12, 2013 via iPad
    4
    用phantomjs截图,图片做成pdf
    9
    9
    Dec 12, 2013
    5
    wkhtmltopdf ? 一直在用这个,svg没试过, 应该可以。
    JoyNeop
    JoyNeop
    Dec 12, 2013
    6
    @ETiV +42
    whuhacker
    whuhacker
    Dec 12, 2013❤️1
    7
    sodatea
    sodatea
    Dec 13, 2013
    8
    PhantomJS +1
    nouh
    nouh
    OP
    Dec 13, 2013
    9
    @9 试了下,svg的图转换出来少了一块,额
    nouh
    nouh
    OP
    Dec 13, 2013
    10
    @sodatea 可以,但是对svg的支持貌似不是很完美,转出来不一致额
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4334 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 07:37 · PVG 15:37 · LAX 23:37 · JFK 02:37
    ♥ Do have faith in what you're doing.