SVG to PDF on a shared linux server

前端 未结 5 1589
庸人自扰
庸人自扰 2020-12-28 09:10

I have a website which uses SVG for an interactive client side thingamabob. I would like to provide the option to download a PDF of the finished output. I can pass the final

5条回答
  •  借酒劲吻你
    2020-12-28 09:35

    I stumbled across TCPDF today which would have been perfect for this, had I known about it at the time. It's just a collection of pure PHP classes, no external dependencies for most things.

    It can build PDF's from scratch and you can include pretty much anything you want in there, including SVG (amongst many, many other things), as shown in these examples:

    http://www.tcpdf.org/examples.php

    Main project page is here:

    http://www.tcpdf.org/

    Sourceforge page is here:

    http://sourceforge.net/projects/tcpdf/

提交回复
热议问题