Hi,
I'd like to read out meta data from files. is there any pascal code supporting this task?
This is about reading the comment of zip files, the author and description of word processor files (open document format) and so on.
TIA,
Marc

Mailing lists / fpc-pascal / 2016-12
4 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
I'd like to read out meta data from files. is there any pascal code supporting this task?
This is about reading the comment of zip files, the author and description of word processor files (open document format) and so on.
TIA,
Marc
You may check out total commander plugin source code..
Although it may be in Delphi, you could convert to Laz/fpc
There are a lot of total commander plugins that deal with MP3 meta data and such... not sure about Open Document though..
Is meta data in files some standard, so that the meta data in an mp3 file is similar to a word process file? I have a hunch this is not going to help you.. as it's completely different....
Zip format is used for Open/Libre Office files, compiled Java classes and so on, and goes back a long way (mid 80s).
I'm sure that libraries exist for handling newer formats like MP3. However wrapping all possible container/dataset formats in a standard framework would be difficult, since there's going to be little commonality of what metadata is available for each.
You may check out total commander plugin source code.. Although it may be in Delphi, you…
OK, will loook at that.
No, no zip files there are XML files
having some fields carrying meta data. For photos there is EXIF or simple comments in JPEG, .PDF does use dublin core sometimes, and so on.
It would be a big pile of work to support only the most commen file types, that's why I hope to find some source. ;)
One framework I know is Apache Tika, doing type identification, meta data access and content access. Having it in pascal source would be a dream.
Thanks,
Marc