Programmatically create image from web-page or a single DIV

后端 未结 6 790
滥情空心
滥情空心 2020-12-05 20:12

Is there any way to programmatically create (client or server side (PHP)) a image from a specific DIV or a complete (web) page? I\'m currently creating a web-site for free c

6条回答
  •  一向
    一向 (楼主)
    2020-12-05 20:47

    In php, there is many image related functions like imagettftext() in GD library for details, check this out http://php.net/manual/en/book.image.php if GD is not enough, you can try imagick as well

    for the template, you can try creating a true color handle in php from your file(image) and add the text part or something else with all kinds of effects and bar codes etc.

    but in your case, i would suggest dynamic PDF creation since it would better with formatting instead of plain image, the pdf lib : http://www.fpdf.org/

提交回复
热议问题