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
// Convert WebP to JPG in Java using GroupDocs.Conversion API | |
Converter converter = new Converter("filePath/WebPImage.webp"); | |
ImageConvertOptions options = new ImageConvertOptions(); | |
options.setFormat(ImageFileType.Jpg); | |
converter.convert("path/WebPToJPG.jpg", options); |
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
// Specify an absolute or relative path to your document. Ex: "C:\\Docs\\photo.png" | |
Watermarker watermarker = new Watermarker("photo.png"); | |
// Use path to the image as constructor parameter | |
ImageWatermark watermark = new ImageWatermark("watermark.jpg"); | |
// Add watermark to the document | |
watermarker.add(watermark); | |
watermarker.save("destin.png"); | |
watermark.close(); | |
watermarker.close(); |
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 watermarker = new Watermarker(“source.pdf”)) | |
{ | |
// Create the image watermark object | |
var watermark = new ImageWatermark(“lock-key.png”); | |
// Configure tile options | |
watermark.TileOptions = new TileOptions() | |
{ | |
LineSpacing = new MeasureValue() | |
{ |
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”); | |
} |
NewerOlder