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. 2 2208
wrote in news:11**********************@j72g2000cwa.googlegr oups.com in
comp.lang.python:
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.
This looks like it might be useful:
<url: http://msdn.microsoft.com/library/de...l=/library/en-
us/shellcc/platform/shell/reference/objects/shellfolderitem/shellfolderit
em.asp>
Thats:
MSDN Home MSDN Library Win32 and COM Development User Interface
Windows Shell Windows Shell Shell Objects for Scripting and
Microsoft Visual Basic ShellFolderItem >
Rob.
-- http://www.victim-prime.dsl.pipex.com/
<wi*************@gmail.comwrote in message news:11**********************@j72g2000cwa.googlegr oups.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 =---- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Denrael |
last post by:
I am looking for a way in Python to update Windows File Summary
Metadata. By that I mean the data (Title, Subject, Keywords, Comments)
found when you right click a windows file, select properties...
|
by: Jonathan Gibbs |
last post by:
I'm very new to xml, and struggling a bit..
I want to use an .xsd file passed to a windows application to define a
dataset's schema, and also (if possible) pass other metadata associated with...
|
by: Tomas Vera |
last post by:
Hello All (This is being cross-posted to the C++ group),
I've started receiving the subject message during a compile of a C++
based interface module used in my C# based WebApp. This module...
|
by: Miku |
last post by:
Hi Guies,
I am new to vb.net.
In my project I am using vb.net & MySql 4.0.17 as a backend. For
database connectivity i have downloaded ByteFX - Mysql .net native
provider.
I have written the...
|
by: EP |
last post by:
I'm looking for a method by which to access Windows files metadata and
have not been able to find anything in the standard modules or via
Google - what is the standard approach?
Shamefully I...
|
by: jreljac |
last post by:
Howdy,
Is it possible (and if it is how?) to have php display the details of a
word/excel/pdf document's properties/metadata?
I can go into MS Word...File...Properties and assign things like...
|
by: forest demon |
last post by:
for example, let's say I do something like,
System.Diagnostics.Process.Start("notepad.exe","sample.txt");
if the user does a SaveAs (in notepad), how can i capture the path that
the user...
|
by: JDeats |
last post by:
I have a binary file (zip file) that's being created by my app and I
would like to store a comma delimited list of items contained in that
file (e.g. the .zip file contains 5 large TIFF images and...
|
by: Kalibr |
last post by:
I've been trying to figure out how to find the details of files
(specifically music for now) for a little sorting script I'm making,
My aim is to get details on the artist, album, and genre for mp3...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |