This example demonstrates how to load a password-protected document.
advanced_usage.loading_files.LoadPasswordProtectedDocument
JavaScript try { var loadOptions = new LoadOptions(); loadOptions.setPassword("123"); const metadata = new Groupdocs.metadata.Metadata("protected.docx", loadOptions); } More resources Advanced usage topics To learn more about library features and get familiar how to manage metadata and more, please refer to theadvanced usage section.
GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:...Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...Documentation / GroupDocs.Metadata Product Family / GroupDocs.Metadata for...
Working with metadata in ASF files Reading ASF format-specific properties The Groupdocs.metadata API supports extracting format-specific information from ASF files.
The following are the steps to read native ASF metadata.
Load an ASF video Get the root metadata package Extract the native metadata package using AsfRootPackage.AsfPackage Read the ASF metadata properties AdvancedUsage.ManagingMetadataForSpecificFormats.Video.Asf.AsfReadNativeMetadataProperties
using (Metadata metadata = new Metadata(Constants.InputAsf)) { var root = metadata.GetRootPackage(); var package = root.AsfPackage; // Display basic properties Console....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...Documentation / GroupDocs.Metadata Product Family / GroupDocs.Metadata for...
Groupdocs.metadata allows users to get meta information of a document....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...Documentation / GroupDocs.Metadata Product Family / GroupDocs.Metadata for...
For all supported image formats the Groupdocs.metadata API allows extracting common image properties such as width and height, MIME type, byte order, etc. Please see the code snippet below for more information on the feature.
Load an image Extract the root metadata package Use the FileType property to obtain file format information AdvancedUsage.ManagingMetadataForSpecificFormats.Image.ImageReadFileFormatProperties
using (Metadata metadata = new Metadata(Constants.InputPng)) { var root = metadata.GetRootPackage(); Console.WriteLine(root.FileType.FileFormat); Console.WriteLine(root.FileType.ByteOrder); Console.WriteLine(root.FileType.MimeType); Console.WriteLine(root.FileType.Extension); Console.WriteLine(root.FileType.Width); Console.WriteLine(root.FileType.Height); } More resources GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:...Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...Documentation / GroupDocs.Metadata Product Family / GroupDocs.Metadata for...
This example demonstrates how to load a password-protected document.
advanced_usage.loading_files.LoadPasswordProtectedDocument
// Specify the password LoadOptions loadOptions = new LoadOptions(); loadOptions.setPassword("123"); // Constants.ProtectedDocx is an absolute or relative path to your document. Ex: @"C:\Docs\source.docx" try (Metadata metadata = new Metadata(Constants.ProtectedDocx, loadOptions)) { // Extract, edit or remove metadata here } More resources GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:...Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...Documentation / GroupDocs.Metadata Product Family / GroupDocs.Metadata for...
OpenType is a format for scalable computer fonts. It was built on its predecessor TrueType, retaining TrueType’s basic structure and adding many intricate data structures for prescribing typographic behavior.
Note Please find more information on the OpenType format here: https://en.wikipedia.org/wiki/OpenType. Reading OpenType metadata The Groupdocs.metadata API supports extracting format-specific information from OpenType font files.
The following are the steps to read the header of an OpenType file.
Load an OpenType font file Get the root metadata package Extract the native metadata package using the OpenTypeRootPackage....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...Documentation / GroupDocs.Metadata Product Family / GroupDocs.Metadata for...
Learn about managing metadata for Video formats....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...Documentation / GroupDocs.Metadata Product Family / GroupDocs.Metadata for...
Reading matroska format-specific properties The Groupdocs.metadata API supports extracting format-specific information from MKV files.
The following are the steps to read native MKV metadata.
Load an MKV video Get the root metadata package Extract the native metadata package using MatroskaRootPackage.MatroskaPackage Read the Matroska metadata properties on different levels of the format structure AdvancedUsage.ManagingMetadataForSpecificFormats.Video.Matroska.MatroskaReadNativeMetadataProperties
using (Metadata metadata = new Metadata(Constants.InputMkv)) { var root = metadata.GetRootPackage(); // Read the EBML header Console....Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs...Documentation / GroupDocs.Metadata Product Family / GroupDocs.Metadata for...