Accessing file metadata on windows XP

Roger Upole rupole at hotmail.com
Tue Nov 28 07:47:48 EST 2006


<wileyregister22 at gmail.com> wrote in message news:1164704134.100569.101270 at j72g2000cwa.googlegroups.com...
> When rightclicking a, for example, pdf file on windows, one normally
> gets a screen with three or four tags.  Clicking on one of the summary
> tag one can get some info like "title", "Author", "category", "keyword"
> etc..
>
> My question is how can I programmatically read and change these data
> with python.  I know I should use Hammond's win32  extension, somehow
> involving the pythoncom, storagecon of win32com etc..  Unfortunately,
> so far I cannot get anything useful.  Instead of trying blindly, would
> somebody please points me to the correct direction.  A little snippet
> would help.  I am particular interested in pdf files.
>

See \win32com\test\testStorage.py for an example of using
the storage interfaces to read and write document summary
info.

         Roger




----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----



More information about the Python-list mailing list