PDFKit

@komal111, unfortunately your question isn't quite appropriate for Swift Forums, which focuses on the language itself rather than working with Apple's APIs (PDFKit in this case). Sites such as StackOverflow or Apple's Developer Forums might be a better fit for your question.