Questions about GroupDocs.Metadata


#1

I like to know is there any option in your metadata API to do the followings ?

Add a key/value to all document types (doc,docx,ppt,pptx,xls,xlsx,jpeg/gif/png/pdf etc)?
The added metadata should not be editable/removable at any cost by user. (important)
Is there a way it can be hidden completely ? (if not also fine)
When i tried we are unable to save the metadata to evaluate. Please confirm. If possible share some code snippet too.


This Topic is created by usman.aziz using the Email to Topic plugin.


WaterMarking
#2

@RR00371658

Thanks for using GroupDocs.Metadata API. It allows you to add custom metadata key/value in Word, PowerPoint, Excel, and PDF file formats. Following code snippet adds custom properties in a word document:

// For complete examples and data files, please go to https://github.com/groupdocsmetadata/GroupDocs_Metadata_NET

// initialize DocFormat
DocFormat docFormat = new DocFormat("C:\\Sample.docx");

// initialize DocMetadata
DocMetadata metadata = docFormat.DocumentProperties;

string propertyName = "New Custom Property";
string propertyValue = "123";

// add boolean key
if (!metadata.ContainsKey(propertyName))
{
    // add property
    metadata.Add(propertyName, propertyValue);
}

// save file in destination folder
docFormat.Save("D:\\Sample.docx");

Please note that the custom metadata key/value is editable and a user can edit it via using respective document tool. However, we shall investigate the possibility of adding the feature of adding noneditable metadata to our roadmap for upcoming releases.

For further information and code snippets please feel free to visit docs for GroupDocs.Metadata for .NET API.

Regards,


#3

@RR00371658

We investigated the possibility of adding the feature of non-editable metadata in GroupDocs.Metadata for .NET API, as mentioned earlier after adding metadata key/values a user will be able to copy, edit or remove a content of the “protected” document.

We can work on the idea of hiding metadata. A user may just miss hidden information if it is not displayed in a document editor and he/she uses the document as it is, not trying to delete something. We could use some steganography techniques to hide a piece of additional information in a document or image. We can’t guarantee that it will be non-editable metadata, but we can try to make it unnoticeable for most advanced users. Does described approach fit your requirements?

Thanks,