Windows Explorer Column View not displaying Summary Information
Adobe PDF does not have summary information written as an OLE property set into a stream named "\005SummaryInformation" off the root storage. It uses another method that Microsoft stopped supporting in XP.
Using DSOFile I have added Summary Information to a PDF. This works...or at least I assmume so as after closing and opening the file the Summary Information is visible (Using a DSOFile viewer not Adobe)!
This is a simplified version of the code to save Summary Information to the PDF. Note this will not work on all documents for example Office 2007 docs. I use WindowsAPICodePack.dll for docs that this does not work on!
Dim oDocument As DSOFile.OleDocumentProperties = New DSOFile.OleDocumentProperties
oDocument.Open(FileName, False, DSOFile.dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess)
Dim oSummProps As DSOFile.SummaryProperties = oDocument.SummaryProperties
If (NewData <> oSummProps.Title) Then
oSummProps.Title = NewData
End If
oDocument.Save()
oDocument.Close()
My problem is the PDF Summary Information is not visible in Windows Explorer Columns. The info I wish to see is Syst开发者_开发技巧em.Keywords (Tags) and System.Title.
PDF files are not structured storage files so they cannot contain the \005SummaryInformation stream. I do not know how the code above works, but while it might insert a \005SummaryInformation stream in the PDF file, I'm pretty sure that it damages the PDF file.
精彩评论