ForgotPasswordAgain has asked for the wisdom of the Perl Monks concerning the following question:
It happens that users can embed PDFs and images into cells in Excel. As far as I can tell, there's no support for that in Spreadsheet::ParseExcel. True? I'm on a linux system, so no chance of using OLE. Anyone know another way to extract those media files from the cells? This is the relevant part of what I have (basically from the SYNOPSIS):
my $formatter = Spreadsheet::ParseExcel::FmtUnicode->new(); my $workbook = Spreadsheet::ParseExcel::Workbook->Parse($file, $format +ter); foreach my $worksheet ($workbook->worksheets) { my ($row_min, $row_max) = $worksheet->row_range; my ($col_min, $col_max) = $worksheet->col_range; foreach my $row ($row_min .. $row_max) { foreach my $col ($col_min .. $col_max) { my $cell = $worksheet->get_cell($row, $col); next unless $cell; # this is what I imagine doing: if ($cell->{Type} eq 'pdf') { # get the PDF somehow .... } } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spreadsheet::ParseExcel with embedded PDF cells
by Corion (Patriarch) on Jan 09, 2009 at 13:38 UTC | |
|
Re: Spreadsheet::ParseExcel with embedded PDF cells
by jmcnamara (Monsignor) on Jan 09, 2009 at 16:27 UTC | |
by ForgotPasswordAgain (Vicar) on Jan 21, 2009 at 17:20 UTC | |
by jmcnamara (Monsignor) on Jan 22, 2009 at 01:29 UTC | |
by ForgotPasswordAgain (Vicar) on Jan 11, 2009 at 17:04 UTC |