Project

General

Profile

Actions

Feature #69496

closed

Indexed Search: PDF Indexing outputs only PDF Filename

Added by Tizian Schmidlin about 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
Start date:
2015-09-03
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

There used to be a feature in indexed search where while indexing the document title would be added to a pdf if there was any, this feature now seems to have vanished completely.

The feature can be implemented in 3 lines so I think it would be a shame to not use it (also since it is used in other file types this completely makes sense):

File: indexed_search/Class/FileContentParser.php:477ff

...
if(strlen($pdfInfo['title'])) {
$contentArr['title'] = $pdfInfo['title'];
} else { // I consider this part rather optional, so maybe you can leave this out
$contentArr['title'] = explode(chr(10), $contentArr['body'])[0]; // get the first line as document title
}

Actions

Also available in: Atom PDF