I don't know if this is the appropriate forum to post this kind of
thing, but I added 2 methods to my copy of PdfAnnotation.cs in
iTextSharp:
public static PdfAnnotation CreatePolyLine(PdfWriter writer, Rectangle
rect,
string contents, PdfArray
vertices) {
PdfAnnotation annot = new PdfAnnotation(writer, rect);
annot.Put(PdfName.SUBTYPE, PdfName.POLYLINE);
annot.Put(PdfName.CONTENTS, new PdfString(contents,
PdfObject.TEXT_UNICODE));
PdfArray array = new PdfArray(vertices);
annot.Put(PdfName.VERTICES, array);
return annot;
}
public static PdfAnnotation CreatePolygon(PdfWriter writer, Rectangle
rect,
string contents, PdfArray
vertices) {
PdfAnnotation annot = new PdfAnnotation(writer, rect);
annot.Put(PdfName.SUBTYPE, PdfName.POLYGON);
annot.Put(PdfName.CONTENTS, new PdfString(contents,
PdfObject.TEXT_UNICODE));
PdfArray array = new PdfArray(vertices);
annot.Put(PdfName.VERTICES, array);
}
as well as some supporting members in PdfName.cs:
public static readonly PdfName POLYGON = new PdfName("Polygon");
public static readonly PdfName POLYLINE = new PdfName("PolyLine");
public static readonly PdfName VERTICES = new PdfName("Vertices");
- Eric
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/