
Document::Directory - Manage an archival Document directory.

use Document::Directory; $obj = Document::Directory->open($path,$date,$title); $obj = $obj->add ($pageid,$tiles); $str = $obj->pagename ($pageid); $str = $obj->pagepath ($pageid); $fs = $obj->filespec; $obj = $obj->info;

UNIVERSAL

Manage a Document directory. A document directory contains images of document pages along with a table of contents file (.toc) and a log of what has been done to the document and pages in it. A Document is not a transient object that will be edited or updated. It is an artifact that once created should not be modified.
There are of course some cases in which such changes might be needed. If a page scan is badly done there might be a good reason to replace it. In such cases the old page scan will be saved along with the new one.
While content should not be changed, the .toc file and the file naming can be modified, but the fact of such changes will be logged.

None.

None.

filespec A filespec object containing the document name and location logfile A document log file object. tocfile A document table of contents file object toc In memory copy of the table of contents.

Create and initialize instances of Document::Directory for a document that is located at $path and has a name of "$date-$title".

If a the file associated with $pageid exists, add the page id and titles to the .toc file and log the date and time at which this was done.
Returns undef if any of these actions failed.
Return the complete page name for $pageid. The name does not include a file extension.
Return the absolute path name which should be used to access $pageid. The file extension is assumed to be .jpeg.
Return the filespec object which contains the document name and location.
Print information about the document:
[Document] Document Location: /Archive/Publications/NuclearHobbiest/ Document Name: 20080827-NuclearHobbiest Date: 20080827 Title: NuclearHobbiest

None.

None.

See TODO.

None.

Document::Toc, Document::TocFile, Document::LogFile

Dale Amon <amon@vnl.com>