PDFKit and PencilKit

Does anybody knows how to implement draw on pdf function for iOS? Approach is the same as Files app. Telegram and Whatsapp using the same technique.