Skip to main content
Participating Frequently
August 18, 2018
質問

How to add a comment to pdf that displays in Win 10 File Explore "comment" column

  • August 18, 2018
  • 返信数 1.
  • 4271 ビュー

I've enabled File Explorer to show the "comments" column for documents, and I know in word and excel files  to go to file, info to add a short comment which will display from File Explorer.

Where would i do it for pdf's created in Adobe DC 2018 and 2017

Is there another method of displays comments/notes about pdfs without opening the pdf?

このトピックへの返信は締め切られました。

返信数 1

Inspiring
August 19, 2018

Not surprising since Microsoft has already been found using special features within MS code for the OS and applications and not sharing that knowledge with other software developers. If you can fix this, I doubt it will last since the next update will undo your fix.

Len Raphael作成者
Participating Frequently
August 19, 2018

Using 3rd party tool, PDF Shell Tools:

"These are not standard PDF metadata properties so you have to setup the tools by adding these two properties as custom properties.
Check this reply in the forum, that explains how to add the comments one. Skip the info related to the XP alternate data streams metadata.
Regarding the "complete" property. What column (name) you make visible in the Windows Explorer to show this property for the .doc(x) and .xls(x) files?


  1. If yes, where would I input a comment? Would that be by opening the pdf and inputting it where?

 
After you have the tools configured with the two new properties, you edit them in the same places you edit any of the other properties. The InfoEdit and Details file properties tabs, the Windows Explorer details pane, the PDF-ShellTools preview handler tools metadata panel, etc."

 

Earlier post in the PDF Shell Tools Forum

"

Hello
As you may already know, these three metadata properties, shown in the PDF-ShellTools Info tip screenshot you attached, are not part of the PDFs metadata. These are from a metadata system, that uses a NTFS Alternate Data Stream to store the data itself, that MS introduced in Win2K. An ADS is like an additional file, usually hidden by the system, that is attached to the main file. Since Windows Vista there is no longer a Shell native way to edit these properties (the Summary file properties tab sheet no longer exists). This is also a bad method to add metadata to files that support storage of metadata in the file itself, such as the PDF. If you move these files to a media that don't use the NTFS, you will loose the metadata.
PDF-ShellTools don't provide means to manage these non-PDF native metadata properties, and Windows 7 don't use that file summary information system, so the best way to deal with this is to move that metadata to PDFs metadata properties. In your case you can move the Subject to the PDFs Subject standard metadata field, and the other to PDFs custom metadata fields.

You will need a script, such as the one I posted at this forum post, to easily do that. Let me know If you have doubts on how to adapt it to your case.

When done, the PDF-ShellTools property handler Shell extension will provide the means to show, edit and search these properties, using the powerful Windows 7 Property System, that since Windows Vista replaced that, now obsolete, file summary information system.

and lastly there is a freeware util https://coolsoft.altervista.org/en/pdfpropertyextension?destination=node/81%3Fpage%3D99999999

https://coolsoft.altervista.org/en/pdfpropertyextension?destination=node/81%3Fpage%3D99999999

that might help. I haven't figured out if it will under Windows 10. But seems easy to uninstall.

    

Bentzien

  • Newbie
  • *
  • Posts: 2

Re: Windows2000 System File

« Reply #2 on: December 20, 2011, 10:47:59 AM »

Hello,

i tried the javascript, but nothing happens.

So how could i stop the handler? I think this could be the problem.

And if the script works how can i make a match that the old meta subject is set to pdf subject, that old meta category is set to pdf keywords and old comments where could they mapped?

-carsten

    

RTT

  • Administrator
  • *****
  • Posts: 804

Re: Windows2000 System File

« Reply #3 on: December 21, 2011, 01:14:04 AM »

You have to run it from Win2K or XP. From Windows 7 don't work.
Here is another one, adapted to your case.
Code: [Select]

var WshShell = new ActiveXObject("WScript.Shell");

function setMetadata(params) {
  WshShell.Run('"%ProgramFiles%\\PDF-ShellTools\\PDFShellTools.exe" SetMetadata ' + params, 1, true);
}

var objShell = new ActiveXObject("shell.application");
var objFolder2;
objFolder2 = objShell.NameSpace(WshShell.currentdirectory);
if (objFolder2 != null) {
  var FolderItems;
  FolderItems = objFolder2.Items();
  if (FolderItems != null) {
    var FolderItem;
    var Subject;
    var Category;
    var Comments;
    for (var i = 0; i < FolderItems.count; i++) {
      FolderItem = FolderItems.item(i);
      if (FolderItem.name.split('.').pop().toLowerCase() == 'pdf') {
        Subject = objFolder2.GetDetailsOf(FolderItem, 11);
        Category = objFolder2.GetDetailsOf(FolderItem, 12);
        Comments = objFolder2.GetDetailsOf(FolderItem, 14);
        var cmd = "'Subject=" + Subject + "','Keywords=" + Category + "','Comments=" + Comments + "'";
        //WshShell.Popup(cmd, 0, FolderItem.path, 0x30);
        setMetadata("\"Metadata="+cmd+"\" \"" + FolderItem.path + '"');
      }
    }
  }
}

The comments field is being set to a custom PDF metadata field with the same name (take note that the PDF-ShellTools trial version can't set custom fields). To later show it in Windows 7 you will have to use the PDF-ShellTools manager, under the property handler settings, to create a custom field with the same name. You can also map it to the system comments field, so it show in the same comments column of files that have this field natively.

The column indexes (11 for Subject,12 for Category and 14 for Comments) are for XP. Win2K uses different indexes.
You can use the next script to easily find these columns indexes.

Code: [Select]

var WshShell = new ActiveXObject("WScript.Shell");
var objShell = new ActiveXObject("shell.application");
var objFolder2;
objFolder2 = objShell.NameSpace(WshShell.currentdirectory);
if (objFolder2 != null) {
  var msg = '';
  for (var i = 0; i < 50; i++) {
    msg += objFolder2.GetDetailsOf(objFolder2, i) + "[" + i + "]\n";
  }
  WshShell.Popup(msg, 0, "Message", 0x30);
}