Exemplo n.º 1
0
        public static NSArray PostprocessAnnotationInLegacyFormat(PSPDFAnnotation[] annotations)
        {
            var objs = new List<NSObject> ();

            foreach (var annotation in annotations)
                objs.Add (annotation);

            NSArray arry = NSArray.FromNSObjects (objs.ToArray ());
            var resArray = Runtime.GetNSObject<NSArray> (_PostprocessAnnotationInLegacyFormat (arry.Handle));

            return resArray;
        }
Exemplo n.º 2
0
 public virtual RectangleF RenderPageRef(CGPDFPage page, CGContext context, RectangleF rectangle, PSPDFPageInfo pageInfo, PSPDFAnnotation[] annotations, NSDictionary options)
 {
     return RenderPageRef_ (page.Handle, context, rectangle, pageInfo, annotations, options);
 }
Exemplo n.º 3
0
 public virtual SizeF SetupGraphicsContext(CGPDFPage page, CGContext context, PointF point, double zoom, PSPDFPageInfo pageInfo, PSPDFAnnotation[] annotations, NSDictionary options)
 {
     return SetupGraphicsContext_ (page.Handle, context.Handle, point, zoom, pageInfo, annotations, options);
 }
Exemplo n.º 4
0
        public virtual bool SaveAnnotations(PSPDFAnnotation options, out NSError error)
        {
            unsafe {
                IntPtr val;
                IntPtr val_addr = (IntPtr) ((IntPtr *) &val);

                bool ret = SaveAnnotations (options, val_addr);
                error = (NSError) Runtime.GetNSObject (val);

                return ret;
            }
        }