Perl: convert html table into picture image

有些话、适合烂在心里 提交于 2020-01-25 04:54:05

问题


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?

thanks Gordon


回答1:


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;


来源:https://stackoverflow.com/questions/4285996/perl-convert-html-table-into-picture-image

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!