public static void Main() { // The path to the documents directory. string dataDir = Path.GetFullPath("../../../Data/"); //open document PdfContentEditor contentEditor = new PdfContentEditor(); contentEditor.BindPdf(dataDir+ "input.pdf"); //crate rectangle System.Drawing.Rectangle rect = new System.Drawing.Rectangle(50, 50, 100, 100); //create annotation contentEditor.CreateFreeText(rect, "Sample content", 1); //save updated PDF file contentEditor.Save(dataDir+ "output.pdf"); }
public static void Main() { // The path to the documents directory. string dataDir = Path.GetFullPath("../../../Data/"); //open document PdfContentEditor contentEditor = new PdfContentEditor(); contentEditor.BindPdf(dataDir + "input.pdf"); //crate rectangle System.Drawing.Rectangle rect = new System.Drawing.Rectangle(50, 50, 100, 100); //create annotation contentEditor.CreateFreeText(rect, "Sample content", 1); //save updated PDF file contentEditor.Save(dataDir + "output.pdf"); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Annotations(); //open document PdfContentEditor contentEditor = new PdfContentEditor(); contentEditor.BindPdf(dataDir + "AddFreeTextAnnotation.pdf"); //crate rectangle System.Drawing.Rectangle rect = new System.Drawing.Rectangle(50, 50, 100, 100); //create annotation contentEditor.CreateFreeText(rect, "Sample content", 1); //save updated PDF file contentEditor.Save(dataDir + "AddFreeTextAnnotation_out.pdf"); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Annotations(); //open document PdfContentEditor contentEditor = new PdfContentEditor(); contentEditor.BindPdf(dataDir+ "AddFreeTextAnnotation.pdf"); //crate rectangle System.Drawing.Rectangle rect = new System.Drawing.Rectangle(50, 50, 100, 100); //create annotation contentEditor.CreateFreeText(rect, "Sample content", 1); //save updated PDF file contentEditor.Save(dataDir+ "AddFreeTextAnnotation_out.pdf"); }