Feature #69496

Indexed Search: PDF Indexing outputs only PDF Filename

Added by Tizian Schmidlin almost 5 years ago. Updated over 1 year ago.

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

100%

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
}

Associated revisions

Revision 5d9cbae7 (diff)
Added by Xavier Perseguers over 4 years ago

[FEATURE] Extract title from PDF when indexing

Change-Id: I0b73a6c77502e1635f73734181b6af9f9757b6dc
Releases: master
Resolves: #69496
Reviewed-on: http://review.typo3.org/43200
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>
Reviewed-by: Wouter Wolters <>
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>

History

#1 Updated by Alexander Opitz almost 5 years ago

Hi Tizian,

can you bring a patch to Gerrit? See http://wiki.typo3.org/CWT for help.

#2 Updated by Gerrit Code Review over 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43200

#3 Updated by Gerrit Code Review over 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43200

#4 Updated by Xavier Perseguers over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#5 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF