UXMPDFKit icon indicating copy to clipboard operation
UXMPDFKit copied to clipboard

Does not save last annotation

Open amrit42087 opened this issue 8 years ago • 3 comments

I am using your library in one of my projects. I am unable to render all the annotations onto the pdf. Lets say I first selected pen annotation and I drew my signatures. If I then call renderOntoPDF() method, the psd won't be saved with my signatures. Now lets say I first selected pen annotation and drew my signatures. Now I again selected text annotation and wrote some text on to the pdf. This time only signatures would be rendered on calling renderOntoPDF() method. Both the annotations won't be saved. As an extract, last annotation is not saved. This also happens with the demo project on github. Can you please help me out with this issue. I am about to launch my application. I am only left with this issue.

Here is the video: demo.zip

amrit42087 avatar Sep 14 '17 12:09 amrit42087

@amrit42087 what version of the framework are you using as well as who version of iOS? Thanks.

pushchris avatar Sep 14 '17 14:09 pushchris

Its the latest version. I installed it using the following command: pod "UXMPDFKit" My iOS version is 10.3.2

amrit42087 avatar Sep 14 '17 16:09 amrit42087

@amrit42087 you'll need to close out of the current annotation and save it before rendering it. An active annotation is still pending save. When you leave the annotation controller it should automatically do this, see: https://github.com/uxmstudio/UXMPDFKit/blob/9722770fb7dd6bfbe96a6ab9d9dde64db0e4dd4b/Pod/Classes/Renderer/PDFViewController.swift#L159-L161

If you are overriding PDFViewController you will want to make sure to call these methods manually.

pushchris avatar Sep 19 '17 17:09 pushchris