This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require the GroupDocs.Watermark module | |
const groupdocsWatermark = require('@groupdocs/groupdocs.watermark') | |
// Initialize the Watermarker class | |
const watermarker = new groupdocsWatermark.Watermarker(inDocumentPath); | |
// Create an Image Watermark | |
const imageWatermark = new groupdocsWatermark.ImageWatermark(imageFilePath); | |
// Set Watermark Alignment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require the GroupDocs.Watermark module | |
const groupdocsWatermark = require('@groupdocs/groupdocs.watermark') | |
// Initialize the Watermarker class | |
const watermarker = new groupdocsWatermark.Watermarker(inDocumentPath); | |
// Create a Text Watermark | |
const watermark = new groupdocsWatermark.TextWatermark('top secret', new groupdocsWatermark.Font('Arial', 36)); | |
// Set Watermark Properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require the GroupDocs.Watermark module | |
const groupdocsWatermark = require('@groupdocs/groupdocs.watermark') | |
// Initialize the watermarker object | |
const watermarker = new groupdocsWatermark.Watermarker('Example.docx'); | |
// Create the font object which will be used for the watermark text | |
const font = new groupdocsWatermark.Font('Arial', 36, groupdocsWatermark.FontStyle.Bold); | |
// Instantiate the watermark class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (Comparer comparer = new Comparer(inFile1)) | |
{ | |
comparer.Add(inFile2); | |
comparer.Compare(); | |
ChangeInfo[] changes = comparer.GetChanges(); | |
foreach (var change in changes) | |
{ | |
if ( change.SourceText != null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const comparer = new groupdocs.comparison.Comparer("source.json") | |
comparer.add("destin.json"); | |
comparer.compare("output.json"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try(Comparer comparer = new Comparer("source.json")) | |
{ | |
comparer.add("destin.json"); | |
comparer.compare(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var comparer = new Comparer(“source.json”)) | |
{ | |
comparer.Add(“destin.json”); | |
comparer.Compare(“output.json”); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Java code to sign Word files with digital signature certificate using Java | |
Signature signature = new Signature("path/document.docx"); | |
DigitalSignOptions options = new DigitalSignOptions("certificate.pfx"); | |
options.setImageFilePath("image.jpg"); | |
options.setLeft(100); | |
options.setTop(100); | |
options.setPageNumber(1); | |
options.setPassword("1234567890"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Java code to sign PDF with digital signature certificate using Java | |
Signature signature = new Signature("path/document.pdf"); | |
DigitalSignOptions options = new DigitalSignOptions("certificate.pfx"); | |
options.setImageFilePath("image.jpg"); | |
options.setLeft(100); | |
options.setTop(100); | |
options.setPageNumber(1); | |
options.setPassword("1234567890"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fuzzy Search multiple files across multiple folders using Java | |
// Creating an index folder and add document's folder to it | |
Index index = new Index("path/indexing-folder-path"); | |
index.add("path/parent-folder"); | |
SearchOptions options = new SearchOptions(); | |
options.getFuzzySearch().setEnabled(true); // Enabling the fuzzy search | |
options.getFuzzySearch().setFuzzyAlgorithm(new SimilarityLevel(0.75)); |
NewerOlder