public static void Main() { // The path to the documents directory. string dataDir = Path.GetFullPath("../../../Data/"); // instantiate PdfContentEditor object PdfContentEditor editor = new PdfContentEditor(); // bind input PDF file editor.BindPdf(dataDir+ "input.pdf"); // the last argumnet is for transparency of icon editor.CreateFileAttachment(new System.Drawing.Rectangle(50, 50, 10, 10), "here", "simple.doc", 1, "Paperclip", 0.005); // save the updated PDF file editor.Save(dataDir+ "PdfWith_Transparent_Annotation.pdf"); }
public static void Main() { // The path to the documents directory. string dataDir = Path.GetFullPath("../../../Data/"); // instantiate PdfContentEditor object PdfContentEditor editor = new PdfContentEditor(); // bind input PDF file editor.BindPdf(dataDir + "input.pdf"); // the last argumnet is for transparency of icon editor.CreateFileAttachment(new System.Drawing.Rectangle(50, 50, 10, 10), "here", "simple.doc", 1, "Paperclip", 0.005); // save the updated PDF file editor.Save(dataDir + "PdfWith_Transparent_Annotation.pdf"); }
public static void Run() { // ExStart:CreateFileAnnotation // The path to the documents directory. string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Annotations(); // Instantiate PdfContentEditor object PdfContentEditor editor = new PdfContentEditor(); // Bind input PDF file editor.BindPdf(dataDir+ "CreateFileAnnotation.pdf"); // The last argumnet is for transparency of icon editor.CreateFileAttachment(new System.Drawing.Rectangle(50, 50, 10, 10), "here", dataDir + "AddFreeTextAnnotation.pdf", 1, "Paperclip", 0.005); // Save the updated PDF file editor.Save(dataDir+ "PdfWith_Transparent_Annotation_out.pdf"); // ExEnd:CreateFileAnnotation }
public static void Run() { // ExStart:CreateFileAnnotation // The path to the documents directory. string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Annotations(); // Instantiate PdfContentEditor object PdfContentEditor editor = new PdfContentEditor(); // Bind input PDF file editor.BindPdf(dataDir + "CreateFileAnnotation.pdf"); // The last argumnet is for transparency of icon editor.CreateFileAttachment(new System.Drawing.Rectangle(50, 50, 10, 10), "here", dataDir + "AddFreeTextAnnotation.pdf", 1, "Paperclip", 0.005); // Save the updated PDF file editor.Save(dataDir + "PdfWith_Transparent_Annotation_out_.pdf"); // ExEnd:CreateFileAnnotation }