我實際上試圖在PDF上使用PDFKit註釋來繪製ink/freedraw註釋,但無法繪製註釋。使用PDFKIt創建PDF註釋iOS 11
在由apple提供的墨跡註釋中,有一種方法爲註釋添加Bezier路徑。
// Add or remove paths from the annotation.
// Path points are specified in annotation space.
// Used by annotations type(s): /Ink.
open func add(_ path: UIBezierPath)
即使添加了路徑,也不會在PDF上繪製註釋。 非常感謝您提供所有寶貴的答案。
是否可以幫到我?我正在使用pdf套件,我需要運行編輯器來創建pdf。如果您有任何信息,如果可能的話,請通過您的代碼或幫助我在這個問題https://stackoverflow.com/questions/48609287/how-to-create-a-pdf-from-image-which-taken-by- camera-with-pdfkit –
你好@nedaDerakhshesh其實我們是在PDFKit上做POC,由於缺乏適當的文檔,我們停止了這個工作。 –