diff --git a/public/pdf.html b/public/pdf.html
index bdf5cdf..b16bd0a 100644
--- a/public/pdf.html
+++ b/public/pdf.html
@@ -1657,8 +1657,6 @@
// ─── Security sub-op default ──────────────────────────────────────────────
state.securitySub = 'protect';
-})();
-
// ─── Page Grid Thumbnails ─────────────────────────────────────────────────
function renderPageGrid(gridId, hintId, fileId, pages, mode) {
const grid = document.getElementById(gridId);
@@ -1704,6 +1702,9 @@
renderPageGrid('reorderPageGrid', 'reorderHint', sel.id, sel.pages, 'reorder');
}
};
+
+})();
+