Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


The function exchanges two pages.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 4.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.ExchangePages"; PDF; First; Second )   More


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
First First page number. 3
Second Second page number. 5


Returns OK or error.


The function exchanges two pages.
Page links, bookmarks, go-to actions, and named destinations are changed so that the destination page still refers to the correct page. Note that page numbering starts at 1. It is also possible to move a page to another position in the file (see DynaPDF.MovePage for further information).

See also ExchangePages function in DynaPDF manual.

See also

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014

DynaPDF.ExchangeBookmarks - DynaPDF.ExtractDocumentText