[FEATURE] Extract title from PDF when indexing 00/43200/3
authorXavier Perseguers <xavier@typo3.org>
Fri, 11 Sep 2015 13:32:43 +0000 (15:32 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 14 Sep 2015 20:07:34 +0000 (22:07 +0200)
Change-Id: I0b73a6c77502e1635f73734181b6af9f9757b6dc
Releases: master
Resolves: #69496
Reviewed-on: http://review.typo3.org/43200
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Documentation/Changelog/master/Feature-69496-ExtractTitleFromPDFWhenIndexing.rst [new file with mode: 0644]
typo3/sysext/indexed_search/Classes/FileContentParser.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-69496-ExtractTitleFromPDFWhenIndexing.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-69496-ExtractTitleFromPDFWhenIndexing.rst
new file mode 100644 (file)
index 0000000..d585965
--- /dev/null
@@ -0,0 +1,15 @@
+======================================================
+Feature: #69496 - Extract title from PDF when indexing
+======================================================
+
+Description
+===========
+
+Indexed search is now able to natively extract the title when indexing PDF documents.
+
+
+Impact
+======
+
+The title of indexed PDF documents is now extracted.
+
index daa8317..5068ea1 100644 (file)
@@ -486,6 +486,9 @@ class FileContentParser {
                                                        $contentArr = $this->pObj->splitRegularContent($this->removeEndJunk($content));
                                                }
                                        }
+                                       if (!empty($pdfInfo['title'])) {
+                                               $contentArr['title'] = $pdfInfo['title'];
+                                       }
                                        $this->setLocaleForServerFileSystem(TRUE);
                                }
                                break;