Hey David,
You are right, as far as the .Wpd that I attached. I mistakenly saved it as a later version. I intended to save it as a version 5.0 WP Document. L Attached is the correct version 5.0 ( Testing_50.wp ) and the tiny utility that I made that gets the metadata. (I didn't use libWPD for this tiny utility). If you have a Win32 system, take it for a spin. Usage: GetWPMetadata.exe <filepath> It doesn't have Structured Storage support yet (compound files), but works with version 6+ WP Documents also. If you run the utility on the Testing_50.wp you will see that there is no date, But if run on a WP 5.1 or higher Document, Creation date is present. So the question is really, do WP 5.0 Documents have a Creation date? Thanks, Ismail. ________________________________ From: David Hislop [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 1:35 AM To: Ismail Ibric; libwpd-devel@lists.sourceforge.net Subject: RE: [Libwpd-devel] WPD 5 file structure At 12:18 am 10/05/2007, Ismail Ibric wrote: Thanks David, I assumed that WordPerfect, like MS Office, saves the Revision date in the actual document somewhere. So it seems that not all the Document Summary fields that WordPerfect allows you to Add/Remove are actually part of the the Metadada. :-) I think that they are all there in the metadata, or can be (see below). It even stores a Revision Date field that is always blank, as it uses the OS modification date/time as I said in the earlier email. Im still wondering why WordPerfect doesn't store anything (anymore) in the 1st part of the DocSumm packet, where the CreationDate use to be (26 bytes + null). If I had to guess, I would say that when v5.0 of the format was being considered it might have been intended for the CreationDate, but the formated version maybe? "Tuesday Oct. 15, 1956 1:36 PM". Not sure though. Is it safe to say that version 5.0 does not have (or no longer has) CreationDate saved as part of the Metadata? I ask this 'cause WordPerfect 10 does not use the 1st 26 bytes for the date when saving the Metadata. Maybe earlier versions did...?!? I don't really understand this. I ran both the documents you supplied through my hacked wpd2info: [EMAIL PROTECTED] text]$ ./wpd2text --info /tmp/How\ to\ Read\ Creation\ Date.wpd Unknown metadata type = 2 Unknown metadata type = 39 Unknown metadata type = 48 Me Also creation-date Mon May 1 13:02:35 2007 dc:creator Me dc:subject How to Read Creation Date, Revision Date. libwpd:abstract libwpd:descriptive-name Read Creation Date, Revision Date. libwpd:descriptive-type libwpd:keywords [EMAIL PROTECTED] text]$ ./wpd2text --info /tmp/wp50.wpd Unknown metadata type = 2 Unknown metadata type = 39 Unknown metadata type = 48 Me Also creation-date Mon May 1 13:02:35 2007 dc:creator Me dc:subject How to Read Creation Date, Revision Date. libwpd:abstract libwpd:descriptive-name Read Creation Date, Revision Date. libwpd:descriptive-type libwpd:keywords The first three tags are Tag 2: Account Tag 39: Revision Date (always blank) Tag 48: Typist libwpd seems to recognise everything OK. regards - David Thanks for all the help guys. Ismail.
Testing_50.wp
Description: Testing_50.wp
GetWPMetadata.ziped
Description: GetWPMetadata.ziped
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Libwpd-devel mailing list Libwpd-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libwpd-devel