public override void DidChangeAnnotation (PSPDFAnnotation annotation, PSPDFAnnotation originalAnnotation, NSArray keyPaths, NSDictionary options)
		{
			if(annotation is IKSAnnotation)
			{
				Console.WriteLine("Custom annotation changed: " + annotation);
			}
		}
		public override bool AddAnnotations (PSPDFAnnotation[] annotations, uint page)
		{
			Console.WriteLine ("Overridden AddAnnotations()");
			foreach (var annot in annotations)
			{
				Console.WriteLine( " {0}, Page: {1}, Absolute Page: {2}, Rect: {3}", annot.AnnotationType, annot.Page, annot.AbsolutePage, annot.Rects);
				// All added annotations are ours.
				((IKSAnnotation)annot).IsCustomAnnotation = true;
			}

			this.AddAnnotationsToCache (page, annotations);

			return true;

			// TODO: Calling base here crashes with unrecognized selector. But for our case we don't want to call base anyway.
			//return base.AddAnnotations (annotations, page);
		}
 public CustomNoteAnnotationController(PSPDFAnnotation annot, bool bAllowEditing)
     : base(annot, bAllowEditing)
 {
     Console.WriteLine("*** CustomNoteAnnotationController(PSPDFDocumentProvider)");
 }
Ejemplo n.º 4
0
 public void RenderPage(uint page, CGContext /*CGContextRef*/ context, SizeF fullSize, RectangleF clipRect, PSPDFAnnotation [] annotations, NSDictionary options)
 {
     RenderPage_ (page, context.Handle, fullSize, clipRect, annotations, options);
 }
Ejemplo n.º 5
0
 public static SizeF RenderPage(CGPDFPage page, CGContext context, PointF point, float zoom, PSPDFPageInfo pageInfo, PSPDFAnnotation[] annotations, NSDictionary options)
 {
     return RenderPage_ (page.Handle, context.Handle, point, zoom, pageInfo, annotations, options);
 }
Ejemplo n.º 6
0
 public static RectangleF RenderPage(CGPDFPage page, CGContext context, RectangleF rectangle, PSPDFPageInfo pageInfo, PSPDFAnnotation[] annotations, NSDictionary options)
 {
     return RenderPage_ (page.Handle, context.Handle, rectangle, pageInfo, annotations, options);
 }
Ejemplo n.º 7
0
 public static bool RenderAppearanceStream(PSPDFAnnotation annotation, CGContext context)
 {
     return RenderAppearanceStream_ (annotation, context.Handle);
 }
Ejemplo n.º 8
0
 public static bool RenderAppearanceStream(PSPDFAnnotation annotation, CGContext context)
 {
     return(RenderAppearanceStream_(annotation, context.Handle));
 }