Rearrange pdf Document in Swift in iOS app

How to reorder a pdf document?

  • move page p after page n, or at a given m position.
  • add new page at certain position
  • rotate a page 90° or 180°.

I've seen libraries, but I would prefer to redevelop those simple functions directly in an iOS app (Swift).

I don't need to edit the document content, just rearrange.

Replies

Well, I will just recreate a new pdf, picking pages in the order I need.