From dev-return-18574-apmail-tika-dev-archive=tika.apache.org@tika.apache.org Wed Oct 14 11:49:12 2015 Return-Path: X-Original-To: apmail-tika-dev-archive@www.apache.org Delivered-To: apmail-tika-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D348018CE0 for ; Wed, 14 Oct 2015 11:49:12 +0000 (UTC) Received: (qmail 34185 invoked by uid 500); 14 Oct 2015 11:49:06 -0000 Delivered-To: apmail-tika-dev-archive@tika.apache.org Received: (qmail 34147 invoked by uid 500); 14 Oct 2015 11:49:06 -0000 Mailing-List: contact dev-help@tika.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tika.apache.org Delivered-To: mailing list dev@tika.apache.org Received: (qmail 34130 invoked by uid 99); 14 Oct 2015 11:49:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2015 11:49:06 +0000 Date: Wed, 14 Oct 2015 11:49:06 +0000 (UTC) From: "Aeham Abushwashi (JIRA)" To: dev@tika.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (TIKA-1768) Document headers and footers in metadata MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TIKA-1768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aeham Abushwashi updated TIKA-1768: ----------------------------------- Attachment: (was: HeaderAndFooterTestFiles.zip) > Document headers and footers in metadata > ---------------------------------------- > > Key: TIKA-1768 > URL: https://issues.apache.org/jira/browse/TIKA-1768 > Project: Tika > Issue Type: Improvement > Reporter: Aeham Abushwashi > Priority: Critical > Attachments: HeaderAndFooterTestFiles.zip, headers_footers.patch > > > I have a use case where I need document headers and footers to be explicitly marked as such in Tika's output metadata fields. As far as I can see, there's no easy built-in way for doing this. > The attached patch adds a HeaderFooterContentHandler which enables addition of headers and footers into their own metadata fields. This works out of the box with Word file formats. > Also included in the patch are some tweaks to enable Excel and Powerpoint parsers/extractors to explicitly mark headers and footers as such in the output XHTML and > enable the aforementioned content handler to spot them. Unit tests have been added, and existing ones modified, to verify that the parsers and the content handler work together correctly. -- This message was sent by Atlassian JIRA (v6.3.4#6332)