Add pdf annotation with PDF Kit in OS 10.12

前端 未结 1 1244
醉梦人生
醉梦人生 2021-01-15 02:56

Now the latest os10.12 operating system, PDF annotation can be displayed, but now I still have a problem, I recorded coordinate information in PDFView ->mouseDragged before,

相关标签:
1条回答
  • 2021-01-15 03:40

    PDFKit sems to be in bit of a pickle at the moment. https://forums.developer.apple.com/thread/60440

    I have had some success using drawPage:inContext: (which is a private method covered by drawPage:toContext:). Try adding drawPage:inContext: to a class extension (ARC requires all selectors to be defined) and see if it gets called.

    0 讨论(0)
提交回复
热议问题