uxmstudio / UXMPDFKit

An iOS PDF viewer and annotator written in Swift that can be embedded into any application.
MIT License
275 stars 103 forks source link

Need a full example in readme #57

Closed neetrath closed 7 years ago

neetrath commented 7 years ago

I'm a newbie in Swift and I don't know how to save the pdf file.

I use pod try UXMPDFKit to see how to save the pdf but can't see where is the code to save the pdf file.

pushchris commented 7 years ago

@neetrath saving a PDF is part of PDFViewController that you can see in the example project that can be downloaded from Github. If you want to be able to save a PDF from code you will need to create your own subclass of the controller. You can refer to this line to see how it is done internally.