csharp GroupDocs.Viewer.2.2.0.ApplyWatermark.cs

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp GroupDocs.Viewer.2.2.0.ApplyWatermark.cs相关的知识,希望对你有一定的参考价值。

                     
                     // Instantiate the main output handling object
                     ClientHelper helper= Groupdocs.Web.UI.Viewer.ClientCode();
           
                        //Set an element in the HTML Code by writing its Id
                        helper.TargetElementSelector("#test");
                        
                        helper.FilePath("candy.pdf");
                        
                        // adjust the Zoom as container width
                        helper.ZoomToFitWidth();
                         
                        helper.Width(900);
                         
                        helper.Height(400);
                        //Set the locale path
                        helper.Locale("pt-PT");
                        
                        //Apply Watermark
                        helper.Watermark("Watermark Text", System.Drawing.Color.Red, WatermarkPosition.Diagonal, 20, true);
            
                        
                     String GeneratedHtmlCode= helper.ToString();

                    Console.WriteLine(GeneratedHtmlCode);

以上是关于csharp GroupDocs.Viewer.2.2.0.ApplyWatermark.cs的主要内容,如果未能解决你的问题,请参考以下文章

csharp GroupDocs.Viewer.2.2.0.ApplyWatermark.cs

csharp 实例-CSHARP-GroupDocs.Conversion.Examples.CSharp变频-ConvertWithCustomInputDataHandler.cs

csharp 例如-CSHARP-GroupDocs.Conversion.Examples.CSharp - 程序 - ConvertFilesToDifferentFormats.cs

csharp 例如-CSHARP-GroupDocs.Conversion.Examples.CSharp渲染,RenderPSDImageAsPath.cs

csharp 实例-CSHARP-GroupDocs.Conversion.Examples.CSharp变频-ConvertTopresentationAsPath.cs

csharp 实例-CSHARP-GroupDocs.Conversion.Examples.CSharp变频-ConvertTopresentationAsPath.cs