Linked Questions

Popular Questions

Erase pdfAnnotation added using pdfkit

Asked by At

I used the below code to draw a line to a pdfpage. Is there any way i can erase the annotation like an eraser when user drags over it.

let lineAttributes: [PDFAnnotationKey: Any] = [ .linePoints: [startPoint.x, startPoint.y, point.x, point.y],
            .lineEndingStyles: [PDFAnnotationLineEndingStyle.none,PDFAnnotationLineEndingStyle.none], .color:,.border: PDFBorder() ]
            let lineAnnotation = PDFAnnotation(bounds: pageBounds , forType: .line,withProperties: lineAttributes)
            lineAnnotation.border = border
            lineAnnotation.color = selectedcolor

Related Questions