public override void AfterClone(Cloner cloner, PdfArray source, PdfArray clone, int index, PdfDirectObject item) { PdfDictionary annotation = (PdfDictionary)item.Resolve(); if (annotation.ContainsKey(PdfName.FT)) { cloner.context.Document.Form.Fields.Add(Field.Wrap(annotation.Reference)); } else if (annotation.ContainsKey(PdfName.Dest)) { PdfDirectObject destObject = annotation[PdfName.Dest]; if (destObject is PdfString destString) // Named destination. { CloneNamedObject <Destination>(cloner, source, destString); } } }
public Rectangle(PdfDirectObject baseObject) : base(Normalize((PdfArray)baseObject.Resolve())) { }