rajeejones / PDFSignature

Example on how to add a signature to a PDF using PDFKit in Swift
35 stars 12 forks source link

pan gesture for stamp annotation #2

Open SandeepanProjects opened 5 years ago

SandeepanProjects commented 5 years ago

Hi,

this demo project has helped me a lot . please can you help me with putting a restriction for the pan gesture for stamp annotation .

the stamp annotation should not move outside the pdf document .

rajeejones commented 5 years ago

What have you tried?

SandeepanProjects commented 5 years ago

I tried taking the (annotation point.x) < PDFView bounds and considering the (annotation point.y) but it is going out of bounds. I also tried for matching the width but not able to complete it . please help me in this regard.