Perl:将html表转换为图片图像 [英] Perl: convert html table into picture image
本文介绍了Perl:将html表转换为图片图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些创建html表的编码。我想创建该表的图像文件(即jpeg,gif)。有什么简单的方法吗?
i have some coding that creates a html table. I would like to create a image file of that table (ie jpeg, gif). is there an easy way to do this?
感谢
Gordon
thanks Gordon
推荐答案
在哪个平台上?对于Win32,有 Win32 :: CaptureIE 。
On which platform? For Win32 there is Win32::CaptureIE.
这只是该模块文档的摘要:
This is just a synopsis from that module documentation:
use Win32::CaptureIE;
StartIE;
Navigate('http://example.com/page.html');
my $img = CaptureElement('tab_user_options');
$img->Write("ie-elem.png");
QuitIE;
这篇关于Perl:将html表转换为图片图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文