Changeset 3614
- Timestamp:
- 2002-12-03T14:41:17+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/PDFPlug.pm
r3590 r3614 118 118 my $textref=$_[0]; 119 119 120 # This might be specific to the version of pdftohtml in <= gsdl-2.38121 my @sections = split('<a name= \d+>', $$textref);120 # we have "<a name=1></a>" etc for each page 121 my @sections = split('<a name=', $$textref); 122 122 123 123 shift @sections; # don't need HTML header, etc … … 141 141 # add metadata per section... 142 142 foreach my $section (@sections) { 143 $section =~ m@^<b>Page (\d+)</b>@; 143 $section =~ s@^(\d+)></a>@@; # leftover from split expression... 144 144 145 $title = $1; # Greenstone does magic if sections are titled digits 145 146 if (! defined($title) ) {
Note:
See TracChangeset
for help on using the changeset viewer.