bhle/bhle — Issue #376: pdf pagination / naming
Author: wkollernhm
Created: 2012-03-09 12:18:33+00:00
State: open
Labels: bug, Critical_P1, feature, Pre-Ingest and OLEF

check pdf file for page labels and use this for pagination information in the output TIF image file naming

pdftk - man pages -
http://www.pdflabs.com/docs/pdftk-man-page/

.....
dump_data
Reads a single, input PDF file and reports various statistics, metadata, bookmarks (a/k/a outlines), and page labels to the given output filename or (if no output is given) to stdout. Non-ASCII characters are encoded as XML numerical entities. Does not create a new PDF.
.....

file ABCDEF.pdf
-- page 14
-- label 10

use 14 for sequence number and 10 for page
result should be

ABCDEF_00014_PAGE_00014.TIF

if pdf does not contain page label data just use the sequence of pages for Sequence and label them as PAGE

filename output pattern should always follow the file naming conventions as defined by the FSG.
(this is a mix between bug & feature, since the current situation is faulty but the label reading from the PDF is a new feature)

@lobajuluwa
@chris-sleep
@heimor