กลุ่มผลิตภัณฑ์ GroupDocs.Watermark Cloud

ข่าวดีสำหรับนักพัฒนาระบบคลาวด์! GroupDocs ได้เปิดตัว Watermark Cloud API สิ่งนี้ช่วยปรับปรุง GroupDocs โซลูชันลายน้ำ มีอยู่แล้วในชื่อ on-premises API สำหรับนักพัฒนา .NET และ Java และเป็น แอปออนไลน์ข้ามแพลตฟอร์ม สำหรับผู้ใช้ทุกประเภท Watermark Cloud API พร้อมกับ SDK ช่วยให้นักพัฒนารักษาความปลอดภัยเอกสารสำคัญด้วยลายน้ำ ซึ่งยากต่อการลบโดยอัตโนมัติด้วยเครื่องมือของบุคคลที่สาม

GroupDocs.Watermark Cloud เป็น REST API ที่ให้คุณสมบัติหลักทั้งหมดเพื่อรักษาความปลอดภัยเอกสารและจัดการลายน้ำ คุณสมบัติที่สำคัญบางประการ ได้แก่ เพิ่มลายน้ำรูปภาพหรือข้อความ ลบลายน้ำที่เพิ่มแล้ว แทนที่หรือค้นหาลายน้ำในรูปแบบที่รองรับทั้งหมด

ประเภทเอกสารที่รองรับ

นี่คือรูปแบบเอกสารที่รองรับในปัจจุบัน คุณสามารถไปที่ documentation สำหรับ GroupDocs.Watermark Cloud ได้ทุกเมื่อเพื่อรับแนวคิดที่สมบูรณ์เกี่ยวกับคุณลักษณะเฉพาะ ซึ่งมีให้สำหรับรูปแบบเอกสารที่รองรับ

SDK และตัวอย่าง

นอกเหนือจาก REST API แบบลายน้ำแล้ว GroupDocs ยังมี SDK แบบโอเพ่นซอร์สที่สามารถปรับแต่งได้เองตามข้อกำหนด นักพัฒนาสามารถใช้ SDK ที่เกี่ยวข้องเพื่อเร่งการพัฒนา โดยไม่ต้องกังวลเกี่ยวกับรายละเอียดระดับต่ำของการร้องขอและการจัดการการตอบสนอง ขณะนี้ เราได้เปิดตัว SDK ที่กล่าวถึงด้านล่างพร้อมกับตัวอย่าง SDK และตัวอย่างเหล่านี้ พร้อมใช้งานบน GitHub ด้วย):

นี่คือตัวอย่างบางส่วนเพื่อให้ได้แนวคิดที่ดีขึ้น สำหรับตัวอย่างเพิ่มเติม คุณสามารถไปที่หน้า [documentation][10] หรือไปที่ [GitHub repository][11] ที่เกี่ยวข้อง

เพิ่มลายน้ำรูปภาพในเอกสาร Word ใน Java

ที่นี่ คุณสามารถดูตัวอย่างโค้ด Java เพื่อเพิ่มลายน้ำให้กับเอกสาร Word โดยใช้ [GroupDocs.Watermark Cloud SDK for Java][12]

// สำหรับตัวอย่างและไฟล์ข้อมูลทั้งหมด โปรดไปที่ https://github.com/groupdocs-watermark-cloud/groupdocs-watermark-cloud-java-samples
String MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
String MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
   
Configuration configuration = new Configuration(MyAppSid, MyAppKey);
WatermarkApi apiInstance = new WatermarkApi(configuration);
 
WatermarkOptions options = new WatermarkOptions();
FileInfo fileInfo = new FileInfo();
fileInfo.setFilePath("documents/sample.docx");
options.setFileInfo(fileInfo);
 
WatermarkDetails watermarkDetails = new WatermarkDetails();
 
ImageWatermarkOptions imageWatermarkOptions = new ImageWatermarkOptions();
FileInfo image = new FileInfo();
image.setFilePath("watermark_images/sample_watermark.png");
imageWatermarkOptions.setImage(image);
watermarkDetails.setImageWatermarkOptions(imageWatermarkOptions);
 
List<WatermarkDetails> watermarkDetailsList = new ArrayList<WatermarkDetails>();
watermarkDetailsList.add(watermarkDetails);
options.setWatermarkDetails(watermarkDetailsList);
 
AddRequest request = new AddRequest(options);
WatermarkResult response = apiInstance.add(request);

ลบลายน้ำออกจากเอกสาร PDF ใน C#

ด้านล่างนี้คือข้อมูลโค้ดที่แสดงวิธีที่คุณสามารถลบลายน้ำออกจากเอกสาร PDF ใน CSharp ได้อย่างรวดเร็วโดยใช้ [GroupDocs.Watermark Cloud SDK for .NET][13]

// For complete examples and data files, please go to https://github.com/groupdocs-watermark-cloud/groupdocs-watermark-cloud-dotnet-samples
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
   
var configuration = new Configuration(MyAppSid, MyAppKey);
var apiInstance = new InfoApi(configuration);
var fileInfo = new FileInfo
{
    FilePath = "with_watermarks/sample.pdf",
};
var options = new RemoveOptions
{
    FileInfo = fileInfo,
    ImageSearchCriteria = new ImageSearchCriteria
    {
        ImageFileInfo = new FileInfo { FilePath = "watermark_images/sample_watermark.png" }
    },
    TextSearchCriteria = new TextSearchCriteria
    {
        SearchText = "Watermark text"
    },
    OutputFolder = "removed_watermarks"
};
var request = new RemoveRequest(options);
var response = apiInstance.Remove(request);

