Alua-Kinzhebayeva / iOS-PDF-Reader

PDF Reader for iOS written in Swift
MIT License
530 stars 149 forks source link

PDF annotations not showing #91

Open workingDog opened 6 years ago

workingDog commented 6 years ago

Thanks for this great IOS-PDF-Reader. Your code works well in my App, however when the pdf document contains some annotations, these do not display. Could you point me to the area in the code where I could add modifications to display annotations as well.

ranunez commented 6 years ago

You should use Apple's PDFKit, which is a native way to display PDFs including those that contain annotations. Its really easy to setup and use.

For this codebase, you would need to modify the model layer PDFDocument to extract the annotations from the raw PDF file, and you would then modify the views to add and display the images/buttons corresponding to each annotation to the views.