PDFOne .NET
Powerful all-in-one PDF library for .NET
Compatibility
VS 2005/2008/2010/2012/2013

PDF Ink Annotations - What are they? What can you do with them?

Look, ma, no hands!

Ink annotations are free-hand scribbles. You specify the vertices and the viewer application will automatically draw smoothened curves linking them. This means that you do not have to record all the movements of a graphic pen on your PDF viewer. Just mark some points around your quarry and you have your vertices. Thus, you can easily annotate your PDF documents with ink annotations using just a mouse.

// Open a PDF document
PDFDocument doc = new PDFDocument(PDFOne_License.KEY);
doc.Load("USPTO_Catalog.pdf");

doc.MeasurementUnit = PDFMeasurementUnit.Inches;

// Create the ink annoation
PDFInkAnnot ink = new PDFInkAnnot();
ink.Title = "Ink annotation demo";
ink.Subject = "Annotation Demo";
ink.Content = "This is an ink annotation.";
ink.Vertices = 
	new PointF[] {  
		new PointF(6.7f,2.4f),
		new PointF(4.2f,2.6f),
		new PointF(4.15f,3f),
		new PointF(5.2f,3.4f),
		new PointF(5.7f,3.3f),
		new PointF(6.5f,3.1f),
		new PointF(6.5f,2.1f)
	};
ink.LineColor = Color.Red;			
ink.LineStyle = PDFAnnotLineStyle.Solid;

// Add the ink annotation to page 1
doc.CurrentPageNo = 1;			
doc.AddAnnot(ink);
doc.Save("ink_annotation_demo.pdf");
doc.Close();

Here is the ink annotation.

Here is the ink annotation with its vertices marked.

---o0O0o---

Our .NET Developer Tools
XtremeDocumentStudio .NET

Multi-format document-processing component suite for .NET developers.

PDFOne .NET

A .NET PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, and bookmark PDF documents in .NET applications.

Our Delphi/C++Builder developer tools
XtremeDocumentStudio Delphi

Multi-format document-processing component suite for Delphi/C++Builder developers, covering both VCL and FireMonkey platforms.

eDocEngine VCL

A Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools.

PDFtoolkit VCL

A Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents.

Our Java developer tools
XtremeDocumentStudio (for Java)

Multi-format document-processing component suite for Java developers.

PDFOne (for Java)

A Java PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, bookmark PDF documents in Java applications.

Our Platform-Agnostic Cloud and On-Premises APIs
StarDocs

Cloud-hosted and On-Premises REST-based document-processing and document-viewing APIs

Privacy | Legal | Feedback | Newsletter | Blog | Resellers © 2002-2017 Gnostice Information Technologies Private Limited. All rights reserved.