// 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);