Reorder Pages in Vue PDF Viewer
14 Aug 20263 minutes to read
Overview
This guide describes how to rearrange pages in a PDF using the Organize Pages UI.
Outcome: Single or multiple pages can be reordered and the new sequence is preserved when the document is saved or exported.
Prerequisites
- EJ2 Vue PDF Viewer installed
-
ToolbarandPageOrganizerservices injected into the viewer
Steps
-
Open the Organize Pages view
- Click the Organize Pages button in the navigation toolbar to open the page thumbnails panel.
-
Reorder a single page
- Drag a thumbnail to the desired position. The thumbnails update instantly to show the new order.
-
Reorder multiple pages
- Select multiple thumbnails using Ctrl or Shift, then drag the selected group to the new location.

-
Verify and undo
- Use Undo / Redo options to revert accidental changes.

-
Persist the updated order
- Click Save or download the document using Save As to persist the new page sequence.
Expected result
- Thumbnails reflect the new page order immediately and saved / downloaded PDFs preserve the reordered sequence.
Enable or disable reorder option
To enable or disable the Reorder pages option in the Organize Pages, update the pageOrganizerSettings. See Organize pages toolbar customization for the guidelines
Code snippet
To enable the reorder pages feature, use the following code snippet:
<template>
<div id="app">
<ejs-pdfviewer id="pdfViewer" :documentPath="documentPath" :resourceUrl="resourceUrl" :pageOrganizerSettings="{ canRearrange: true }">
</ejs-pdfviewer>
</div>
</template>
<script>
import {
PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation,
BookmarkView, ThumbnailView, Print, TextSelection, TextSearch,
Annotation, FormDesigner, FormFields, PageOrganizer
} from '@syncfusion/ej2-vue-pdfviewer';
export default {
name: "App",
components: {
"ejs-pdfviewer": PdfViewerComponent
},
data() {
return {
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
resourceUrl: "https://cdn.syncfusion.com/ej2/32.2.3/dist/ej2-pdfviewer-lib"
};
},
provide: {
PdfViewer: [Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView,
Print, TextSelection, TextSearch, Annotation, FormFields, FormDesigner, PageOrganizer]
}
}
</script>Troubleshooting
-
Thumbnails won’t move: Confirm
pageOrganizerSettings.canRearrangeis not set tofalse. -
Changes not saved: Verify
serviceUrl(server) orresourceUrl(standalone) is configured correctly.