How to flatten PDF

Hi I'm working on developing app which can add annotation to PDF and users can then send it with email.

However, I'm looking through the documentation online and am not finding a way to save a flattened version of a PDF.


Please can anyone let me know how to achive this?

Replies

I dont want to use thirparty libs.

I am using Apple's PDFKit API's. Want to know is there a way to achive it using PDFKit API's.


Thanks

Amol