[fpc-pascal] file identification and metadata retrieval
Marc Santhoff
M.Santhoff at web.de
Mon Dec 22 14:20:00 CET 2014
Hi,
currently I'm searching for a library for use with fpc to handle
arbitrary files. My goal is to check if file extension corresponds with
content (e.g. a .gif named .png) and to extract metadata like author,
topic, creation date and the like.
What I have found is:
- Apache Tika - https://tika.apache.org
Very nice looking, handles a lot of file types and can give back
content, too. Sadly written in Java.
- Gnomes Tracker - https://wiki.gnome.org/Projects/Tracker
Does handle mime types and is embedded in freeedesktop, looking good at
first. On a second check it misses some file types, mostly CAD (no dwg,
dxf).
- file(1) and libmagic
Unix standard tools, able to identify files, not able to extract
metadata.
Next will be KDE ...
My qestion:
Is there anything already ported or bound to Pascal, which is ready for
use out of the box?
Since this is no commercial adventure it should not be more expensive
than - let's say 50€ or so.
TIA,
Marc
--
Marc Santhoff <M.Santhoff at web.de>
More information about the fpc-pascal
mailing list