Perl: convert html table into picture image

2019-08-15 18:40发布

问题:

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;


标签: html perl cgi