Skip to content

2.16 Reorder Pages

OgreTransporter edited this page Mar 2, 2020 · 1 revision

The PdfFileWriter appends new pages to the end of the page list. If you want to move a page from its current position to a new position use the following method.

// Source and destination index are zero based.
// Source must be 0 to PageCount - 1.
// Destination must be 0 to PageCount.
// If destination index is PageCount, the page will be the last page
// PageCount is a property of PdfDocument.
Document.MovePage(Int32 SourceIndex, Int32 DestinationIndex);
Clone this wiki locally