แทนที่ลายน้ำในเอกสาร PDF โดยใช้ Java

นี่คือตัวอย่าง Java เพื่อแสดงวิธีที่คุณสามารถแทนที่คุณสมบัติลายน้ำที่ระบุ ตัวเลือกภาพลายน้ำ ข้อความ หรือลักษณะของข้อความ เช่น แบบอักษร ขนาด สี ฯลฯ สามารถแทนที่ได้อย่างง่ายดาย

// สำหรับตัวอย่างและไฟล์ข้อมูลทั้งหมด โปรดไปที่ https://github.com/groupdocs-watermark-cloud/groupdocs-watermark-cloud-java-samples
String MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
String MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
     
Configuration configuration = new Configuration(MyAppSid, MyAppKey);
WatermarkApi apiInstance = new WatermarkApi(configuration);
 
FileInfo fileInfo = new FileInfo();
fileInfo.setFilePath("with_watermarks/sample.pdf");
ReplaceOptions options = new ReplaceOptions();
options.setFileInfo(fileInfo);
 
ImageSearchCriteria imageSearchCriteria = new ImageSearchCriteria();
FileInfo imageFileInfo = new FileInfo();
imageFileInfo.setFilePath("watermark_images/sample_watermark.png");
imageSearchCriteria.setImageFileInfo(imageFileInfo);
options.setImageSearchCriteria(imageSearchCriteria);
 
TextSearchCriteria textSearchCriteria = new TextSearchCriteria();
textSearchCriteria.setSearchText("Watermark text");
options.setTextSearchCriteria(textSearchCriteria);
 
ReplaceTextOptions replaceTextOptions = new ReplaceTextOptions();
replaceTextOptions.setText("New watermark text");
options.setReplaceTextOptions(replaceTextOptions);
 
ReplaceImageOptions replaceImageOptions = new ReplaceImageOptions();
FileInfo replaceImageFileInfo = new FileInfo();
replaceImageFileInfo.setFilePath("images/sample.jpg");
replaceImageOptions.setImage(replaceImageFileInfo);
options.setReplaceImageOptions(replaceImageOptions);
 
options.setOutputFolder("found_image_watermarks");
 
ReplaceRequest request = new ReplaceRequest(options);
ReplaceResult response = apiInstance.replace(request);

ค้นหาลายน้ำในเอกสารโดยใช้ C#

REST API จัดเตรียมเกณฑ์การค้นหาที่หลากหลายเพื่อค้นหาลายน้ำรูปภาพและข้อความที่เป็นไปได้ในเอกสารเป้าหมาย

// For complete examples and data files, please go to https://github.com/groupdocs-parser-cloud/groupdocs-parser-cloud-dotnet-samples
string MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
string MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
   
var configuration = new Configuration(MyAppSid, MyAppKey);
var apiInstance = new InfoApi(configuration);
var fileInfo = new FileInfo
{
    FilePath = "with_watermarks/sample.pdf"
};
var options = new SearchOptions
{
    FileInfo = fileInfo,
    ImageSearchCriteria = new ImageSearchCriteria
    {
        ImageFileInfo = new FileInfo { FilePath = "watermark_images/sample_watermark.png" }
    },
    TextSearchCriteria = new TextSearchCriteria
    {
        SearchText = "Watermark text"
    },
    SaveFoundImages = true,
    OutputFolder = "found_image_watermarks"
};
var request = new SearchRequest(options);
var response = apiInstance.Search(request);

ทรัพยากร

ต่อไปนี้เป็นลิงก์ที่สำคัญบางส่วนไปยังแหล่งข้อมูลที่เกี่ยวข้อง อย่างไรก็ตาม หากคุณรู้สึกยุ่งยากหรือสับสน คุณสามารถติดต่อเราได้อย่างอิสระที่ [ฟอรัม][14]

ดีใจที่ได้พบคุณที่นี่สำหรับ [ลายน้ำ][15]

[5]: https://wiki.fileformat.com/image/jpeg/" target="_blank" rel=“noreferrer noopener” aria-label=" (opens in a new tab [6]: https://wiki.fileformat.com/view/pdf/" target="_blank" rel=“noreferrer noopener” aria-label=“PDF (opens in a new tab [7]: https://github.com/groupdocs-watermark-cloud/groupdocs-watermark-cloud-dotnet-samples" target="_blank” rel=“noreferrer noopener” aria-label=".NET Examples (opens in a new tab [8]: https://github.com/groupdocs-watermark-cloud/groupdocs-watermark-cloud-java" target="_blank" rel=“noreferrer noopener” aria-label=“Java SDK (opens in a new tab [9]: https://github.com/groupdocs-watermark-cloud/groupdocs-watermark-cloud-java-samples" target="_blank” rel=“noreferrer noopener” aria-label=“Java Examples (opens in a new tab [10]: https://docs.groupdocs.cloud/watermark [11]: https://github.com/groupdocs-watermark-cloud [12]: https://products.groupdocs.cloud/watermark/java [13]: https://products.groupdocs.cloud/watermark/net [14]: https://forum.groupdocs.cloud/c/watermark [15]: https://en.wikipedia.org/wiki/Watermark