The following example demonstrates how to save file in its original format with current date as a suffix:
final Redactor redactor = new Redactor("sample.docx"); try { // Here we can use document instance to perform redactions redactor.apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions("[personal]"))); SaveOptions saveOptions = new SaveOptions(); saveOptions.setAddSuffix(true); saveOptions.setRasterizeToPDF(false); saveOptions.setRedactedFileSuffix(new SimpleDateFormat("dd-MM-yyyy").format(new Date())); // Saving in original format with date as DateTime.getNow().toShortDateString()a suffix redactor.save(saveOptions); } finally { redactor.close(); }...Assembly Product Solution GroupDocs...
This article explains how to replace missing font when rendering documents with GroupDocs.Viewer within your Java applications....Assembly Product Solution GroupDocs...
This article explains how to add text watermark when rendering documents with GroupDocs.Viewer within your Java applications....Assembly Product Solution GroupDocs...
Gain expertise to merge DOCX files using C#. We will provide you sample code example to combine DOCX files in C# without the additional software installations....creating comprehensive reports, assembling chapters of a book, or consolidating...
Reading FLV header properties The GroupDocs.Metadata API supports extracting format-specific information from the FLV file header.
The following are the steps to read the header of an FLV file.
Load an FLV video Get the root metadata package Extract the native metadata package using the FlvRootPackage.getHeader method Read the FLV header properties advanced_usage.managing_metadata_for_specific_formats.video.flv.FlvReadHeaderProperties
try (Metadata metadata = new Metadata(Constants.InputFlv)) { FlvRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getHeader().getVersion()); System.out.println(root.getHeader().hasAudioTags()); System.out.println(root.getHeader().hasVideoTags()); System.out.println(root.getHeader().getTypeFlags()); } Working with XMP metadata GroupDocs....Assembly Product Solution GroupDocs...
Not all metadata properties extracted from a file are marked with tags. Some file formats and metadata standards allow adding fully custom properties that can’t be properly tagged by the library since their purpose is not clearly defined in the appropriate format/standard specification. In such cases, you can use the name of the property to locate and remove it. The following example demonstrates some advanced usage scenarios of the GroupDocs.Metadata search engine allowing to remove metadata properties....Assembly Product Solution GroupDocs...
This code snippet demonstrates how to extract information about known properties that can be encountered in a particular package.
Load a file to examine Get a collection of PropertyDescriptor instances for any desired metadata package Iterate through the extracted descriptors advanced_usage.GettingKnownPropertyDescriptors
JavaScript const metadata = new groupdocs.metadata.Metadata("input.doc"); var root = metadata.getRootPackageGeneric(); var descriptors = root.getDocumentProperties().getKnowPropertyDescriptors(); for(var i=0;iAssembly Product Solution GroupDocs...