Skip to content

Instantly share code, notes, and snippets.

View farhan-raza's full-sized avatar

Farhan Raza farhan-raza

View GitHub Profile
@farhan-raza
farhan-raza / Aspose-XPS-Java
Created October 28, 2018 20:31 — forked from aspose-xps/Aspose-XPS-Java
This Gist contains Java Examples for Aspose.XPS for Java
Aspose.XPS for Java
@farhan-raza
farhan-raza / Aspose-XPS-NET
Created July 15, 2018 19:03 — forked from aspose-xps/Aspose-XPS-NET
This Gist contains C# examples of Aspose.XPS for .NET
Aspose.XPS for .NET
@farhan-raza
farhan-raza / ApplyMeteredLicense.cs
Last active October 17, 2018 10:31 — forked from aspose-html/ApplyMeteredLicense.cs
This Gist contains CSharp code snippets for examples of Aspose.HTML for .NET.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Aspose.Html.Examples.CSharp.QuickStart
{
public class ApplyMeteredLicense
{
public static void Run()
// For complete examples and data files, please go to https://github.com/aspose-pdf/Aspose.PDF-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_Annotations();
// Open document
Document pdfDocument = new Document(dataDir + "AddAnnotation.pdf");
// Create annotation
TextAnnotation textAnnotation = new TextAnnotation(pdfDocument.Pages[1], new Aspose.Pdf.Rectangle(200, 400, 400, 600));
textAnnotation.Title = "Sample Annotation Title";