Skip to content

Commit

Permalink
Optimized "Extractor > Various > Add Image Above Placeholder" demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSlabon committed Nov 13, 2023
1 parent 91670df commit d62e9d3
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@
foreach ($matches AS list($pageNo, $results)) {
/** @var \SetaPDF_Extractor_Result_Words $segments */
foreach ($results as $segments) {
$name = '';
foreach ($segments AS $segment) {
$name .= $segment->getString();
}

$name = trim($name, '{}');

$name = trim($segments->getString(), "{} \n");
if (!isset($images[$name])) {
continue;
}
Expand Down

0 comments on commit d62e9d3

Please sign in to comment.